exec /docker-cron-entrypoint.sh: no such file or directory
Hello, Eramba version 1.3.0. Following basic instructions to setup test environment on docker, the cron container crashes with this message. Arnaud
I have same issue
Did you manage to find a work around?
Hi, no, i've tried to modify the dockerfile and/or the docker-compose with no success. I've finally installed Eramba with a previous release.
Thanks for that. Lets hope it get fixed soon
Hello,
What Linux distribution you are using on the host machine?
are you on the VMware appliance? Then its under /home/docker. The file is passthought to the container so you need.
I have the same issue.
this problem related to permissions on hosted mashine. Run command: chmod -R 755 /docker/
git clone https://github.com/eramba/docker.git /docker/eramba/ chmod -R 755 /docker/eramba chmod -R 755 /docker/eramba/mysql/conf.d chmod -R 755 /docker/eramba/mysql/entrypoint chmod 664 /docker/eramba/mysql/conf.d/custom.cnf chmod 775 /docker/eramba/mysql/entrypoint/grant.sh
This issue is occurring as of 07/08/2024.
reproduction steps:
- git clone https://github.com/eramba/docker.git
- cd docker
- docker compose -f docker-compose.simple-install.yml up -d
- When reading the logs docker-cron-entrypoint.sh file/folder does not exist
Hi, I'm running Docker Desktop on Windows 11 (shouldn't matter at all in the world of Docker), but I resolved the issue on my side with some tweaks, had to modify the "docker-compose.simple-install.yml" for the "cron" section to look like this:
cron:
container_name: cron
image: ghcr.io/eramba/eramba:latest
command: ["cron", "-f"]
#entrypoint: ["./docker-cron-entrypoint.sh"]
entrypoint: ["../eramba/docker/docker-cron-entrypoint.sh"]
The problem is that the docker-cron-entrypoint.sh is not in the same directory as the startup directory for the container, the extra period takes you out of the "html" directory and lets you point at the file.
after you do that, you need to start community edition like this so the .env file is applied:
docker compose -f docker-compose.simple-install.yml --env-file .env up -d
the web site comes up on https://localhost:8443, I can log in but the dashboard just says loading and never shows any data. I looked in the "error.log" and say this entry here, it appears there may be a bad GROUP BY in a SQL Query?
Request URL: /limitless_theme/js/plugins/editors/summernote/summernote.min.js.map
Client IP: 172.27.0.1
2024-10-01 19:55:05 error: [PDOException] SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #15 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'docker.AdvancedFilterUserSettings.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by in /var/www/eramba/app/upgrade/vendor/cakephp/cakephp/src/Database/Statement/MysqlStatement.php on line 39
Stack Trace:
@doughjoe77 I experience the same issue, have you found a fix? Thx
I believe the original issue is caused by the fact, that the container is started from a Docker Desktop/Rancher Desktop/ WSL environment.
The docker-compose file mounts the file docker-cron-entrypoint.sh into the Docker container.
As the file is stored in a Windows filesystem in such a setup, it might have the wrong file permissions, like missing executable flag.
This then causes the container startup to fail.
The other issue expressed by @doughjoe77 is a different one and also described in issue #62. (Also caused by bad file permissions due to a Docker Desktop/Rancher Desktop/WSL environment)
Request URL: /limitless_theme/js/plugins/editors/summernote/summernote.min.js.map Client IP: 172.27.0.1 2024-10-01 19:55:05 error: [PDOException] SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #15 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'docker.AdvancedFilterUserSettings.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by in /var/www/eramba/app/upgrade/vendor/cakephp/cakephp/src/Database/Statement/MysqlStatement.php on line 39 Stack Trace:
The mysqld is not loading the mysql/conf.d/custom.cnf as described in my comment in the other issue and thus not setting the coirrect value for the sql_mode.