-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't load the web #18
Comments
@MuMu360121 judging from your Docker Compose spec, you should try to use port |
I change to use the examples/apache.docker-compose.yml the log of portainer is: |
@MuMu360121 hmmm... I cannot repro... $ cd examples
$ docker compose -f apache.docker-compose.yml up
WARN[0000] /Users/tyranron/Job/projects/instrumentisto/roundcube-docker-image/examples/apache.docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 20/1
✔ roundcube Pulled 32.4s
[+] Running 2/2
✔ Network examples_default Created 0.0s
✔ Container examples-roundcube-1 Created 0.3s
Attaching to roundcube-1
roundcube-1 | s6-rc: info: service syslog: starting
roundcube-1 | s6-rc: info: service s6rc-oneshot-runner: starting
roundcube-1 | s6-rc: info: service syslog successfully started
roundcube-1 | s6-rc: info: service s6rc-oneshot-runner successfully started
roundcube-1 | s6-rc: info: service fix-attrs: starting
roundcube-1 | Nov 25 18:23:32 707286ddd463 syslogd (GNU inetutils 2.4): restart
roundcube-1 | Debugging is disabled. Send SIGUSR1 to PID=115 to turn on debugging.
roundcube-1 | s6-rc: info: service fix-attrs successfully started
roundcube-1 | s6-rc: info: service legacy-cont-init: starting
roundcube-1 | s6-rc: info: service legacy-cont-init successfully started
roundcube-1 | s6-rc: info: service legacy-services: starting
roundcube-1 | s6-rc: info: service legacy-services successfully started
roundcube-1 | [25-Nov-2024 18:23:33] STARTUP: PHP OPcache JIT is enabled of 100M
roundcube-1 | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.2. Set the 'ServerName' directive globally to suppress this message
roundcube-1 | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.2. Set the 'ServerName' directive globally to suppress this message
roundcube-1 | [25-Nov-2024 18:23:33 Etc/UTC] PHP Deprecated: PHP Startup: Use of mbstring.internal_encoding is deprecated in Unknown on line 0
roundcube-1 | [Mon Nov 25 18:23:33.713106 2024] [mpm_prefork:notice] [pid 255:tid 255] AH00163: Apache/2.4.62 (Debian) PHP/8.2.24 configured -- resuming normal operations
roundcube-1 | [Mon Nov 25 18:23:33.714343 2024] [core:notice] [pid 255:tid 255] AH00094: Command line: 'apache2 -D FOREGROUND'
roundcube-1 | 172.18.0.1 - - [25/Nov/2024:18:24:39 +0000] "GET / HTTP/1.1" 200 2933 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
roundcube-1 | 172.18.0.1 - - [25/Nov/2024:18:24:40 +0000] "GET /skins/elastic/deps/bootstrap.min.css?s=1728643600 HTTP/1.1" 200 24321 "http://localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
roundcube-1 | 172.18.0.1 - - [25/Nov/2024:18:24:40 +0000] "GET /program/js/jstz.min.js?s=1728643598 HTTP/1.1" 200 5462 "http://localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
roundcube-1 | 172.18.0.1 - - [25/Nov/2024:18:24:40 +0000] "GET /plugins/jqueryui/themes/elastic/jquery-ui.min.css?s=1725175911 HTTP/1.1" 200 7820 "http://localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
roundcube-1 | 172.18.0.1 - - [25/Nov/2024:18:24:40 +0000] "GET /program/js/common.min.js?s=1725175911 HTTP/1.1" 200 5301 "http://localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
roundcube-1 | 172.18.0.1 - - [25/Nov/2024:18:24:40 +0000] "GET /program/js/jquery.min.js?s=1728643598 HTTP/1.1" 200 32157 "http://localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
roundcube-1 | 172.18.0.1 - - [25/Nov/2024:18:24:40 +0000] "GET /skins/elastic/styles/styles.min.css?s=1725175911 HTTP/1.1" 200 22798 "http://localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
roundcube-1 | 172.18.0.1 - - [25/Nov/2024:18:24:40 +0000] "GET /skins/elastic/ui.min.js?s=1725175911 HTTP/1.1" 200 20125 "http://localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
roundcube-1 | 172.18.0.1 - - [25/Nov/2024:18:24:40 +0000] "GET /skins/elastic/deps/bootstrap.bundle.min.js?s=1728643600 HTTP/1.1" 200 22218 "http://localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
roundcube-1 | 172.18.0.1 - - [25/Nov/2024:18:24:40 +0000] "GET /program/js/app.min.js?s=1725175911 HTTP/1.1" 200 48493 "http://localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
roundcube-1 | 172.18.0.1 - - [25/Nov/2024:18:24:40 +0000] "GET /plugins/jqueryui/js/jquery-ui.min.js?s=1725175911 HTTP/1.1" 200 70898 "http://localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
roundcube-1 | 172.18.0.1 - - [25/Nov/2024:18:24:40 +0000] "GET /skins/elastic/images/logo.svg?s=1725175911 HTTP/1.1" 200 840 "http://localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
roundcube-1 | 172.18.0.1 - - [25/Nov/2024:18:24:40 +0000] "GET /skins/elastic/fonts/roboto-v29-regular.woff2 HTTP/1.1" 200 50656 "http://localhost/skins/elastic/styles/styles.min.css?s=1725175911" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
roundcube-1 | 172.18.0.1 - - [25/Nov/2024:18:24:40 +0000] "GET /skins/elastic/fonts/fa-solid-900.woff2 HTTP/1.1" 200 75857 "http://localhost/skins/elastic/styles/styles.min.css?s=1725175911" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
roundcube-1 | 172.18.0.1 - - [25/Nov/2024:18:24:40 +0000] "GET /skins/elastic/images/favicon.ico?s=1725175911 HTTP/1.1" 200 2151 "http://localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
roundcube-1 | 127.0.0.1 - - [25/Nov/2024:18:24:46 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.62 (Debian) PHP/8.2.24 (internal dummy connection)"
roundcube-1 | 127.0.0.1 - - [25/Nov/2024:18:24:47 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.62 (Debian) PHP/8.2.24 (internal dummy connection)" Judging from your logs, these lines are the problem:
It somehow doesn't see the |
@MuMu360121 hmmm... |
I have found the problem,the roundcube.config.php is download to the path /data/compose/47 as a folder while is't a file , my devices is a qnap nas ,I 'm trying to fix it |
Failed, I delete the folder then upload the php to the path ,the container can't init at all |
can I change the download path as I can map to another folder? |
@MuMu360121 it's not downloaded. You should specify your own configuration file and mount it, like examples do. Otherwise, it just won't work. |
I use the docker compose like this:
version: '3' services: roundcube: image: instrumentisto/roundcube:fpm expose: - "9088" volumes: - /share/CACHEDEV2_DATA/Container/roundcube:/app - /share/CACHEDEV2_DATA/Container/roundcube/roundcube.config.php:/app/config/config.inc.php:ro nginx: image: nginx:stable-alpine depends_on: - roundcube ports: - "6080:80" volumes: - /share/CACHEDEV2_DATA/Container/roundcube:/var/www - /share/CACHEDEV2_DATA/Container/roundcube/nginx_config:/etc/nginx/conf.d/:ro
but the web can't load
the log is:
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist
/docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2024/11/14 14:19:34 [notice] 1#1: using the "epoll" event method
2024/11/14 14:19:34 [notice] 1#1: nginx/1.26.2
2024/11/14 14:19:34 [notice] 1#1: built by gcc 13.2.1 20240309 (Alpine 13.2.1_git20240309)
2024/11/14 14:19:34 [notice] 1#1: OS: Linux 5.10.60-qnap
2024/11/14 14:19:34 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 65535:65535
2024/11/14 14:19:34 [notice] 1#1: start worker processes
2024/11/14 14:19:34 [notice] 1#1: start worker process 20
2024/11/14 14:19:34 [notice] 1#1: start worker process 21
2024/11/14 14:19:34 [notice] 1#1: start worker process 22
2024/11/14 14:19:34 [notice] 1#1: start worker process 23
and
s6-rc: info: service syslog: starting
s6-rc: info: service s6rc-oneshot-runner: starting
Nov 14 14:19:33 b44759f8b6b5 syslog.info syslogd started: BusyBox v1.36.1
s6-rc: info: service syslog successfully started
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[14-Nov-2024 14:19:33] STARTUP: PHP OPcache JIT is enabled of 100M
[14-Nov-2024 14:19:33 Etc/UTC] PHP Deprecated: PHP Startup: Use of mbstring.internal_encoding is deprecated in Unknown on line 0
[14-Nov-2024 14:19:33] NOTICE: fpm is running, pid 80
[14-Nov-2024 14:19:33] NOTICE: ready to handle connections
The text was updated successfully, but these errors were encountered: