Permission errors after clean install
I did a clean install according to Quick Setup and encoutered this error. Beside that, the permissions inside /opt/aura seem to be incorrect.
➜ aura-web git:(main) ✗ docker system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 0 0 0B 0B
Containers 0 0 0B 0B
Local Volumes 0 0 0B 0B
Build Cache 0 0 0B 0B
➜ aura-web git:(main) ✗ cd
➜ ~ rm -rf /opt/aura
rm: das Entfernen von '/opt/aura' ist nicht möglich: Keine Berechtigung
➜ ~ sudo !!
➜ ~ sudo rm -rf /opt/aura
➜ ~
➜ ~ sudo git clone https://gitlab.servus.at/aura/aura.git /opt/aura
Klone nach '/opt/aura'...
remote: Enumerating objects: 5771, done.
remote: Counting objects: 100% (715/715), done.
remote: Compressing objects: 100% (627/627), done.
remote: Total 5771 (delta 452), reused 131 (delta 83), pack-reused 5056
Empfange Objekte: 100% (5771/5771), 16.90 MiB | 3.10 MiB/s, fertig.
Löse Unterschiede auf: 100% (3630/3630), fertig.
➜ ~ cd /opt/aura
➜ aura make aura-user.add
The user aura (2872:2872) already exists.
sudo usermod -aG aura fro
➜ aura sudo git pull
Bereits aktuell.
➜ aura cp ~/.env config/aura-web/.env
cp: reguläre Datei 'config/aura-web/.env' kann nicht angelegt werden: Keine Berechtigung
➜ aura sudo !!
➜ aura sudo cp ~/.env config/aura-web/.env
➜ aura make aura-web.init
sudo chown -R fro:fro /opt/aura
sudo mkdir -p \
/opt/aura/audio/source \
/opt/aura/audio/import \
/opt/aura/logs/
sudo chown -R fro:2872 \
/opt/aura/audio/source \
/opt/aura/audio/import \
/opt/aura/logs/
sudo chmod -R g+rw \
/opt/aura/audio/source \
/opt/aura/audio/import \
/opt/aura/logs/
Now '/opt/aura' feels like home.
sudo mkdir -p \
/opt/aura/logs/tank \
/opt/aura/logs/nginx \
/opt/aura/logs/letsencrypt
sudo chown -R fro:2872 \
/opt/aura/logs/tank
sudo chmod -R g+rw \
/opt/aura/logs/tank
sudo chown -R 101:2872 \
/opt/aura/logs/letsencrypt \
/opt/aura/logs/nginx
cp -n config/aura-web/sample.env config/aura-web/.env
➜ aura git:(main) ls -hal
insgesamt 148K
drwxr-xr-x 9 fro fro 4,0K 21. Feb 18:08 .
drwxr-xr-x 4 root root 4,0K 21. Feb 18:06 ..
drwxr-xr-x 6 fro fro 4,0K 21. Feb 18:06 assets
drwxr-xr-x 4 root root 4,0K 21. Feb 18:08 audio
-rw-r--r-- 1 fro fro 4,9K 21. Feb 18:06 CHANGELOG.md
-rw-r--r-- 1 fro fro 130 21. Feb 18:06 .codespellrc
drwxr-xr-x 6 fro fro 4,0K 21. Feb 18:06 config
-rw-r--r-- 1 fro fro 474 21. Feb 18:06 CONTRIBUTING.md
drwxr-xr-x 8 fro fro 4,0K 21. Feb 18:06 docs
-rw-r--r-- 1 fro fro 262 21. Feb 18:06 .env.version
drwxr-xr-x 8 fro fro 4,0K 21. Feb 18:07 .git
-rw-r--r-- 1 fro fro 0 21. Feb 18:06 .gitconfig
-rw-r--r-- 1 fro fro 183 21. Feb 18:06 .gitignore
-rw-r--r-- 1 fro fro 3,1K 21. Feb 18:06 .gitlab-ci.yml
-rw-r--r-- 1 fro fro 34K 21. Feb 18:06 LICENSE
drwxrwxr-x 5 fro aura 4,0K 21. Feb 18:08 logs
-rw-r--r-- 1 fro fro 767 21. Feb 18:06 .mailmap
-rw-r--r-- 1 fro fro 11K 21. Feb 18:06 Makefile
-rw-r--r-- 1 fro fro 15K 21. Feb 18:06 poetry.lock
-rw-r--r-- 1 fro fro 103 21. Feb 18:06 .pre-commit-config.yaml
-rw-r--r-- 1 fro fro 1,2K 21. Feb 18:06 pyproject.toml
-rw-r--r-- 1 fro fro 2,2K 21. Feb 18:06 README.md
-rw-r--r-- 1 fro fro 774 21. Feb 18:06 .readthedocs.yaml
drwxr-xr-x 3 fro fro 4,0K 21. Feb 18:06 scripts
➜ aura git:(main) make aura-web.configure
cd config/aura-web && docker compose run --rm steering initialize
WARN[0000] The "AURA_DASHBOARD_CLOCK_CSS" variable is not set. Defaulting to a blank string.
WARN[0000] The "AURA_DASHBOARD_CLOCK_FALLBACK_TEXT" variable is not set. Defaulting to a blank string.
WARN[0000] The "ICECAST_SOURCE_PASSWORD" variable is not set. Defaulting to a blank string.
WARN[0000] The "ICECAST_ADMIN_PASSWORD" variable is not set. Defaulting to a blank string.
WARN[0000] The "ICECAST_PASSWORD" variable is not set. Defaulting to a blank string.
WARN[0000] The "ICECAST_RELAY_PASSWORD" variable is not set. Defaulting to a blank string.
WARN[0000] The "AURA_STEERING_AUTH_LDAP_ENABLE" variable is not set. Defaulting to a blank string.
[+] Running 15/15
✔ steering-postgres 14 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 53.2s
✔ e1caac4eb9d2 Pull complete 24.7s
✔ 4b197e922ebd Pull complete 0.5s
✔ 0bbe980dd1ea Pull complete 4.2s
✔ ecf52e84cc28 Pull complete 2.4s
✔ 1a6dea74d57e Pull complete 6.7s
✔ 0488e47ea227 Pull complete 6.0s
✔ d63bce7cf992 Pull complete 6.7s
✔ 9e00998fa7ab Pull complete 7.2s
✔ c40b0e0bed22 Pull complete 47.0s
✔ 9374060b2878 Pull complete 8.0s
✔ 1dc79cc3d3fe Pull complete 8.6s
✔ 90793e24f398 Pull complete 9.2s
✔ ebe5e010833d Pull complete 9.8s
✔ bd8380f7862a Pull complete 10.4s
[+] Creating 9/9
✔ Network aura-web_internal-steering Created 0.1s
✔ Network auranet Created 0.1s
✔ Network aura-web_internal-tank Created 0.1s
✔ Volume "aura-web_tank_db_data" Created 0.0s
✔ Volume "aura-web_letsencrypt_certs" Created 0.0s
✔ Volume "aura-web_steering_static" Created 0.0s
✔ Volume "aura-web_steering_media" Created 0.0s
✔ Volume "aura-web_steering_db_data" Created 0.0s
✔ Container steering-postgres Created 8.0s
[+] Running 1/1
✔ Container steering-postgres Started 0.3s
[+] Running 11/11
✔ steering 10 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 130.3s
✔ 5d0aeceef7ee Pull complete 35.0s
✔ de0ce72dbd52 Pull complete 1.6s
✔ 3a2deb92df3b Pull complete 19.0s
✔ 1369ebec1094 Pull complete 2.4s
✔ bbee9fe7396a Pull complete 4.5s
✔ 630f75282215 Pull complete 5.0s
✔ a7cdde46de6e Pull complete 5.7s
✔ fe2df9a735c4 Pull complete 114.9s
✔ db21faaae25a Pull complete 22.1s
✔ 12d3f9e72e03 Pull complete 89.8s
poetry run ./manage.py migrate --no-input
Operations to perform:
Apply all migrations: admin, auth, contenttypes, oidc_provider, program, sessions, sites
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying admin.0003_logentry_add_action_flag_choices... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying auth.0009_alter_user_last_name_max_length... OK
Applying auth.0010_alter_group_name_max_length... OK
Applying auth.0011_update_proxy_permissions... OK
Applying auth.0012_alter_user_first_name_max_length... OK
Applying oidc_provider.0001_initial... OK
Applying oidc_provider.0002_userconsent... OK
Applying oidc_provider.0003_code_nonce... OK
Applying oidc_provider.0004_remove_userinfo... OK
Applying oidc_provider.0005_token_refresh_token... OK
Applying oidc_provider.0006_unique_user_client... OK
Applying oidc_provider.0007_auto_20160111_1844... OK
Applying oidc_provider.0008_rsakey... OK
Applying oidc_provider.0009_auto_20160202_1945... OK
Applying oidc_provider.0010_code_is_authentication... OK
Applying oidc_provider.0011_client_client_type... OK
Applying oidc_provider.0012_auto_20160405_2041... OK
Applying oidc_provider.0013_auto_20160407_1912... OK
Applying oidc_provider.0014_client_jwt_alg... OK
Applying oidc_provider.0015_change_client_code... OK
Applying oidc_provider.0016_userconsent_and_verbosenames... OK
Applying oidc_provider.0017_auto_20160811_1954... OK
Applying oidc_provider.0018_hybridflow_and_clientattrs... OK
Applying oidc_provider.0019_auto_20161005_1552... OK
Applying oidc_provider.0020_client__post_logout_redirect_uris... OK
Applying oidc_provider.0021_refresh_token_not_unique... OK
Applying oidc_provider.0022_auto_20170331_1626... OK
Applying oidc_provider.0023_client_owner... OK
Applying oidc_provider.0024_auto_20180327_1959... OK
Applying oidc_provider.0025_user_field_codetoken... OK
Applying oidc_provider.0026_client_multiple_response_types... OK
Applying program.0001_squashed... OK
Applying program.0002_auto_20210426_2345... OK
Applying program.0003_auto_20210713_0420... OK
Applying program.0004_auto_20220111_1806... OK
Applying program.0005_auto_20220111_2251... OK
Applying program.0006_remove_category_color... OK
Applying program.0007_auto_20220112_2335... OK
Applying program.0008_auto_20220117_1721... OK
Applying program.0009_auto_20220124_2211... OK
Applying program.0010_remove_schedule_automation_id... OK
Applying program.0011_link... OK
Applying program.0012_rename_fields... OK
Applying program.0013_auto_20220221_1637... OK
Applying program.0014_auto_20220221_1641... OK
Applying program.0015_rename_bysetpos_rrule_by_set_pos... OK
Applying program.0016_auto_20220222_0209... OK
Applying program.0017_auto_20220302_1711... OK
Applying program.0018_auto_20220322_2113... OK
Applying program.0019_auto_20220413_2248... OK
Applying program.0020_remove_note_audio_url... OK
Applying program.0021_showlink... OK
Applying program.0022_auto_20220516_2245... OK
Applying program.0023_auto_20220722_1747... OK
Applying program.0024_category_subtitle... OK
Applying program.0025_auto_20220728_1625... OK
Applying program.0026_auto_20220728_2227... OK
Applying program.0027_show_internal_note... OK
Applying program.0028_auto_20220801_1713... OK
Applying program.0029_auto_20220801_2057... OK
Applying program.0030_auto_20220803_2217... OK
Applying program.0031_auto_20220803_2226... OK
Applying program.0032_auto_20220803_2312... OK
Applying program.0033_auto_20220803_2331... OK
Applying program.0034_auto_20220803_2336... OK
Applying program.0035_auto_20220807_2312... OK
Applying program.0036_auto_20220807_2318... OK
Applying program.0037_auto_20220807_2321... OK
Applying program.0038_auto_20220817_2132... OK
Applying program.0039_auto_20221002_2307... OK
Applying program.0040_linktype... OK
Applying program.0041_licensetype... OK
Applying program.0042_userprofile... OK
Applying program.0043_note_playlist... OK
Applying program.0044_alter_linktype_type... OK
Applying program.0045_auto_20221021_2008... OK
Applying program.0023_auto_20230214_1934... OK
Applying program.0024_auto_20230214_1945... OK
Applying program.0025_auto_20230326_2211... OK
Applying program.0046_merge_0025_auto_20230326_2211_0045_auto_20221021_2008... OK
Applying program.0047_image... OK
Applying program.0048_auto_20230403_2228... OK
Applying program.0049_auto_20230404_0020... OK
Applying program.0050_auto_20230404_0037... OK
Applying program.0051_remove_show_logo... OK
Applying program.0052_show_logo... OK
Applying program.0053_auto_20230411_1855... OK
Applying program.0054_alter_schedule_last_date... OK
Applying program.0055_auto_20230419_0015... OK
Applying program.0056_auto_20230419_0017... OK
Applying program.0057_auto_20230419_0038... OK
Applying program.0058_auto_20230419_0039... OK
Applying program.0059_alter_schedule_end_time... OK
Applying program.0060_alter_licensetype_name_alter_licensetype_type_and_more... OK
Applying program.0061_alter_category_subtitle... OK
Applying program.0062_alter_image_height_alter_image_width_and_more... OK
Applying program.0063_alter_note_timeslot_alter_userprofile_user... OK
Applying program.0064_alter_note_contributors... OK
Applying program.0065_remove_timeslot_note_id_remove_timeslot_show... OK
Applying program.0066_license_delete_licensetype... OK
Applying program.0067_image_license... OK
Applying program.0068_license_needs_author_and_more... OK
Applying program.0069_alter_license_url... OK
Applying program.0070_image_is_use_explicitly_granted_by_author... OK
Applying program.0071_host_owners... OK
Applying program.0072_timeslot_language_timeslot_topic... OK
Applying program.0073_alter_note_tags... OK
Applying program.0074_alter_note_slug... OK
Applying program.0075_remove_timeslot_language_remove_timeslot_topic_and_more... OK
Applying program.0076_add_permissions_and_groups... OK
Applying program.0077_alter_host_options_alter_note_options_and_more... OK
Applying program.0078_remove_linktype_type_linktype_is_active_and_more... OK
Applying program.0079_alter_show_slug... OK
Applying program.0080_alter_note_options_alter_show_options_and_more... OK
Applying program.0081_remove_note_owner... OK
Applying sessions.0001_initial... OK
Applying sites.0001_initial... OK
Applying sites.0002_alter_domain_unique... OK
poetry run ./manage.py collectstatic --no-input
Traceback (most recent call last):
File "/app/./manage.py", line 12, in <module>
execute_from_command_line(sys.argv)
File "/app/.cache/virtualenvs/steering-9TtSrW0h-py3.11/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File "/app/.cache/virtualenvs/steering-9TtSrW0h-py3.11/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/app/.cache/virtualenvs/steering-9TtSrW0h-py3.11/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/app/.cache/virtualenvs/steering-9TtSrW0h-py3.11/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.cache/virtualenvs/steering-9TtSrW0h-py3.11/lib/python3.11/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 209, in handle
collected = self.collect()
^^^^^^^^^^^^^^
File "/app/.cache/virtualenvs/steering-9TtSrW0h-py3.11/lib/python3.11/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 135, in collect
handler(path, prefixed_path, storage)
File "/app/.cache/virtualenvs/steering-9TtSrW0h-py3.11/lib/python3.11/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 378, in copy_file
self.storage.save(prefixed_path, source_file)
File "/app/.cache/virtualenvs/steering-9TtSrW0h-py3.11/lib/python3.11/site-packages/django/core/files/storage/base.py", line 38, in save
name = self._save(name, content)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.cache/virtualenvs/steering-9TtSrW0h-py3.11/lib/python3.11/site-packages/django/core/files/storage/filesystem.py", line 87, in _save
os.makedirs(directory, exist_ok=True)
File "<frozen os>", line 215, in makedirs
File "<frozen os>", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/app/static/admin'
make: *** [Makefile:32: collectstatic] Error 1
make: *** [Makefile:123: aura-web.configure] Fehler 2
➜ aura git:(main)