tiredofit / docker-leantime

Dockerized Project Managment tool with many configurable options
MIT License
16 stars 4 forks source link

setup looping #9

Open jwynn6 opened 1 year ago

jwynn6 commented 1 year ago

From v1.0.2 I'm getting stuck in a loop at setup. The following is the log that repeats with every loop. Attempting to visit in a browser gives an "err_too_many_redirects" and the url jumps to https://foo.com/install/update. It makes me think the setup script isn't completing and somehow triggering the containers to reset. Any ideas? I'm a bit stumped since not much seems to have changed in the container generation scripts since 1.0.2.

LOGO removed for clarity

leantime-db | Image: tiredofit/mariadb:10.6 | Version 3.10.6 Type 'image_changelog' for details leantime-db | Repository/Issues/Support: https://github.com/tiredofit/docker-mariadb/ leantime-db | Like my work? Visit https://www.tiredofit.ca/sponsor leantime-db | leantime-db | 2022-08-26.00:13:38 [NOTICE] [monitoring] Container configured for monitoring with 'zabbix classic' leantime-db | 2022-08-26.00:13:38 [NOTICE] [scheduling] Disabling Scheduling leantime-db | sed: /etc/logrotate.d/mariadb: No such file or directory leantime-db | 2022-08-26.00:13:38 [WARN] [mariadb] MariaDB directory already present, skipping database creation leantime-db | 2022-08-26.00:13:38 [NOTICE] [mariadb-backup] Disabling scheduled backups leantime-db | 2022-08-26.00:13:38 [STARTING] [mariadb] [1] Starting MariaDB 10.6.7 leantime-db | 2022-08-26.00:13:38 [STARTING] [monitoring] [1] Starting Zabbix Agent (classic) 6.0.0

LOGO removed for clarity leantime | Image: tiredofit/leantime | Version 1.0.6 Type 'image_changelog' for details leantime | Repository/Issues/Support: https://github.com/tiredofit/docker-leantime/ leantime | Sponsor me for development and upkeep: https://www.tiredofit.ca/sponsor leantime | leantime | 2022-08-26.00:13:38 [NOTICE] [timezone] Timezone: Setting to 'America/New_York' from 'Etc/GMT' leantime | 2022-08-25.20:13:38 [NOTICE] [monitoring] Container configured for monitoring with 'zabbix modern' leantime | 2022-08-25.20:13:39 [NOTICE] [scheduling] Container configured for scheduled tasks with 'cron' leantime | 2022-08-25.20:13:39 [NOTICE] [messaging] Container configured to route mail via SMTP to 'postfix-relay' leantime | 2022-08-25.20:13:41 [NOTICE] [php-fpm] PHP-FPM Preparing to start with the following plugins enabled: apcu bcmath bz2 ctype curl dom exif fileinfo gd iconv imap intl ldap mbstring mysqli mysqlnd opcache openssl pdo pdo_mysql pgsql phar session simplexml tokenizer xml xmlreader xmlwriter zip leantime | 2022-08-25.20:13:41 [WARN] [leantime] Potential New Installation / Standalone Installation Detected - Copying Leantime Sourcecode leantime | 2022-08-25.20:13:45 [WARN] [leantime] Detected /data directory. Persistently saving settings and volatile information leantime | ln: /www/html//data/backup/: No such file or directory leantime | 2022-08-25.20:13:46 [INFO] [leantime] Auto Configuring based on Environment Variables leantime | 2022-08-25.20:13:46 [INFO] [leantime] Generating Configuration leantime | 2022-08-25.20:13:46 [STARTING] [nginx] [1] Starting nginx 1.23.1 leantime | 2022-08-25.20:13:46 [STARTING] [php-fpm] [1] Starting php-fpm 8.0.22 leantime | 2022-08-25.20:13:46 [STARTING] [monitoring] [1] Starting Zabbix Agent (modern) 6.2.1 leantime | 2022-08-25.20:13:46 [STARTING] [scheduling] [1] Starting cron leantime | 2022-08-25.20:13:51 [WARN] [leantime] Detected empty Database - Setting up - Please wait a few minutes.. leantime | 2022-08-25.20:13:51 [INFO] ** [leantime] Initialization Complete. Please visit >https://abcd.com and login with your credentials..

tiredofit commented 1 year ago

Definitely weird. Something perhaps with the SITE_URL variable? You are right as well, not much has changed since 1.0.2 to affect this which is going to make this difficult to track where the issue is. It could very well be something within Leantime itself?

jwynn6 commented 1 year ago

It looks like it's never actually writing to the database. Possibly some sort of silent fail when invoking the auto-creation of the admin user?

tiredofit commented 1 year ago

Try using environment variable SHOW_OUTPUT=TRUE and lets see.

tiredofit commented 1 year ago

I just took a look at the config file and there is more options. Have a peek at 1.0.7 and I also believe this may give you a better install experience specifically with custom DB_PORT support and other goodies.

jwynn6 commented 1 year ago

Love the updates. With the expanded logging, it looks like the issue is in the initialization of the database. It shouldn't take forever, but surely some time need elapse, the timestamps look like it's instantaneous. I'll go through my config again and ensure all the info is correct for the database connection, and use the handy-dandy new DB_PORT.

leantime | 2022-08-25.22:35:36 [WARN] [leantime] Detected empty Database - Setting up - Please wait a few minutes.. leantime | 2022-08-25.22:35:36 [INFO] [leantime] Initialization Complete. Please visit https://abcd.com and login with your credentials...

jwynn6 commented 1 year ago

Likely unrelated: also seeing a backups error.

leantime | ln: /www/html//data/backup/: No such file or directory

ArjenR commented 1 year ago

The same problem for me on my existing install. It is looping between authentication and setup on an existing installation.