You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As first install, i tinked "Yes, i want CRON".
But this stupid bash condition, make everything fail.
I've started from this compose:
dolibarr:
container_name: dolibarr
image: dolibarr/dolibarr:latest
restart: always
environment:
WWW_USER_ID: 82
WWW_GROUP_ID: 82
PHP_INI_DATE_TIMEZONE: Europe/Rome
PHP_INI_UPLOAD_MAX_FILESIZE: 50M
DOLI_DB_HOST: mysql
DOLI_DB_HOST_PORT: 3306
DOLI_DB_NAME: dolibarr
DOLI_DB_USER: dolibarr
DOLI_DB_PASSWORD: ${DOLIBARR_DB_PASSWORD}
DOLI_URL_ROOT: https://myorg.it
DOLI_ADMIN_LOGIN: dolibarr-admin
DOLI_ADMIN_PASSWORD: ${DOLIBARR_ADMIN_PASSWORD}
DOLI_CRON: 1
DOLI_COMPANY_NAME: "MY Org"
DOLI_COMPANY_COUNTRYCODE: "IT"
volumes:
- dolibarr_docs:/var/www/documents
- dolibarr_cust:/var/www/html/custom
networks:
- net
This service "dolibarr" has a NET network, where MySQL run as "mysql" container on default port.
UID/GID 82 is common number from PHP-FPM of Alpine, probably make no sense here.
After remove DOLI_CRON: 1 from compose, install process works correctly.
The text was updated successfully, but these errors were encountered:
similar issue, is cron meant to be run on separate service?
becuse apache not starting either
if [[ ${DOLI_CRON} -eq 1 ]]; then
echo "PATH=\$PATH:/usr/local/bin" > /etc/cron.d/dolibarr
echo "*/5 * * * * root /bin/su www-data -s /bin/sh -c '/var/www/scripts/cron/cron_run_jobs.php ${DOLI_CRON_KEY} ${DOLI_CRON_USER}' > /proc/1/fd/1 2> /proc/1/fd/2" >> /etc/cron.d/dolibarr
# this line makes me curious
cron -f
exit 0
fi
if [ "${1#-}" != "$1" ]; then
set -- apache2-foreground "$@"
fi
Hi,
I've spent some hours about fresh install of Dolibarr on Docker.
Nonthing works...
I've found a stupid undocumented problem.
dolibarr-docker
/docker-run.sh
Row 337.
${DOLI_CRON} -ne 1
As first install, i tinked "Yes, i want CRON".
But this stupid bash condition, make everything fail.
I've started from this compose:
dolibarr:
container_name: dolibarr
image: dolibarr/dolibarr:latest
restart: always
environment:
WWW_USER_ID: 82
WWW_GROUP_ID: 82
PHP_INI_DATE_TIMEZONE: Europe/Rome
PHP_INI_UPLOAD_MAX_FILESIZE: 50M
DOLI_DB_HOST: mysql
DOLI_DB_HOST_PORT: 3306
DOLI_DB_NAME: dolibarr
DOLI_DB_USER: dolibarr
DOLI_DB_PASSWORD: ${DOLIBARR_DB_PASSWORD}
DOLI_URL_ROOT: https://myorg.it
DOLI_ADMIN_LOGIN: dolibarr-admin
DOLI_ADMIN_PASSWORD: ${DOLIBARR_ADMIN_PASSWORD}
DOLI_CRON: 1
DOLI_COMPANY_NAME: "MY Org"
DOLI_COMPANY_COUNTRYCODE: "IT"
volumes:
- dolibarr_docs:/var/www/documents
- dolibarr_cust:/var/www/html/custom
networks:
- net
This service "dolibarr" has a NET network, where MySQL run as "mysql" container on default port.
UID/GID 82 is common number from PHP-FPM of Alpine, probably make no sense here.
After remove DOLI_CRON: 1 from compose, install process works correctly.
The text was updated successfully, but these errors were encountered: