docker icon indicating copy to clipboard operation
docker copied to clipboard

exec /docker-cron-entrypoint.sh: no such file or directory

Open arnaudluti opened this issue 2 years ago • 13 comments

Hello, Eramba version 1.3.0. Following basic instructions to setup test environment on docker, the cron container crashes with this message. Arnaud

arnaudluti avatar Feb 25 '23 18:02 arnaudluti

I have same issue

ilhammuhammadx avatar Mar 20 '23 06:03 ilhammuhammadx

Did you manage to find a work around?

Harry-Drew-Uni avatar Apr 01 '23 15:04 Harry-Drew-Uni

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.

arnaudluti avatar Apr 02 '23 09:04 arnaudluti

Thanks for that. Lets hope it get fixed soon

Harry-Drew-Uni avatar Apr 02 '23 20:04 Harry-Drew-Uni

Hello,

What Linux distribution you are using on the host machine?

elsombrante avatar Apr 03 '23 08:04 elsombrante

are you on the VMware appliance? Then its under /home/docker. The file is passthought to the container so you need.

donserdal avatar Jun 14 '23 07:06 donserdal

I have the same issue.

haithammog avatar Dec 17 '23 18:12 haithammog

this problem related to permissions on hosted mashine. Run command: chmod -R 755 /docker/

mrtaxi avatar May 20 '24 11:05 mrtaxi

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

mrtaxi avatar May 23 '24 13:05 mrtaxi

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

tomisee avatar Aug 07 '24 10:08 tomisee

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 avatar Oct 01 '24 20:10 doughjoe77

@doughjoe77 I experience the same issue, have you found a fix? Thx

MLB77 avatar Nov 19 '24 07:11 MLB77

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.

thebub avatar Jan 08 '25 14:01 thebub