aanderse / apache

0 stars 0 forks source link

Got this error on running on NixOS #1

Open aszenz opened 7 months ago

aszenz commented 7 months ago
2024-03-09T21:04:54Z ERROR system_manager::activate::etc_files] Error while trying to link directory /etc/.system-manager-static/systemd/system: Read-only file system (os error 30)
[2024-03-09T21:04:54Z ERROR system_manager::activate::etc_files] Error while trying to link directory /etc/.system-manager-static/systemd/system: Error creating directory /etc/systemd/system/system-manager.target.wants

    Caused by:
        Read-only file system (os error 30)
[2024-03-09T21:04:54Z INFO  system_manager] Creating symlink: /etc/systemd/system/httpd.service -> ./../../.system-manager-static/systemd/system/httpd.service
[2024-03-09T21:04:54Z ERROR system_manager::activate::etc_files] Error while trying to link directory /etc/.system-manager-static/systemd/system: Read-only file system (os error 30)
[2024-03-09T21:04:54Z ERROR system_manager::activate::etc_files] Error while trying to link directory /etc/.system-manager-static/systemd/system: Error creating directory /etc/systemd/system/default.target.wants

    Caused by:
        Read-only file system (os error 30)
[2024-03-09T21:04:54Z INFO  system_manager] Creating symlink: /etc/systemd/system/system-manager.target -> ./../../.system-manager-static/systemd/system/system-manager.target
[2024-03-09T21:04:54Z ERROR system_manager::activate::etc_files] Error while trying to link directory /etc/.system-manager-static/systemd/system: Read-only file system (os error 30)
[2024-03-09T21:04:54Z INFO  system_manager] Creating symlink: /etc/systemd/system/multi-user.target.wants/httpd.service -> ./../../../.system-manager-static/systemd/system/multi-user.target.wants/httpd.service
[2024-03-09T21:04:54Z ERROR system_manager::activate::etc_files] Error while trying to link directory /etc/.system-manager-static/systemd/system/multi-user.target.wants: Read-only file system (os error 30)
[2024-03-09T21:04:54Z INFO  system_manager::activate::etc_files] Done
[2024-03-09T21:04:54Z INFO  system_manager::activate] Activating tmp files...
/etc/tmpfiles.d/00-system-manager.conf:3: Failed to resolve user 'www-data': No such process
/etc/tmpfiles.d/00-system-manager.conf:4: Failed to resolve user 'www-data': No such process
[2024-03-09T21:04:54Z ERROR system_manager::activate] Error during activation of tmp files
[2024-03-09T21:04:54Z ERROR system_manager::activate] 
[2024-03-09T21:04:54Z INFO  system_manager::activate] Activating systemd services...
[2024-03-09T21:04:54Z INFO  system_manager::activate::services] Reading new service definitions...
[2024-03-09T21:04:54Z INFO  system_manager::activate::services] Reloading the systemd daemon...
[2024-03-09T21:04:55Z ERROR system_manager::activate::services] Service system-manager.target: error starting, please consult the logs
[2024-03-09T21:04:55Z ERROR system_manager::activate::services] Unit system-manager.target not found.
[2024-03-09T21:04:55Z INFO  system_manager::activate::services] Done
[2024-03-09T21:04:55Z INFO  system_manager::activate] Writing state info into file: /var/lib/system-manager/state/system-manager-state.json
aanderse commented 7 months ago

which version of ubuntu are you running? what do your filesystem mounts look like? is /etc on a read only filesystem? and why doesn't the www-data user exist? i have never seen a version of debian or ubuntu that doesn't include this user.

are you running inside a container or something like that?

aanderse commented 7 months ago

sorry, misread the issue title... running on NixOS

don't bother with system manager on NixOS, just use the native module