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
500 Internal Error #51
Comments
Thanks for your report. Unfortunately, I am very unfamiliar with your setup (both selinux & podman), so debugging why the index creation failed will be a bit tricky. Does the wanderer-search container have any internal logs? Do you have sufficient permissions on the folder you are trying to mount to? |
thx. I tested disabling selinux with It looks like it's permission related since wanderer-search can't ls the files. Yet, if I use named volumes it doesn't work either. To my understanding a permission problem on the host should not be a problem with named volumes. Either the meilisearch --import-dump /meili_data/dumps/migration.dump fails, or copying doesn't work before that I don't get enough logs for it. |
When I try to build it locally, I get
yet it returns the same error that it can't find the files. |
Yes, for speed reasons the PocketBase binary is not built in the docker build process itself. Similarly, the svelte application is also not built during docker build. Rather you would need to build them on your own machine. You can read about the process here. |
I stumbled on the same 500-internal-error when trying to setup wanderer for the first time using the example root docker-compose.yml and trying multiple iterations based on the existing guides for installation and configuration. Since I've already got quite a lot of services with ports already allocated, I tried to remap the container/host ports, which might be the source of confusion for my setup: Here is one attempt docker-compose where I did set:
version: "3.5"
services:
#----------------------------- WANDERER GPX tracks ---------------------------------#
wanderer-search:
container_name: wanderer-search
image: flomp/wanderer-search:latest
environment:
MEILI_URL: http://wanderer-search:7700
MEILI_MASTER_KEY: vODkljPcfFANYNepCHyDyGjzAMPcdHnrb6X5KyXQPWo
MEILI_NO_ANALYTICS: true
ports:
- 7700:7700
networks:
- wanderer
volumes:
- /share/config/frontends/wanderer/data/data.ms:/meili_data/data.ms
restart: unless-stopped
healthcheck:
test: curl --fail http://wanderer-search:7700/health || exit 1
interval: 15s
retries: 10
start_period: 20s
timeout: 10s
wanderer-db:
container_name: wanderer-db
image: flomp/wanderer-db:latest
depends_on:
wanderer-search:
condition: service_healthy
ports:
- 18090:8090
networks:
- wanderer
restart: unless-stopped
volumes:
- /share/config/frontends/wanderer/data/pb_data:/pb_data
wanderer-web:
container_name: wanderer-web
image: flomp/wanderer-web:latest
depends_on:
wanderer-search:
condition: service_healthy
wanderer-db:
condition: service_started
environment:
# ORIGIN: http://localhost:3000
ORIGIN: http://nas-hostname:13000
BODY_SIZE_LIMIT: Infinity
PUBLIC_POCKETBASE_URL: http://wanderer-db:8090
# PUBLIC_POCKETBASE_URL: http://local-ip:18090
# PUBLIC_POCKETBASE_URL: http://hostname:18090
PUBLIC_DISABLE_SIGNUP: false
# UPLOAD_FOLDER: /app/uploads
# UPLOAD_USER: Flomp
# UPLOAD_PASSWORD: 12345678
# PUBLIC_VALHALLA_URL: https://valhalla1.openstreetmap.de
volumes:
- /share/config/frontends/wanderer/data/uploads:/app/uploads
ports:
- 13000:3000
networks:
- wanderer
restart: unless-stopped
networks:
wanderer:
driver: bridge From the logs
Note my 8090 port is already used by services other than wanderer, which might be the root cause of the issue because I'm using a network-bridge mode. I also tried to use another network mode, but could not find the right compose setup that would succeed. Any pointer would be very much appreciated! # wanderer-db logs
2024/05/16 18:57:44 MeilisearchCommunicationError unable to execute request (path "GET /keys" with method "GetKeys"): dial tcp4 127.0.0.1:7700: connect: connection refused
2024/05/16 18:57:46 Server started at http://0.0.0.0:8090
├─ REST API: http://0.0.0.0:8090/api/
└─ Admin UI: http://0.0.0.0:8090/_/
# wanderer-web logs 1
19:30:00: Starting auto-upload
TypeError: fetch failed
at node:internal/deps/undici/undici:12618:11 {
cause: SocketError: other side closed
at Socket.onSocketEnd (node:internal/deps/undici/undici:9169:26)
at Socket.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1400:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'UND_ERR_SOCKET',
socket: {
localAddress: '172.29.20.45',
localPort: 59478,
remoteAddress: '192.168.2.10',
remotePort: 18090,
remoteFamily: 'IPv4',
timeout: undefined,
bytesWritten: 220,
bytesRead: 0
}
}
}
19:30:01: Login failed. Unable to obtain cookie.
# wanderer-web logs 2
Listening on 0.0.0.0:3000
TypeError: fetch failed
at node:internal/deps/undici/undici:12618:11 {
cause: SocketError: other side closed
at Socket.onSocketEnd (node:internal/deps/undici/undici:9169:26)
at Socket.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1400:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'UND_ERR_SOCKET',
socket: {
localAddress: '172.29.20.45',
localPort: 40418,
remoteAddress: '172.29.20.41',
remotePort: 8090,
remoteFamily: 'IPv4',
timeout: undefined,
bytesWritten: 219,
bytesRead: 0
}
}
}
TypeError: fetch failed
at node:internal/deps/undici/undici:12618:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: Error: getaddrinfo ENOTFOUND wanderer-db
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'wanderer-db'
}
} |
Description
I tried to run the container but http://ip:3000 returns 500 Internal Error.
Following is the output in terminal
I created the missing file
/meili_data/data.ms/indexes
manually and started the container again.Device specific Info
Reproduction steps
ssh user:host
wget https://raw.githubusercontent.com/Flomp/wanderer/main/docker-compose.yml
2.1. add
:Z
to all paths to account for selinux.2.2. change
localhost
to ip addr of serverpodman compose up
The text was updated successfully, but these errors were encountered: