我正在使用 follow docker-compose 在我的 Synology NAS 上安装 OrangeHRM:
version: '2'
services:
mariadb:
image: mariadb:10.4
volumes:
- /volume2/docker/stadahrm/dbs:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=#########
- MYSQL_ROOT_USER=root
- MYSQL_DATABASE=stadahrm
orangehrm:
image: orangehrm/orangehrm:latest
ports:
- 8181:80
- 8443:443
environment:
- ORANGEHRM_DATABASE_HOST=mariadb
- ORANGEHRM_DATABASE_USER=root
- ORANGEHRM_DATABASE_PASSWORD=#########
- ORANGEHRM_DATABASE_NAME=stadahrm
- PUID=1026
- PGID=100
- PHP_MAX_EXECUTION_TIME=600
- PHP_MEMORY_LIMIT=512M
volumes:
- /volume2/docker/stadahrm/config:/orangehrm
depends_on:
- mariadb
links:
- mariadb:mariadb
容器安装没有错误,我可以继续并开始设置 OrangeHRM,但是,当它进入第 8 步“安装”时,它会像这样卡住:
我检查了两个容器的日志,但似乎都没有显示问题:
stadahrm_orangehrm_1
date stream content
2023-03-19 19:46:56 stdout 172.29.0.1 - - [19/Mar/2023:19:46:55 +0000] "POST /installer/index.php/installer/api/installation/migration HTTP/1.1" 200 219 "http://192.168.1.4:8181/installer/index.php/installer/process" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"
2023-03-19 19:46:55 stdout 172.29.0.1 - - [19/Mar/2023:19:46:55 +0000] "POST /installer/index.php/installer/api/installation/migration HTTP/1.1" 200 217 "http://192.168.1.4:8181/installer/index.php/installer/process" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"
2023-03-19 19:46:55 stdout 172.29.0.1 - - [19/Mar/2023:19:46:52 +0000] "POST /installer/index.php/installer/api/installation/migration HTTP/1.1" 200 216 "http://192.168.1.4:8181/installer/index.php/installer/process" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"
2023-03-19 19:46:52 stdout 172.29.0.1 - - [19/Mar/2023:19:46:52 +0000] "POST /installer/index.php/installer/api/installation/migration HTTP/1.1" 200 216 "http://192.168.1.4:8181/installer/index.php/installer/process" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"
2023-03-19 19:46:52 stdout 172.29.0.1 - - [19/Mar/2023:19:46:51 +0000] "POST /installer/index.php/installer/api/installation/migration HTTP/1.1" 200 216 "http://192.168.1.4:8181/installer/index.php/installer/process" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"
2023-03-19 19:46:51 stdout 172.29.0.1 - - [19/Mar/2023:19:46:50 +0000] "POST /installer/index.php/installer/api/installation/migration HTTP/1.1" 200 220 "http://192.168.1.4:8181/installer/index.php/installer/process" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"
stadahrm_mariadb_1
date stream content
2023-03-19 19:35:42 stderr Version: '10.4.28-MariaDB-1:10.4.28+maria~ubu2004' socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
2023-03-19 19:35:42 stderr 2023-03-19 19:35:42 0 [Note] mysqld: ready for connections.
2023-03-19 19:35:42 stderr 2023-03-19 19:35:42 0 [Note] Added new Master_info '' to hash table
2023-03-19 19:35:42 stderr 2023-03-19 19:35:42 0 [Note] Reading of all Master_info entries succeeded
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] Server socket created on IP: '::'.
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] InnoDB: Buffer pool(s) load completed at 230319 19:35:41
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] Plugin 'FEEDBACK' is disabled.
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] InnoDB: 10.4.28 started; log sequence number 61155; transaction id 20
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] InnoDB: Waiting for purge to start
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] InnoDB: Completed initialization of buffer pool
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] InnoDB: Using SSE2 crc32 instructions
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] InnoDB: Number of pools: 1
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] InnoDB: Uses event mutexes
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] InnoDB: Using Linux native AIO
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] Starting MariaDB 10.4.28-MariaDB-1:10.4.28+maria~ubu2004 source revision c8f2e9a5c0ac5905f28b050b7df5a9ffd914b7e7 as process 1
2023-03-19 19:35:41 stdout
2023-03-19 19:35:41 stdout 2023-03-19 19:35:41+00:00 [Note] [Entrypoint]: MariaDB init process done. Ready for start up.
2023-03-19 19:35:41 stdout
2023-03-19 19:35:41 stdout 2023-03-19 19:35:41+00:00 [Note] [Entrypoint]: Temporary server stopped
2023-03-19 19:35:41 stderr
2023-03-19 19:35:41 stderr 2023-03-19 19:35:41 0 [Note] mysqld: Shutdown complete
2023-03-19 19:35:40 stderr 2023-03-19 19:35:40 0 [Note] InnoDB: Shutdown completed; log sequence number 61155; transaction id 21
2023-03-19 19:35:40 stderr 2023-03-19 19:35:40 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2023-03-19 19:35:39 stderr 2023-03-19 19:35:39 0 [Note] InnoDB: Buffer pool(s) dump completed at 230319 19:35:39
2023-03-19 19:35:39 stderr 2023-03-19 19:35:39 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2023-03-19 19:35:39 stderr 2023-03-19 19:35:39 0 [Note] InnoDB: Starting shutdown...
2023-03-19 19:35:38 stderr 2023-03-19 19:35:38 0 [Note] InnoDB: FTS optimize thread exiting.
2023-03-19 19:35:38 stderr 2023-03-19 19:35:38 0 [Note] Event Scheduler: Purging the queue. 0 events
2023-03-19 19:35:38 stderr 2023-03-19 19:35:38 0 [Note] mysqld (initiated by: unknown): Normal shutdown
2023-03-19 19:35:38 stdout 2023-03-19 19:35:38+00:00 [Note] [Entrypoint]: Stopping temporary server
2023-03-19 19:35:38 stdout
2023-03-19 19:35:37 stdout 2023-03-19 19:35:37+00:00 [Note] [Entrypoint]: Securing system users (equivalent to running mysql_secure_installation)
2023-03-19 19:35:37 stdout 2023-03-19 19:35:37+00:00 [Note] [Entrypoint]: Creating database stadahrm
2023-03-19 19:35:27 stdout 2023-03-19 19:35:27+00:00 [Note] [Entrypoint]: Temporary server started.
2023-03-19 19:35:27 stderr Version: '10.4.28-MariaDB-1:10.4.28+maria~ubu2004' socket: '/var/run/mysqld/mysqld.sock' port: 0 mariadb.org binary distribution
2023-03-19 19:35:27 stderr 2023-03-19 19:35:27 0 [Note] mysqld: ready for connections.
2023-03-19 19:35:27 stderr 2023-03-19 19:35:27 0 [Note] Added new Master_info '' to hash table
2023-03-19 19:35:27 stderr 2023-03-19 19:35:27 0 [Note] Reading of all Master_info entries succeeded
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Warning] 'proxies_priv' entry '@% root@27f9da9d8aaf' ignored in --skip-name-resolve mode.
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Warning] 'user' entry 'root@27f9da9d8aaf' ignored in --skip-name-resolve mode.
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Note] Plugin 'FEEDBACK' is disabled.
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Note] InnoDB: 10.4.28 started; log sequence number 61146; transaction id 20
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Note] InnoDB: Waiting for purge to start
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Note] InnoDB: Completed initialization of buffer pool
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Note] InnoDB: Using SSE2 crc32 instructions
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Note] InnoDB: Number of pools: 1
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Note] InnoDB: Uses event mutexes
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Note] InnoDB: Using Linux native AIO
2023-03-19 19:35:26 stderr 2023-03-19 19:35:26 0 [Note] Starting MariaDB 10.4.28-MariaDB-1:10.4.28+maria~ubu2004 source revision c8f2e9a5c0ac5905f28b050b7df5a9ffd914b7e7 as process 111
2023-03-19 19:35:26 stdout 2023-03-19 19:35:26+00:00 [Note] [Entrypoint]: Waiting for server startup
2023-03-19 19:35:26 stdout 2023-03-19 19:35:26+00:00 [Note] [Entrypoint]: Starting temporary server
2023-03-19 19:35:26 stdout 2023-03-19 19:35:26+00:00 [Note] [Entrypoint]: Database files initialized
我试图增加 PHP 超时和内存大小(已经在上面的 docker compose 中),但这没有用。我也尝试了不同版本的 mariadb (10.9.5) 但仍然没有用。
我不确定还能尝试什么。