Skip to content
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

Flarum Can`t Connect to the Database #131

Open
AkarinLiu opened this issue Mar 24, 2024 · 0 comments
Open

Flarum Can`t Connect to the Database #131

AkarinLiu opened this issue Mar 24, 2024 · 0 comments

Comments

@AkarinLiu
Copy link

AkarinLiu commented Mar 24, 2024

Attaching to database-1, runtime-1
database-1  | 2024-03-24 01:14:26+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.7+maria~ubu2204 started.
runtime-1   | [INFO] Setting folder permissions
runtime-1   | [INFO] First launch, installation...
runtime-1   | Installing Flarum...
runtime-1   | Connecting to database...failed
runtime-1   | Rolling back...
runtime-1   |
runtime-1   | In Pipeline.php line 85:
runtime-1   |
runtime-1   |   Step failed
runtime-1   |
runtime-1   |
runtime-1   | In Exception.php line 18:
runtime-1   |
runtime-1   |   SQLSTATE[HY000] [2002] Connection refused
runtime-1   |
runtime-1   |
runtime-1   | In PDOConnection.php line 40:
runtime-1   |
runtime-1   |   SQLSTATE[HY000] [2002] Connection refused
runtime-1   |
runtime-1   |
runtime-1   | install [-f|--file FILE] [-c|--config CONFIG]
runtime-1   |
runtime-1   | [INFO] End of flarum installation
runtime-1   | [INFO] End of startup script. Forum is starting.
database-1  | 2024-03-24 01:14:28+00:00 [Warn] [Entrypoint]: /sys/fs/cgroup/name=systemd:/libpod_parent/libpod-1b69a690d24e8e9268728876897f426770bfe4d1f24e3a28f4dd6b2666683b69
database-1  | 14:misc:/libpod_parent/libpod-1b69a690d24e8e9268728876897f426770bfe4d1f24e3a28f4dd6b2666683b69
database-1  | 13:rdma:/libpod_parent/libpod-1b69a690d24e8e9268728876897f426770bfe4d1f24e3a28f4dd6b2666683b69
database-1  | 12:pids:/libpod_parent/libpod-1b69a690d24e8e9268728876897f426770bfe4d1f24e3a28f4dd6b2666683b69
database-1  | 11:hugetlb:/libpod_parent/libpod-1b69a690d24e8e9268728876897f426770bfe4d1f24e3a28f4dd6b2666683b69
database-1  | 10:net_prio:/libpod_parent/libpod-1b69a690d24e8e9268728876897f426770bfe4d1f24e3a28f4dd6b2666683b69
database-1  | 9:perf_event:/libpod_parent/libpod-1b69a690d24e8e9268728876897f426770bfe4d1f24e3a28f4dd6b2666683b69
database-1  | 8:net_cls:/libpod_parent/libpod-1b69a690d24e8e9268728876897f426770bfe4d1f24e3a28f4dd6b2666683b69
database-1  | 7:freezer:/libpod_parent/libpod-1b69a690d24e8e9268728876897f426770bfe4d1f24e3a28f4dd6b2666683b69
database-1  | 6:devices:/libpod_parent/libpod-1b69a690d24e8e9268728876897f426770bfe4d1f24e3a28f4dd6b2666683b69
database-1  | 5:memory:/libpod_parent/libpod-1b69a690d24e8e9268728876897f426770bfe4d1f24e3a28f4dd6b2666683b69
database-1  | 4:blkio:/libpod_parent/libpod-1b69a690d24e8e9268728876897f426770bfe4d1f24e3a28f4dd6b2666683b69
database-1  | 3:cpuacct:/libpod_parent/libpod-1b69a690d24e8e9268728876897f426770bfe4d1f24e3a28f4dd6b2666683b69
database-1  | 2:cpu:/libpod_parent/libpod-1b69a690d24e8e9268728876897f426770bfe4d1f24e3a28f4dd6b2666683b69
database-1  | 1:cpuset:/libpod_parent/libpod-1b69a690d24e8e9268728876897f426770bfe4d1f24e3a28f4dd6b2666683b69
database-1  | 0::/libpod_parent/libpod-1b69a690d24e8e9268728876897f426770bfe4d1f24e3a28f4dd6b2666683b69/memory.pressure not writable, functionality unavailable to MariaDB
database-1  | 2024-03-24 01:14:28+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
database-1  | 2024-03-24 01:14:28+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.7+maria~ubu2204 started.
database-1  | 2024-03-24 01:14:29+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
database-1  | 2024-03-24  1:14:29 0 [Warning] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive
database-1  | 2024-03-24  1:14:29 0 [Note] Starting MariaDB 10.11.7-MariaDB-1:10.11.7+maria~ubu2204 source revision 87e13722a95af5d9378d990caf48cb6874439347 as process 1
database-1  | 2024-03-24  1:14:29 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
database-1  | 2024-03-24  1:14:29 0 [Note] InnoDB: Number of transaction pools: 1
database-1  | 2024-03-24  1:14:29 0 [Note] InnoDB: Using SSE4.2 crc32 instructions
database-1  | 2024-03-24  1:14:29 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
database-1  | 2024-03-24  1:14:29 0 [Warning] mariadbd: io_uring_queue_init() failed with ENOSYS: check seccomp filters, and the kernel version (newer than 5.1 required)
database-1  | 2024-03-24  1:14:29 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF
database-1  | 2024-03-24  1:14:29 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
database-1  | 2024-03-24  1:14:29 0 [Note] InnoDB: Completed initialization of buffer pool
database-1  | 2024-03-24  1:14:29 0 [Note] InnoDB: Buffered log writes (block size=512 bytes)
database-1  | 2024-03-24  1:14:29 0 [Note] InnoDB: End of log at LSN=714513
database-1  | 2024-03-24  1:14:29 0 [Note] InnoDB: 128 rollback segments are active.
database-1  | 2024-03-24  1:14:29 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
database-1  | 2024-03-24  1:14:30 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
database-1  | 2024-03-24  1:14:30 0 [Note] InnoDB: log sequence number 714513; transaction id 752
database-1  | 2024-03-24  1:14:30 0 [Note] Plugin 'FEEDBACK' is disabled.
database-1  | 2024-03-24  1:14:30 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
database-1  | 2024-03-24  1:14:30 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
database-1  | 2024-03-24  1:14:30 0 [Note] Server socket created on IP: '0.0.0.0'.
database-1  | 2024-03-24  1:14:30 0 [Note] Server socket created on IP: '::'.
database-1  | 2024-03-24  1:14:30 0 [Note] mariadbd: ready for connections.
database-1  | Version: '10.11.7-MariaDB-1:10.11.7+maria~ubu2204'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
database-1  | 2024-03-24  1:14:30 0 [Note] InnoDB: Buffer pool(s) load completed at 240324  1:14:30

I Advise make delay lest 10 sec to let MySQL Start finish. Because Startup MySQL need some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant