Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] s6-rc-compile: fatal: invalid /etc/s6-overlay/s6-rc.d/init-crontabs-config/type: must be oneshot, longrun, or bundle #360

Closed
1 task done
zazizou opened this issue Sep 4, 2023 · 8 comments
Labels

Comments

@zazizou
Copy link

zazizou commented Sep 4, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

On the latest docker image, I am observing this critical issue, with the container hanging on these two messages:

  • s6-rc-compile: fatal: invalid /etc/s6-overlay/s6-rc.d/init-crontabs-config/type: must be oneshot, longrun, or bundle
  • s6-rc-compile: fatal: invalid /etc/s6-overlay/s6-rc.d/init-nextcloud-config/type: must be oneshot, longrun, or bundle
    And the init never ends while the WebUI will issue server internal error.

Expected Behavior

Should run without an error. Previous image does not have the problem.

Steps To Reproduce

A docker run -it lscr.io/linuxserver/nextcloud:latest bash will expose the issue

Environment

- OS:Archlinux
- How docker service was installed: by package manager

CPU architecture

x86-64

Docker creation

As recommended by this repo README,  with a compose file.

Container logs

Not relevant
@github-actions
Copy link

github-actions bot commented Sep 4, 2023

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@github-actions
Copy link

github-actions bot commented Sep 4, 2023

A human has marked this issue as invalid, this likely happened because the issue template was not used in the creation of the issue.

@LinuxServer-CI LinuxServer-CI moved this from Issues to Insufficient Info in Issue & PR Tracker Sep 4, 2023
@j0nnymoe
Copy link
Member

j0nnymoe commented Sep 4, 2023

While I appreciate you might not think the container start up logs aren't relevant or providing your docker compose snippet. It would be helpful for you to provide it so we can attempt to reproduce this error.

Because our smoke tests currently shows it booting fine https://ci-tests.linuxserver.io/linuxserver/nextcloud/latest/index.html

@zazizou
Copy link
Author

zazizou commented Sep 4, 2023

I have tried modifying the files by hand and restart the container, but still broken.

I went back for lscr.io/linuxserver/nextcloud:27.0.2-ls266, and everything is working as expected

@zazizou
Copy link
Author

zazizou commented Sep 4, 2023

While I appreciate you might not think the container start up logs aren't relevant or providing your docker compose snippet. It would be helpful for you to provide it so we can attempt to reproduce this error.

Because our smoke tests currently shows it booting fine https://ci-tests.linuxserver.io/linuxserver/nextcloud/latest/index.html

My compose file is a copy and paste of the README of this repo, apart from the data volumes.

For the logs, not to break my setup again, here are some hints

% sudo docker run  -it lscr.io/linuxserver/nextcloud:latest bash 
% sudo docker logs 1f051780569b 
s6-rc-compile: fatal: invalid /etc/s6-overlay/s6-rc.d/init-crontabs-config/type: must be oneshot, longrun, or bundle

As you can see, nothing happens beyond this message

Now this is what should happen:

% sudo docker run  -it lscr.io/linuxserver/nextcloud:27.0.2-ls266 bash 
% sudo docker logs f289830be1a8 


[migrations] started
[migrations] 01-nginx-site-confs-default: executing...
[migrations] 01-nginx-site-confs-default: succeeded
[migrations] 02-default-location: executing...
grep: /config/nginx/site-confs/default.conf: No such file or directory
[migrations] 02-default-location: succeeded
[migrations] done
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    911
User GID:    911
───────────────────────────────────────

Setting resolver to  8.8.8.8 8.8.4.4
Setting worker_processes to 8
generating self-signed keys in /config/keys, you can replace these with your own keys if required
.+...+....+......+...........+......+....+...+.....+...+....+.....+....+..+.............+..+.........+++++++++++++++++++++++++++++++++++++++*...+.....+....+.....+.+...............+......+...+.....+.......+......+..+.+......+......+..+..........+++++++++++++++++++++++++++++++++++++++*.......+....++++++
...+++++++++++++++++++++++++++++++++++++++*..............+...............+.+++++++++++++++++++++++++++++++++++++++*......+......+..........+...+......+.....+...+......+....+.....+..........+...+..+.............+...+..+.......+.....+......+.+.....+.........+......+.+............+.....+.......+........+...+............+.+...........+....+.........+..+.+........+.........................+...........+....+......+...+.....+.....................+.+.....+.+...+.....+.+........+..........+...+.....++++++
-----
Initializing nextcloud 27.0.2.1 (this can take a while) ...
Setting permissions
New nextcloud instance
Please run the web-based installer on first connect!
Initializing finished
After completing the web-based installer, restart the Nextcloud container to apply default memory caching and transactional file locking configurations.
Alternatively, you can apply your own configurations by editing /config/www/nextcloud/config/config.php following the documentation:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html
https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/files_locking_transactional.html
# do daily/weekly/monthly maintenance
# min   hour    day     month   weekday command
*/15    *       *       *       *       run-parts /etc/periodic/15min
0       *       *       *       *       run-parts /etc/periodic/hourly
0       2       *       *       *       run-parts /etc/periodic/daily
0       3       *       *       6       run-parts /etc/periodic/weekly
0       5       1       *       *       run-parts /etc/periodic/monthly
# nextcloud cron
*/5     *       *       *       *       s6-setuidgid abc php -f /app/www/public/cron.php
cp: not replacing '/config/crontabs/root'
[custom-init] No custom files found, skipping...
crond[366]: crond (busybox 1.36.1) started, log level 5
[ls.io-init] done.

I hope this can help investigate.

Regards

@drizuid
Copy link
Member

drizuid commented Sep 11, 2023

What is the output of id 1000 && ls -asnl /path/to/appdata

@buckley310
Copy link

I ran into a similar issue on kubernetes/k3s using another linuxserver image this week. The old version worked but the latest version gave me this error. I found that /etc/s6-overlay/s6-rc.d/ci-service-check/type was an empty file on my k3s server, but not on my local machine. Manually deleting the image on the server and having it re-download fixed the issue. Not sure what the root cause was. I am reasonably sure the disk was never full.

@drizuid
Copy link
Member

drizuid commented Sep 28, 2023

unfortunately the OP has elected to not provide the required information and only themselves and one user in an unsupported setup (k3s) have encountered this. We will close this as not reproducible.

@drizuid drizuid closed this as not planned Won't fix, can't repro, duplicate, stale Sep 28, 2023
@LinuxServer-CI LinuxServer-CI moved this from Insufficient Info to Done in Issue & PR Tracker Sep 28, 2023
@linuxserver linuxserver locked as resolved and limited conversation to collaborators Sep 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Archived in project
Development

No branches or pull requests

4 participants