Closed Mazen-Saab closed 11 months ago
What is the exact error you are facing?
Server connot up ..! app-odc I have this error also in log first: time="2023-11-15T13:15:59+01:00" level=info msg="read crontab" /tmp/generated_crontab" sudo: /etc/container/startup.sh: command not found .
do you start the docker compose with the script or joust with docker-compose up?
installDockerUbuntu.sh and installOdcDocker.sh
okay, then normaly the permissions for the startup script should be set correctly. Why is this line here doubled?
- $PWD/dockerupdate.sh:/etc/container/startup.sh
- $PWD/dockerupdate.sh:/temp/container/startup.sh
in the original there is only:
- $PWD/dockerupdate.sh:/etc/container/startup.sh
It doesn't work. I did that, now it starts
error Log: time="2023-11-15T14:32:00+01:00" level=error msg="error running command: exit status 1" iteration=16 job.command="sudo -E -u root -- bash -c 'php /var/www/html/bin/console cron:run'" job.position=0 job.schedule=" *"
from browser:
https://odc.xxxx --> Gateway Timeout
https://keycloak-odc.xxx --> Gateway Timeout
Hello @Mazen-Saab,
it is very hard to make a diagnose without knowing your setup and the configuration of your treafikbut I try my best. Could it be that the trafik and the service containers are not in the same docker network? This is necessary when you use a seperate traefik to register correctly.
thank you very much that was.....! traefik was in one Network I add the ODC Network to traefik... it works :)
thank you very much :)
I tried to change docker-compose.yml but it does not work probably.
version: '3.8'
x-app-common: &odc_app build: . environment: APACHE_DOCUMENT_ROOT: "public/" PHP_EXTENSION_XDEBUG: "1" PHP_INI_MEMORY_LIMIT: "1G" PHP_EXTENSION_LDAP: 1 PHP_EXTENSION_INTL: 1 MAILER_DSN: ${MAILER_DSN}
services:
Here is the ODC app
app-odc: <<: *odc_app depends_on: db-odc: condition: service_healthy healthcheck: test: [ "CMD", "curl", "-s", "-f", "-i", "http://localhost:80/health/check" ] interval: 20s timeout: 10s start_period: 30s retries: 10
db-odc: image: mariadb:latest hostname: ${RANDOMTAG}db-odc healthcheck: test: [ "CMD", "mariadb-admin" ,"ping", "-h", "localhost","-ptest" ] timeout: 20s retries: 10 environment: MARIADB_ROOT_PASSWORD: test volumes:
./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
keycloak-odc: image: jboss/keycloak:latest
depends_on: app-odc: condition: service_healthy
environment: KEYCLOAK_USER: admin KEYCLOAK_PASSWORD: ${KEYCLOAK_ADMIN_PW} DB_VENDOR: mariadb DB_ADDR: ${RANDOMTAG}db-odc DB_DATABASE: keycloak DB_USER: keycloak DB_PASSWORD: ${KEYCLOAK_PW} DB_PORT: 3306 KEYCLOAK_IMPORT: /tmp/realm-export.json KEYCLOAK_FRONTEND_URL: "${HTTP_METHOD}://keycloak-${PUBLIC_URL}/auth" labels:
keycloak-${PUBLIC_URL}
)""traefik.http.routers.keycloak-odc.tls.certresolver=myresolver"
volumes:
volumes: mariadb: image_upload: datenschutzcenter_uploads: datenschutzcenter_data: datenschutzcenter_secret_storage: