linuxserver / docker-grav

GNU General Public License v3.0
31 stars 11 forks source link

Cron Not Available for user: abc #4

Closed jacobm001 closed 3 years ago

jacobm001 commented 3 years ago

linuxserver.io

I'm interesting in using the GravCMS container provided here, but in my testing it appears that Cron is not correctly configured. The cronjob is setup in the docker build, but Cron is not enabled for the run as user.

image


Expected Behavior

cron should be successfully executing the scheduled job.

Current Behavior

Grav reports that Cron is not available for the user abc.

Steps to Reproduce

  1. Launch a grav container
  2. Navigate to host/admin/tools/scheduler

Environment

OS: Windows and Linux CPU architecture: x86_64 How docker service was installed: Docker came installed on my Synology 720+ and I manually installed it via the official docker page on my desktop. The issue is present on both environments.

Docker logs

date,stream,content
2021-06-20 04:25:00,stdout,crond[329]: USER abc pid 643 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:24:00,stdout,crond[329]: USER abc pid 636 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:23:00,stdout,crond[329]: USER abc pid 627 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:22:00,stdout,crond[329]: USER abc pid 620 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:21:00,stdout,crond[329]: USER abc pid 613 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:20:00,stdout,crond[329]: USER abc pid 606 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:19:00,stdout,crond[329]: USER abc pid 599 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:18:00,stdout,crond[329]: USER abc pid 592 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:17:00,stdout,crond[329]: USER abc pid 585 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:16:00,stdout,crond[329]: USER abc pid 578 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:15:00,stdout,crond[329]: USER abc pid 571 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:14:00,stdout,crond[329]: USER abc pid 564 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:13:00,stdout,crond[329]: USER abc pid 557 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:12:00,stdout,crond[329]: USER abc pid 547 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:11:00,stdout,crond[329]: USER abc pid 540 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:10:00,stdout,crond[329]: USER abc pid 533 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:09:00,stdout,crond[329]: USER abc pid 526 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:08:00,stdout,crond[329]: USER abc pid 519 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:07:00,stdout,crond[329]: USER abc pid 512 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:06:00,stdout,crond[329]: USER abc pid 505 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:05:00,stdout,crond[329]: USER abc pid 498 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:04:00,stdout,crond[329]: USER abc pid 491 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:03:00,stdout,crond[329]: USER abc pid 484 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:02:00,stdout,crond[329]: USER abc pid 477 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:01:00,stdout,crond[329]: USER abc pid 470 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 04:00:00,stdout,crond[329]: USER abc pid 463 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 03:59:00,stdout,crond[329]: USER abc pid 456 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 03:58:00,stdout,crond[329]: USER abc pid 449 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 03:57:00,stdout,crond[329]: USER abc pid 442 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 03:56:00,stdout,crond[329]: USER abc pid 435 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 03:55:00,stdout,crond[329]: USER abc pid 428 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 03:54:00,stdout,crond[329]: USER abc pid 421 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 03:53:00,stdout,crond[329]: USER abc pid 414 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 03:52:00,stdout,crond[329]: USER abc pid 407 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 03:51:00,stdout,crond[329]: USER abc pid 400 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 03:50:00,stdout,crond[329]: USER abc pid 393 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 03:49:00,stdout,crond[329]: USER abc pid 386 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 03:48:00,stdout,crond[329]: USER abc pid 379 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 03:47:00,stdout,crond[329]: USER abc pid 372 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 03:46:00,stdout,crond[329]: USER abc pid 365 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 03:45:00,stdout,crond[329]: USER abc pid 353 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 03:44:42,stdout,[19-Jun-2021 20:44:42] NOTICE: ready to handle connections
2021-06-20 03:44:42,stdout,"[19-Jun-2021 20:44:42] NOTICE: fpm is running, pid 328
"
2021-06-20 03:44:42,stdout,"crond[329]: crond (busybox 1.32.1) started, log level 5
"
2021-06-20 03:44:42,stdout,[services.d] done.
2021-06-20 03:44:42,stdout,[services.d] starting services
2021-06-20 03:44:42,stdout,[cont-init.d] done.
2021-06-20 03:44:42,stdout,[cont-init.d] 99-custom-files: exited 0.
2021-06-20 03:44:42,stdout,[custom-init] no custom files found exiting...
2021-06-20 03:44:42,stdout,[cont-init.d] 99-custom-files: executing... 
2021-06-20 03:44:42,stdout,[cont-init.d] 50-config: exited 0.
2021-06-20 03:44:41,stdout,[cont-init.d] 50-config: executing... 
2021-06-20 03:44:41,stdout,[cont-init.d] 30-keygen: exited 0.
2021-06-20 03:44:41,stdout,using keys found in /config/keys
2021-06-20 03:44:41,stdout,[cont-init.d] 30-keygen: executing... 
2021-06-20 03:44:41,stdout,[cont-init.d] 20-config: exited 0.
2021-06-20 03:44:41,stdout,[cont-init.d] 20-config: executing... 
2021-06-20 03:44:41,stdout,[cont-init.d] 10-adduser: exited 0.
2021-06-20 03:44:41,stdout,
2021-06-20 03:44:41,stdout,-------------------------------------
2021-06-20 03:44:41,stdout,User gid:    911
2021-06-20 03:44:41,stdout,User uid:    911
2021-06-20 03:44:41,stdout,
2021-06-20 03:44:41,stdout,-------------------------------------
2021-06-20 03:44:41,stdout,GID/UID
2021-06-20 03:44:41,stdout,-------------------------------------
2021-06-20 03:44:41,stdout,https://www.linuxserver.io/donate/
2021-06-20 03:44:41,stdout,To support LSIO projects visit:
2021-06-20 03:44:41,stdout,
2021-06-20 03:44:41,stdout,Grav: https://opencollective.com/grav/donate
2021-06-20 03:44:41,stdout,To support the app dev(s) visit:
2021-06-20 03:44:41,stdout,
2021-06-20 03:44:41,stdout,-------------------------------------
2021-06-20 03:44:41,stdout,Brought to you by linuxserver.io
2021-06-20 03:44:41,stdout,
2021-06-20 03:44:41,stdout,
2021-06-20 03:44:41,stdout,         |_| |___/ |_|  \__/
2021-06-20 03:44:41,stdout,         | | \__ \ | | | () |
2021-06-20 03:44:41,stdout,         | | / __| | |  /  \ 
2021-06-20 03:44:41,stdout,         | |  ___   _    __
2021-06-20 03:44:41,stdout,          _         ()
2021-06-20 03:44:41,stdout,-------------------------------------
2021-06-20 03:44:41,stdout,
2021-06-20 03:44:41,stdout,usermod: no changes
2021-06-20 03:44:41,stdout,[cont-init.d] 10-adduser: executing... 
2021-06-20 03:44:41,stdout,[cont-init.d] 01-envfile: exited 0.
2021-06-20 03:44:41,stdout,[cont-init.d] 01-envfile: executing... 
2021-06-20 03:44:41,stdout,[cont-init.d] executing container initialization scripts...
2021-06-20 03:44:41,stdout,[fix-attrs.d] done.
2021-06-20 03:44:41,stdout,[fix-attrs.d] applying ownership & permissions fixes...
2021-06-20 03:44:41,stdout,[s6-init] ensuring user provided files have correct perms...exited 0.
2021-06-20 03:44:41,stdout,[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
2021-06-20 03:43:35,stdout,[s6-finish] sending all processes the KILL signal and exiting.
2021-06-20 03:43:32,stdout,[s6-finish] sending all processes the TERM signal.
2021-06-20 03:43:32,stdout,[s6-finish] waiting for services.
2021-06-20 03:43:32,stdout,[cont-finish.d] done.
2021-06-20 03:43:32,stdout,[cont-finish.d] executing container finish scripts...
2021-06-20 03:43:32,stdout,"[19-Jun-2021 20:43:32] NOTICE: exiting, bye-bye!
"
2021-06-20 03:43:32,stdout,[19-Jun-2021 20:43:32] NOTICE: Terminating ...
2021-06-20 03:43:00,stdout,crond[339]: USER abc pid 363 cmd cd /app/grav-admin;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1
2021-06-20 03:42:53,stdout,[19-Jun-2021 20:42:53] NOTICE: ready to handle connections
2021-06-20 03:42:53,stdout,"[19-Jun-2021 20:42:53] NOTICE: fpm is running, pid 341
"
2021-06-20 03:42:52,stdout,"crond[339]: crond (busybox 1.32.1) started, log level 5
"
2021-06-20 03:42:52,stdout,[services.d] done.
2021-06-20 03:42:52,stdout,[services.d] starting services
2021-06-20 03:42:52,stdout,[cont-init.d] done.
2021-06-20 03:42:52,stdout,[cont-init.d] 99-custom-files: exited 0.
2021-06-20 03:42:52,stdout,[custom-init] no custom files found exiting...
2021-06-20 03:42:52,stdout,[cont-init.d] 99-custom-files: executing... 
2021-06-20 03:42:52,stdout,[cont-init.d] 50-config: exited 0.
2021-06-20 03:42:49,stdout,[cont-init.d] 50-config: executing... 
2021-06-20 03:42:49,stdout,[cont-init.d] 30-keygen: exited 0.
2021-06-20 03:42:49,stdout,-----
2021-06-20 03:42:49,stdout,writing new private key to '/config/keys/cert.key'
2021-06-20 03:42:49,stdout,...+++++
2021-06-20 03:42:49,stdout,.........................................+++++
2021-06-20 03:42:49,stdout,Generating a RSA private key
2021-06-20 03:42:49,stdout,"generating self-signed keys in /config/keys, you can replace these with your own keys if required
"
2021-06-20 03:42:49,stdout,[cont-init.d] 30-keygen: executing... 
2021-06-20 03:42:49,stdout,[cont-init.d] 20-config: exited 0.
2021-06-20 03:42:49,stdout,[cont-init.d] 20-config: executing... 
2021-06-20 03:42:49,stdout,[cont-init.d] 10-adduser: exited 0.
2021-06-20 03:42:49,stdout,
2021-06-20 03:42:49,stdout,-------------------------------------
2021-06-20 03:42:49,stdout,User gid:    911
2021-06-20 03:42:49,stdout,User uid:    911
2021-06-20 03:42:49,stdout,
2021-06-20 03:42:49,stdout,-------------------------------------
2021-06-20 03:42:49,stdout,GID/UID
2021-06-20 03:42:49,stdout,-------------------------------------
2021-06-20 03:42:49,stdout,https://www.linuxserver.io/donate/
2021-06-20 03:42:49,stdout,To support LSIO projects visit:
2021-06-20 03:42:49,stdout,
2021-06-20 03:42:49,stdout,Grav: https://opencollective.com/grav/donate
2021-06-20 03:42:49,stdout,To support the app dev(s) visit:
2021-06-20 03:42:49,stdout,
2021-06-20 03:42:49,stdout,-------------------------------------
2021-06-20 03:42:49,stdout,Brought to you by linuxserver.io
2021-06-20 03:42:49,stdout,
2021-06-20 03:42:49,stdout,
2021-06-20 03:42:49,stdout,         |_| |___/ |_|  \__/
2021-06-20 03:42:49,stdout,         | | \__ \ | | | () |
2021-06-20 03:42:49,stdout,         | | / __| | |  /  \ 
2021-06-20 03:42:49,stdout,         | |  ___   _    __
2021-06-20 03:42:49,stdout,          _         ()
2021-06-20 03:42:49,stdout,-------------------------------------
2021-06-20 03:42:49,stdout,
2021-06-20 03:42:49,stdout,usermod: no changes
2021-06-20 03:42:49,stdout,[cont-init.d] 10-adduser: executing... 
2021-06-20 03:42:49,stdout,[cont-init.d] 01-envfile: exited 0.
2021-06-20 03:42:49,stdout,[cont-init.d] 01-envfile: executing... 
2021-06-20 03:42:49,stdout,[cont-init.d] executing container initialization scripts...
2021-06-20 03:42:49,stdout,[fix-attrs.d] done.
2021-06-20 03:42:49,stdout,[fix-attrs.d] applying ownership & permissions fixes...
2021-06-20 03:42:49,stdout,[s6-init] ensuring user provided files have correct perms...exited 0.
2021-06-20 03:42:49,stdout,[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
github-actions[bot] commented 3 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

thespad commented 3 years ago

It's a known issue that we call out in the Application Setup. The cron tasks run as expected, it's just a UI bug.

We've got a proposed fix for it, it just needs to be properly tested.

thespad commented 3 years ago

@jacobm001 please can you try using image lspipepr/grav:1.7.17-pkg-2232ded5-pr-5 and see if it resolves your issue.

jacobm001 commented 3 years ago

Sorry I didn't get to this in time, but the merged change does in fact fix my issue.