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

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

Closed
zarevskaya opened this issue Jul 7, 2024 · 17 comments
Closed
Assignees
Labels
Bug Something isn't working

Comments

@zarevskaya
Copy link

zarevskaya commented Jul 7, 2024

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!

@zarevskaya zarevskaya added the Bug Something isn't working label Jul 7, 2024
@Arthi-chaud
Copy link
Owner

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
Copy link
Author

zarevskaya commented Jul 7, 2024

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
Copy link
Owner

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
Copy link
Author

Thanks, je corrige!

@Arthi-chaud
Copy link
Owner

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
Copy link
Author

Like this?
Screenshot_20240707_170950

ERROR [ExceptionHandler] : Invalid Settings File

Sorry I'm not familiar with this part.

@Arthi-chaud
Copy link
Owner

Instead of

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

it should be:

"providers": {
  "musicbrainz": {},
},

@zarevskaya
Copy link
Author

zarevskaya commented Jul 7, 2024

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
POSTGRES_HOST=

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

@Arthi-chaud
Copy link
Owner

Arthi-chaud commented Jul 7, 2024

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
Copy link
Author

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
Copy link
Owner

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

@zarevskaya
Copy link
Author

zarevskaya commented Jul 7, 2024

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
Copy link
Author

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

@Arthi-chaud
Copy link
Owner

Arthi-chaud commented Jul 7, 2024

There should be WAY more logs than this.

It should be named nginx.conf.template

Please, can try:

  • docker-compose down --volumes,
  • Comment out the following lines in the server section
 meilisearch:
   condition: service_healthy
  • docker-compose up

@zarevskaya
Copy link
Author

Aaaaaaaaaaaaaaaah, youpie!!!!!!
Screenshot_20240707_191125

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

@Arthi-chaud
Copy link
Owner

Awesome!
Thanks for your patience!

Shall I close the issue ?

@zarevskaya
Copy link
Author

Yup, thanks again!!!

@Arthi-chaud Arthi-chaud pinned this issue Jul 7, 2024
@Arthi-chaud Arthi-chaud changed the title ERROR [ExceptionHandler] : No settings.json file found Common Setup Errors (docker-compose, .env, settings.json and Meilisearch) Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants