instrumentisto / roundcube-docker-image

Roundcube Webmail Docker Image
Other
20 stars 6 forks source link

can't load the web #18

Open MuMu360121 opened 1 week ago

MuMu360121 commented 1 week ago

I use the docker compose like this: `version: '3' services: roundcube: image: instrumentisto/roundcube:fpm expose:

but the web can't load image

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

tyranron commented 1 week ago

@MuMu360121 judging from your Docker Compose spec, you should try to use port 6080.

MuMu360121 commented 6 days ago

I change to use the examples/apache.docker-compose.yml image

but still run incorrectly: image

the log of portainer is: _roundcube-roundcube-1_logs.txt

tyranron commented 3 hours ago

@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)"
Screenshot 2024-11-25 at 19 31 55

Judging from your logs, these lines are the problem:

Nov 19 02:49:08 56fdeeaf7828 roundcube: <4b6d83a3> DB Error: SQLSTATE[HY000] [2002] No such file or directory in /app/program/lib/Roundcube/rcube_db.php on line 201 (GET /)

It somehow doesn't see the sqlite:////var/db/roundcube.db?mode=0640 specified in the roundcube.config.php.

tyranron commented 3 hours ago

@MuMu360121 hmmm... DB Error: SQLSTATE[HY000] [2002] seems to be MySQL-related error, while the example uses SQLite inside. Can you show the configuration file you're using?