You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem Description:
In the process of migrating services from Pi 4 to Pi 5 and I had to start with a fresh new install of Standard Notes. Followed their page's V2 instructions and the db does not seem to fully startup and initialize for some reason.
Troubleshooting Attempted
I have tried removing all related volumes and folders several times, switching folders and modifying permissions, etc. with no luck. I would love to console into the container but I cannot while it's restarting and it never finishes unfortunately.
I believe the crux of the issue is in the "--initialize specified but the data directory has files in it. Aborting." line but I cannot find anywhere where that flag is present. But the issue could be anything, I am not very confident. Any help is greatly appreciated!
Documentation Error Output:
==> logs/syncing-server.err <==
nc: bad address 'db'
==> logs/files.err <==
nc: bad address 'db'
==> logs/syncing-server.err <==
nc: bad address 'db'
nc: bad address 'db'
==> logs/files.err <==
nc: bad address 'db'
Container Log Output:
2023-12-20 22:22:49+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.2.0-1.el8 started.
2023-12-20 22:22:49+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2023-12-20 22:22:49+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.2.0-1.el8 started.
2023-12-20 22:22:50+00:00 [Note] [Entrypoint]: Initializing database files
2023-12-20T22:22:50.163260Z 0 [System] [MY-015017] [Server] MySQL Server Initialization - start.
2023-12-20T22:22:50.164994Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
2023-12-20T22:22:50.165104Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.2.0) initializing of server in progress as process 81
2023-12-20T22:22:50.166985Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
2023-12-20T22:22:50.166991Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.
2023-12-20T22:22:50.167174Z 0 [ERROR] [MY-010119] [Server] Aborting
2023-12-20T22:22:50.167380Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.2.0) MySQL Community Server - GPL.
2023-12-20T22:22:50.167709Z 0 [System] [MY-015018] [Server] MySQL Server Initialization - end
Hmm I think it might be the issue where previously you had MySQL 5.6 running and the data written in there was with that engine. Now the engine is 8.x which are not compatible.
If you don't care about any of the data (assuming that this is a fresh install) just remove everything in your data/* folder for a fresh start.
If you have any data that you wish to preserve I think you might try changing the docker-compose to mysql:5.6 and check if that helps
@karolsojko Unfortunately I have tried removing everything from the ~/standardnotes/data folder several times already. Also, changing the "mysql:8" line in the docker-compose.yml file resulted in a "no matching manifest for linux/arm64/v8 in the manifest list entries" error when trying to pull the docker image.
This is a fresh install, I am completely alright with removing or deleting whatever is necessary since I have backups of my actual notes. I just want SN to run again.
Problem Description:
In the process of migrating services from Pi 4 to Pi 5 and I had to start with a fresh new install of Standard Notes. Followed their page's V2 instructions and the db does not seem to fully startup and initialize for some reason.
Troubleshooting Attempted
I have tried removing all related volumes and folders several times, switching folders and modifying permissions, etc. with no luck. I would love to console into the container but I cannot while it's restarting and it never finishes unfortunately.
I believe the crux of the issue is in the "--initialize specified but the data directory has files in it. Aborting." line but I cannot find anywhere where that flag is present. But the issue could be anything, I am not very confident. Any help is greatly appreciated!
Documentation
Error Output:
Container Log Output:
.env File Input:
Docker-Compose Contents:
The text was updated successfully, but these errors were encountered: