Arthi-chaud / Meelo

Self-Hosted, Personal Music Server, designed for collectors and music maniacs
GNU General Public License v3.0
43 stars 0 forks source link

Common Setup Errors (docker-compose, .env, settings.json and Meilisearch) #686

Closed zarevskaya closed 3 months ago

zarevskaya commented 3 months ago

Describe the bug A clear and concise description of what the bug is. Hi, when I run docker-compose, I get this error:

meelo-server-1: Screenshot_20240707_160429

To Reproduce Run the docker-compose. (.env +settings.json configured)

Screenshots Screenshot_20240707_160346

Version the latest version of the application

Merci d'avance!

Arthi-chaud commented 3 months ago

Hi! thanks for your issue! We have 2 problems here:

Regarding the 'settings file not found error', did you set the CONFIG_DIR environment value to the directory that contains the settings.json ? (The documentation may be misleading)

About the meilisearch error, it happens from time to time. When that happens, restart the containers. Hope this helps!

zarevskaya commented 3 months ago

Thanks, for a part, now I have this error there and for I put, to test:

JWT_SIGNATURE=1010101011101110 MEILI_MASTER_KEY=1010101011101110

ERROR [ExceptionHandler] : Settings File: missing field 'apiKey'

Any hit?

EDIT: meilisearch, I don't have a key and I don't really want this feature. Is it possible?

Arthi-chaud commented 3 months ago

Yup, this is another documentation error, my bad. In the settings.json file, set the "providers" value to {}. This error happens because the genius provider expects an API key.

zarevskaya commented 3 months ago

Thanks, je corrige!

Arthi-chaud commented 3 months ago

Let me know if it works for you, I'll close this issue when everything works as expected. A PR has been opened to fix the documentation errors you encountered :)

zarevskaya commented 3 months ago

Like this? Screenshot_20240707_170950

ERROR [ExceptionHandler] : Invalid Settings File

Sorry I'm not familiar with this part.

Arthi-chaud commented 3 months ago

Instead of

"providers": {
  "genius": false,
  "musicbrainz": false,
},

it should be:

"providers": {
  "musicbrainz": {},
},
zarevskaya commented 3 months ago

It's progressing, I no longer have any errors anywhere, but I can't access your application page. All containers are without error. Weird.

Maybe an error here? But I don't see where. Screenshot_20240707_175125

_If dockerized, this must be the container_name POSTGRESHOST= Wouldn't it be simpler to add container_name: postgres in the docker-compose.yml?

Arthi-chaud commented 3 months ago

Wouldn't it be simpler to add container_name: postgres in the docker-compose.yml?

This will be done in this PR

since we are using a docker-compose, the POSTGRES_HOST should be just db (?)

Meilisearch can sometimes be slow at startup.

The PUBLIC_SERVER_URL should be something likehttp://192.168.1.152:3333/api. (http(s) must be specified. It should be the URL to the server/api, not the webapp. The /api is from the nginx template)

zarevskaya commented 3 months ago

Unable to reach the application via the web page.

Screenshot_20240707_183852

Soooo weird. No error logs. But it does not work. Here.

Arthi-chaud commented 3 months ago

Did you download and put the nginx.conf.template file in the same directory as the docker-compose file

zarevskaya commented 3 months ago

Yes :)

The logs:

`/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: Getting the checksum of /etc/nginx/conf.d/default.conf

10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf

/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/07/07 16:36:55 [notice] 1#1: using the "epoll" event method

2024/07/07 16:36:55 [notice] 1#1: nginx/1.24.0

2024/07/07 16:36:55 [notice] 1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r4)

2024/07/07 16:36:55 [notice] 1#1: OS: Linux 6.1.0-21-amd64

2024/07/07 16:36:55 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576

2024/07/07 16:36:55 [notice] 1#1: start worker processes

2024/07/07 16:36:55 [notice] 1#1: start worker process 32

2024/07/07 16:36:55 [notice] 1#1: start worker process 33

2024/07/07 16:36:55 [notice] 1#1: start worker process 34

2024/07/07 16:36:55 [notice] 1#1: start worker process 35`

zarevskaya commented 3 months ago

it will be nammed: nginx.conf.template or nginx.conf? In both cases I have no success.

Arthi-chaud commented 3 months ago

There should be WAY more logs than this.

It should be named nginx.conf.template

Please, can try:

zarevskaya commented 3 months ago

Aaaaaaaaaaaaaaaah, youpie!!!!!! Screenshot_20240707_191125

That work!!!! Thank you for your patience but I did everything I could.

Arthi-chaud commented 3 months ago

Awesome! Thanks for your patience!

Shall I close the issue ?

zarevskaya commented 3 months ago

Yup, thanks again!!!