Nextcloud-app.service failed

systemctl --user start nextcloud-app

Job for nextcloud-app.service failed because the control process exited with error code.
See “systemctl --user status nextcloud-app.service” and “journalctl --user -xeu nextcloud-app.service” for details.

[nextcloud2@serv state]$ journalctl --user -xeu nextcloud-nginx.service
Hint: You are currently not seeing messages from the system.
Users in groups ‘adm’, ‘systemd-journal’, ‘wheel’ can see all messages.
Pass -q to turn off this notice.
No journal files were opened due to insufficient permissions.

Did you configure Nextcloud via the app settings page? You need to set a hostname:

I think you need to be root.

Yes, I’ve set everything up, but after the server reboot, these two services won’t start.

It doesn’t accept the root password.

Please share the Nextcloud app logs. You can check the logs in the web UI:

2024-04-16T20:18:25+05:00 [1:nextcloud2:systemd] nextcloud-app.service: Scheduled restart job, restart counter is at 1.
2024-04-16T20:18:25+05:00 [1:nextcloud2:systemd] Stopped Podman nextcloud-app.service.
2024-04-16T20:18:25+05:00 [1:nextcloud2:systemd] Starting Podman nextcloud-app.service…
2024-04-16T20:18:26+05:00 [1:nextcloud2:podman] Error: looking up container “nextcloud-app” for volumes-from: no container with name or ID “nextcloud-app” found: no such container
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] nextcloud-nginx.service: Control process exited, code=exited, status=125/n/a
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] nextcloud-nginx.service: Failed with result ‘exit-code’.
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] Failed to start Podman nextcloud-nginx.service.
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] nextcloud-nginx.service: Scheduled restart job, restart counter is at 1.
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] Stopped Podman nextcloud-nginx.service.
2024-04-16T20:18:26+05:00 [1:nextcloud2:nextcloud-redis] 1:M 16 Apr 2024 15:18:26.230 * DB loaded from append only file: -7368.415 seconds
2024-04-16T20:18:26+05:00 [1:nextcloud2:nextcloud-redis] 1:M 16 Apr 2024 15:18:26.230 * Ready to accept connections
2024-04-16T20:18:26+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:26+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.17+maria~ubu2004 started.
2024-04-16T20:18:26+05:00 [1:nextcloud2:podman] time=“2024-04-16T20:18:26+05:00” level=warning msg=“Unmounting container "nextcloud-app" while attempting to delete storage: unmounting "/home/nextcloud2/.local/share/containers/storage/overlay/5a7238818f22772211cc26b9f994f13b0e8346bfce7d120b1bcc6e318781d1ee/merged": invalid argument”
2024-04-16T20:18:26+05:00 [1:nextcloud2:podman] Error: removing storage for container “nextcloud-app”: unmounting “/home/nextcloud2/.local/share/containers/storage/overlay/5a7238818f22772211cc26b9f994f13b0e8346bfce7d120b1bcc6e318781d1ee/merged”: invalid argument
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] nextcloud-app.service: Control process exited, code=exited, status=125/n/a
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] nextcloud-app.service: Failed with result ‘exit-code’.
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] Failed to start Podman nextcloud-app.service.
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] Starting Podman nextcloud-nginx.service…
2024-04-16T20:18:26+05:00 [1:nextcloud2:podman] Error: looking up container “nextcloud-app” for volumes-from: no container with name or ID “nextcloud-app” found: no such container
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] nextcloud-nginx.service: Control process exited, code=exited, status=125/n/a
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] nextcloud-nginx.service: Failed with result ‘exit-code’.
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] Failed to start Podman nextcloud-nginx.service.
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] Reached target Main User Target.
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] Startup finished in 3.547s.
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] nextcloud-app.service: Scheduled restart job, restart counter is at 2.
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] nextcloud-nginx.service: Scheduled restart job, restart counter is at 2.
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] Stopped Podman nextcloud-nginx.service.
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] Stopped Podman nextcloud-app.service.
2024-04-16T20:18:26+05:00 [1:nextcloud2:systemd] Starting Podman nextcloud-app.service…
2024-04-16T20:18:27+05:00 [1:nextcloud2:podman] time=“2024-04-16T20:18:27+05:00” level=warning msg=“Unmounting container "nextcloud-app" while attempting to delete storage: unmounting "/home/nextcloud2/.local/share/containers/storage/overlay/5a7238818f22772211cc26b9f994f13b0e8346bfce7d120b1bcc6e318781d1ee/merged": invalid argument”
2024-04-16T20:18:27+05:00 [1:nextcloud2:podman] Error: removing storage for container “nextcloud-app”: unmounting “/home/nextcloud2/.local/share/containers/storage/overlay/5a7238818f22772211cc26b9f994f13b0e8346bfce7d120b1bcc6e318781d1ee/merged”: invalid argument
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] nextcloud-app.service: Control process exited, code=exited, status=125/n/a
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] nextcloud-app.service: Failed with result ‘exit-code’.
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] Failed to start Podman nextcloud-app.service.
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] Starting Podman nextcloud-nginx.service…
2024-04-16T20:18:27+05:00 [1:nextcloud2:podman] Error: looking up container “nextcloud-app” for volumes-from: no container with name or ID “nextcloud-app” found: no such container
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] nextcloud-nginx.service: Control process exited, code=exited, status=125/n/a
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] nextcloud-nginx.service: Failed with result ‘exit-code’.
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] Failed to start Podman nextcloud-nginx.service.
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27+00:00 [Note] [Entrypoint]: Switching to dedicated user ‘mysql’
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.17+maria~ubu2004 started.
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Note] Starting MariaDB 10.6.17-MariaDB-1:10.6.17+maria~ubu2004 source revision 15c75ad083a55e198ae78324f22970694b72f22b as process 1
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Note] InnoDB: Number of pools: 1
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] nextcloud-app.service: Scheduled restart job, restart counter is at 3.
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] nextcloud-nginx.service: Scheduled restart job, restart counter is at 3.
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] Stopped Podman nextcloud-nginx.service.
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] Stopped Podman nextcloud-app.service.
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] Starting Podman nextcloud-app.service…
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Note] InnoDB: Using Linux native AIO
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Note] InnoDB: Completed initialization of buffer pool
2024-04-16T20:18:27+05:00 [1:nextcloud2:podman] time=“2024-04-16T20:18:27+05:00” level=warning msg=“Unmounting container "nextcloud-app" while attempting to delete storage: unmounting "/home/nextcloud2/.local/share/containers/storage/overlay/5a7238818f22772211cc26b9f994f13b0e8346bfce7d120b1bcc6e318781d1ee/merged": invalid argument”
2024-04-16T20:18:27+05:00 [1:nextcloud2:podman] Error: removing storage for container “nextcloud-app”: unmounting “/home/nextcloud2/.local/share/containers/storage/overlay/5a7238818f22772211cc26b9f994f13b0e8346bfce7d120b1bcc6e318781d1ee/merged”: invalid argument
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] nextcloud-app.service: Control process exited, code=exited, status=125/n/a
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] nextcloud-app.service: Failed with result ‘exit-code’.
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] Failed to start Podman nextcloud-app.service.
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] Starting Podman nextcloud-nginx.service…
2024-04-16T20:18:27+05:00 [1:nextcloud2:podman] Error: looking up container “nextcloud-app” for volumes-from: no container with name or ID “nextcloud-app” found: no such container
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] nextcloud-nginx.service: Control process exited, code=exited, status=125/n/a
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] nextcloud-nginx.service: Failed with result ‘exit-code’.
2024-04-16T20:18:27+05:00 [1:nextcloud2:systemd] Failed to start Podman nextcloud-nginx.service.
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Note] InnoDB: 128 rollback segments are active.
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Note] InnoDB: Setting file ‘./ibtmp1’ size to 12 MB. Physically writing the file full; Please wait …
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Note] InnoDB: File ‘./ibtmp1’ size is now 12 MB.
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Note] InnoDB: 10.6.17 started; log sequence number 115432507; transaction id 363620
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Note] Plugin ‘FEEDBACK’ is disabled.
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Note] Server socket created on IP: ‘0.0.0.0’.
2024-04-16T20:18:27+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:27 0 [Note] Server socket created on IP: ‘::’.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] nextcloud-app.service: Scheduled restart job, restart counter is at 4.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] nextcloud-nginx.service: Scheduled restart job, restart counter is at 4.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] Stopped Podman nextcloud-nginx.service.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] Stopped Podman nextcloud-app.service.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] Starting Podman nextcloud-app.service…
2024-04-16T20:18:28+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:28 0 [Note] mariadbd: ready for connections.
2024-04-16T20:18:28+05:00 [1:nextcloud2:nextcloud-db] Version: ‘10.6.17-MariaDB-1:10.6.17+maria~ubu2004’ socket: ‘/run/mysqld/mysqld.sock’ port: 3306 mariadb.org binary distribution
2024-04-16T20:18:28+05:00 [1:nextcloud2:podman] time=“2024-04-16T20:18:28+05:00” level=warning msg=“Unmounting container "nextcloud-app" while attempting to delete storage: unmounting "/home/nextcloud2/.local/share/containers/storage/overlay/5a7238818f22772211cc26b9f994f13b0e8346bfce7d120b1bcc6e318781d1ee/merged": invalid argument”
2024-04-16T20:18:28+05:00 [1:nextcloud2:podman] Error: removing storage for container “nextcloud-app”: unmounting “/home/nextcloud2/.local/share/containers/storage/overlay/5a7238818f22772211cc26b9f994f13b0e8346bfce7d120b1bcc6e318781d1ee/merged”: invalid argument
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] nextcloud-app.service: Control process exited, code=exited, status=125/n/a
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] nextcloud-app.service: Failed with result ‘exit-code’.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] Failed to start Podman nextcloud-app.service.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] Starting Podman nextcloud-nginx.service…
2024-04-16T20:18:28+05:00 [1:nextcloud2:podman] Error: looking up container “nextcloud-app” for volumes-from: no container with name or ID “nextcloud-app” found: no such container
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] nextcloud-nginx.service: Control process exited, code=exited, status=125/n/a
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] nextcloud-nginx.service: Failed with result ‘exit-code’.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] Failed to start Podman nextcloud-nginx.service.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] nextcloud-app.service: Scheduled restart job, restart counter is at 5.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] nextcloud-nginx.service: Scheduled restart job, restart counter is at 5.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] Stopped Podman nextcloud-nginx.service.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] Stopped Podman nextcloud-app.service.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] nextcloud-app.service: Start request repeated too quickly.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] nextcloud-app.service: Failed with result ‘exit-code’.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] Failed to start Podman nextcloud-app.service.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] nextcloud-nginx.service: Start request repeated too quickly.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] nextcloud-nginx.service: Failed with result ‘exit-code’.
2024-04-16T20:18:28+05:00 [1:nextcloud2:systemd] Failed to start Podman nextcloud-nginx.service.
2024-04-16T20:18:28+05:00 [1:nextcloud2:nextcloud-db] 2024-04-16 15:18:28 0 [Note] InnoDB: Buffer pool(s) load completed at 240416 15:18:28
2024-04-16T20:19:29+05:00 [1:nextcloud2:agent@nextcloud2] task/module/nextcloud2/11bdcc9d-1fee-4350-8155-60f95314d7d7: get-name/50get_name is starting
2024-04-16T20:19:29+05:00 [1:nextcloud2:agent@nextcloud2] task/module/nextcloud2/e42ed655-1959-475d-b63e-7ea10ed5a1a2: get-configuration/20read is starting
2024-04-16T20:19:29+05:00 [1:nextcloud2:agent@nextcloud2] task/module/nextcloud2/a2b8bebf-3a0a-49e1-88c5-1ef99afdb39b: get-status/20read is starting
2024-04-16T20:19:29+05:00 [1:nextcloud2:agent@nextcloud2] task/module/nextcloud2/11bdcc9d-1fee-4350-8155-60f95314d7d7: action “get-name” status is “completed” (0) at step 50get_name
2024-04-16T20:19:29+05:00 [1:nextcloud2:agent@nextcloud2] task/module/nextcloud2/e42ed655-1959-475d-b63e-7ea10ed5a1a2: action “get-configuration” status is “completed” (0) at step 20read
2024-04-16T20:19:29+05:00 [1:nextcloud2:agent@nextcloud2] task/module/nextcloud2/a2b8bebf-3a0a-49e1-88c5-1ef99afdb39b: action “get-status” status is “completed” (0) at step validate-output.json

I think it’s following issue:

The command for your case to remove the merged dirs:

rmdir /home/nextcloud2/.local/share/containers/storage/overlay/*/merged

Restart nextcloud:

runagent -m nextcloud2 systemctl --user restart nextcloud

Thank you very much, the problem has been solved. :partying_face: :partying_face: :partying_face: :+1:

1 Like