Unable to register a new user
It's the same error as https://github.com/Flomp/wanderer/issues/14 When I want to register the first user I just get an error message at the bottom right that says that the user can't be created. There are no entries in the logs of the docker containers. The origin url is right. I tried to access / register over https via my internal reverse proxy but I also tried to register over direct access to the ip+port without reverse proxy. Also tried different browser. The docker compose project is running on a lubutunu 24.04 VM running on Proxmox 8.4.1. This is NOT an LXC, it's a VM. Docker Version on the VM 27.5.1.
My Docker Compose File: `x-common-env: &cenv MEILI_URL: http://wanderer-meilisearch:7700 MEILI_MASTER_KEY: vOLOsjPcfFANMANENepCHyDyGjscasDcdHnrb6X5pyXQPWo
services: wanderer-meilisearch: container_name: wanderer-meilisearch hostname: wanderer-meilisearch image: getmeili/meilisearch:v1.11.3 environment: <<: *cenv MEILI_NO_ANALYTICS: true ports: - 7700:7700 volumes: - /opt/docker/wanderer/meilisearch:/meili_data/data.ms restart: unless-stopped healthcheck: test: curl --fail http://localhost:7700/health || exit 1 interval: 15s retries: 10 start_period: 20s timeout: 10s labels: - com.centurylinklabs.watchtower.enable=true
wanderer-db: container_name: wanderer-db hostname: wanderer-db image: flomp/wanderer-db:latest environment: <<: *cenv POCKETBASE_ENCRYPTION_KEY: wOLOsjPcfFANMANENepCHyDyGjscasDcdHnrb6X5pyXQPWo ORIGIN: My_Origin_URL (tried ip+port or fqdn over reverse proxy) ports: - "8090:8090" restart: unless-stopped volumes: - /opt/docker/Backup/wanderer/db:/pb_data labels: - com.centurylinklabs.watchtower.enable=true
wanderer: container_name: wanderer hostname: wanderer image: flomp/wanderer-web:latest environment: <<: *cenv ORIGIN: My_Origin_URL (tried ip+port or fqdn over reverse proxy) BODY_SIZE_LIMIT: Infinity PUBLIC_POCKETBASE_URL: http://wanderer-db:8090 PUBLIC_DISABLE_SIGNUP: false UPLOAD_FOLDER: /app/uploads PUBLIC_VALHALLA_URL: http://wanderer-valhalla:8002 VALHALLA_URL: http://wanderer-valhalla:8002 volumes: - /opt/docker/Backup/wanderer/uploads:/app/uploads ports: - "3000:3000" restart: unless-stopped labels: - com.centurylinklabs.watchtower.enable=true
wanderer-valhalla: image: ghcr.io/gis-ops/docker-valhalla/valhalla:latest container_name: wanderer-valhalla hostname: wanderer-valhalla volumes: - /opt/docker/wanderer/valhalla_custom_files:/custom_files ports: - "8002:8002" restart: unless-stopped labels: - com.centurylinklabs.watchtower.enable=true`
I already set the mapped directories to 777 but without success. Thanks for any help / ideas
I just realized now that the user seems to be created in Pocketbase:
But if I try to log in with the user, there's an internal error code (500). In the logs of the webserver I can now see the following lines: ClientResponseError 404: The requested resource wasn't found. at file:///app/node_modules/pocketbase/dist/pocketbase.es.mjs:1:15814 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async auth (file:///app/build/server/chunks/hooks.server-CO0FYvKk.js:114:13) at async respond (file:///app/build/server/index.js:4467:22) at async Array.ssr (file:///app/build/handler.js:1243:3) { url: '', status: 404, response: { code: 404, message: "The requested resource wasn't found.",
EDIT2: The complete webserver is not aworking now. Everytime I try to access wanderer, I get the error 500 again, even after container restart. After a container restart I can additionally see this line in the webserver container log: [ERROR] [17:45:00]: Login failed. Unable to obtain cookie.
I think I'm running into the same issue. On my install, I haven't been able to successfully run any version past 0.15.2 because of errors at login.
At first I thought I had done something wrong in the migrations so I tried to spin up a new instance at 0.17.2, but I get the same error. On this new instance, if I access the /login page, I get a 500 error and I see this in the logs
wanderer-web | APIError: [object Object]
wanderer-web | at users_auth_methods (file:///app/build/server/chunks/user_store-Dh8ZWtJw.js:29:11)
wanderer-web | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
wanderer-web | at async load (file:///app/build/server/chunks/11-BulZI-Sf.js:10:23)
wanderer-web | at async load_data (file:///app/build/server/index.js:2406:18)
wanderer-web | at async file:///app/build/server/index.js:3840:18 {
wanderer-web | status: 500,
wanderer-web | detail: undefined
wanderer-web | }
After finding this issue, I tried to manually go to /register and see if I could replicate the behavior and I can. I created a new user, got a 500 on submit, but the new user appears in PocketBase. This shows in the logs on creation:
wanderer-web | ClientResponseError 404: The requested resource wasn't found.
wanderer-web | at file:///app/node_modules/pocketbase/dist/pocketbase.es.mjs:1:37047
wanderer-web | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
wanderer-web | at async auth (file:///app/build/server/chunks/hooks.server-CO0FYvKk.js:114:13)
wanderer-web | at async respond (file:///app/build/server/index.js:4467:22)
wanderer-web | at async Array.ssr (file:///app/build/handler.js:1243:3) {
wanderer-web | url: 'http://db:8090/api/collections/activitypub_actors/records?page=1&perPage=1&filter=user%3D%27kmx3aieitc9re0s%27&skipTotal=1',
wanderer-web | status: 404,
wanderer-web | response: {
wanderer-web | code: 404,
wanderer-web | message: "The requested resource wasn't found.",
wanderer-web | data: {}
wanderer-web | },
wanderer-web | isAbort: false,
wanderer-web | originalError: {
wanderer-web | url: 'http://db:8090/api/collections/activitypub_actors/records?page=1&perPage=1&filter=user%3D%27kmx3aieitc9re0s%27&skipTotal=1',
wanderer-web | status: 404,
wanderer-web | data: {
wanderer-web | code: 404,
wanderer-web | message: "The requested resource wasn't found.",
wanderer-web | data: {}
wanderer-web | }
wanderer-web | }
wanderer-web | }
wanderer-web | ClientResponseError 404: The requested resource wasn't found.
wanderer-web | at file:///app/node_modules/pocketbase/dist/pocketbase.es.mjs:1:37047
wanderer-web | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
wanderer-web | at async auth (file:///app/build/server/chunks/hooks.server-CO0FYvKk.js:114:13)
wanderer-web | at async respond (file:///app/build/server/index.js:4467:22)
wanderer-web | at async Array.ssr (file:///app/build/handler.js:1243:3) {
wanderer-web | url: 'http://db:8090/api/collections/activitypub_actors/records?page=1&perPage=1&filter=user%3D%27kmx3aieitc9re0s%27&skipTotal=1',
wanderer-web | status: 404,
wanderer-web | response: {
wanderer-web | code: 404,
wanderer-web | message: "The requested resource wasn't found.",
wanderer-web | data: {}
wanderer-web | },
wanderer-web | isAbort: false,
wanderer-web | originalError: {
wanderer-web | url: 'http://db:8090/api/collections/activitypub_actors/records?page=1&perPage=1&filter=user%3D%27kmx3aieitc9re0s%27&skipTotal=1',
wanderer-search | 2025-07-11T12:00:32.352951Z INFO HTTP request{method=GET host="localhost:7700" route=/health query_parameters= user_agent=curl/8.11.0 status_code=200}: meilisearch: close time.busy=85.5µs time.idle=13.5µs
wanderer-web | status: 404,
wanderer-web | data: {
wanderer-web | code: 404,
wanderer-web | message: "The requested resource wasn't found.",
wanderer-web | data: {}
wanderer-web | }
wanderer-web | }
wanderer-web | }
wanderer-web | ClientResponseError 404: The requested resource wasn't found.
wanderer-web | at file:///app/node_modules/pocketbase/dist/pocketbase.es.mjs:1:37047
wanderer-web | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
wanderer-web | at async auth (file:///app/build/server/chunks/hooks.server-CO0FYvKk.js:114:13)
wanderer-web | at async respond (file:///app/build/server/index.js:4467:22)
wanderer-web | at async Array.ssr (file:///app/build/handler.js:1243:3) {
wanderer-web | url: 'http://db:8090/api/collections/activitypub_actors/records?page=1&perPage=1&filter=user%3D%27kmx3aieitc9re0s%27&skipTotal=1',
wanderer-web | status: 404,
wanderer-web | response: {
wanderer-web | code: 404,
wanderer-web | message: "The requested resource wasn't found.",
wanderer-web | data: {}
wanderer-web | },
wanderer-web | isAbort: false,
wanderer-web | originalError: {
wanderer-web | url: 'http://db:8090/api/collections/activitypub_actors/records?page=1&perPage=1&filter=user%3D%27kmx3aieitc9re0s%27&skipTotal=1',
wanderer-web | status: 404,
wanderer-web | data: {
wanderer-web | code: 404,
wanderer-web | message: "The requested resource wasn't found.",
wanderer-web | data: {}
wanderer-web | }
wanderer-web | }
wanderer-web | }
wanderer-web | ClientResponseError 404: The requested resource wasn't found.
wanderer-web | at file:///app/node_modules/pocketbase/dist/pocketbase.es.mjs:1:37047
wanderer-web | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
wanderer-web | at async auth (file:///app/build/server/chunks/hooks.server-CO0FYvKk.js:114:13)
wanderer-web | at async respond (file:///app/build/server/index.js:4467:22)
wanderer-web | at async Array.ssr (file:///app/build/handler.js:1243:3) {
wanderer-web | url: 'http://db:8090/api/collections/activitypub_actors/records?page=1&perPage=1&filter=user%3D%27kmx3aieitc9re0s%27&skipTotal=1',
wanderer-web | status: 404,
wanderer-web | response: {
wanderer-web | code: 404,
wanderer-web | message: "The requested resource wasn't found.",
wanderer-web | data: {}
wanderer-web | },
wanderer-web | isAbort: false,
wanderer-web | originalError: {
wanderer-web | url: 'http://db:8090/api/collections/activitypub_actors/records?page=1&perPage=1&filter=user%3D%27kmx3aieitc9re0s%27&skipTotal=1',
wanderer-web | status: 404,
wanderer-web | data: {
wanderer-web | code: 404,
wanderer-web | message: "The requested resource wasn't found.",
wanderer-web | data: {}
wanderer-web | }
wanderer-web | }
wanderer-web | }
I think this is somehow related to ORIGIN. Thought I have correctly set the ORIGIN to point to my local server. My suspicion comes from the fact that if I run a server on my laptop using http://localhost:3000 as the ORIGIN, everything seems to work fine. I can only replicate these errors when the server is running on a separate local machine. I'll leave my docker-compose.yml below.
version: '3'
x-common-env: &cenv
MEILI_URL: http://search:7700
MEILI_MASTER_KEY: vODkljPcfFANYNepCHyDyGjzAMPcdHnrb6X5KyXQPWo
services:
search:
container_name: wanderer-search
image: getmeili/meilisearch:v1.11.3
environment:
<<: *cenv
MEILI_NO_ANALYTICS: true
ports:
- 7700:7700
networks:
- wanderer
volumes:
- ./data/data.ms:/meili_data/data.ms
restart: unless-stopped
healthcheck:
test: curl --fail http://localhost:7700/health || exit 1
interval: 15s
retries: 10
start_period: 20s
timeout: 10s
db:
container_name: wanderer-db
image: flomp/wanderer-db
depends_on:
search:
condition: service_healthy
environment:
<<: *cenv
POCKETBASE_ENCRYPTION_KEY: fde406459dc1f6ca6f348e1f44a9a2af
ORIGIN: http://192.168.1.75:3000
ports:
- "8090:8090"
networks:
- wanderer
restart: unless-stopped
volumes:
- ./data/pb_data:/pb_data
web:
container_name: wanderer-web
image: flomp/wanderer-web
depends_on:
search:
condition: service_healthy
db:
condition: service_started
environment:
<<: *cenv
ORIGIN: http://192.168.1.75:3000
BODY_SIZE_LIMIT: Infinity
PUBLIC_POCKETBASE_URL: http://db:8090
PUBLIC_DISABLE_SIGNUP: false
UPLOAD_FOLDER: /app/uploads
UPLOAD_USER:
UPLOAD_PASSWORD:
PUBLIC_VALHALLA_URL: https://valhalla1.openstreetmap.de
PUBLIC_NOMINATIM_URL: https://nominatim.openstreetmap.org
volumes:
- ./data/uploads:/app/uploads
ports:
- "3000:3000"
networks:
- wanderer
restart: unless-stopped
# valhalla:
# image: ghcr.io/gis-ops/docker-valhalla/valhalla:latest
# ports:
# - "8002:8002"
# volumes:
# - ./data/valhalla:/custom_files
# environment:
# - tile_urls=https://download.geofabrik.de/europe/germany/bayern/oberbayern-latest.osm.pbf
# - use_tiles_ignore_pbf=True
# - force_rebuild=False
# - force_rebuild_elevation=False
# - build_elevation=True
# - build_admins=True
# - build_time_zones=True
networks:
wanderer:
driver: bridge
Feel free to ask if there's any further information I can give that will help troubleshooting.
Thanks for all the info. I think I have a good idea of what's happening. However, I don't know yet why it's happening.
Upon creating a user this hook is triggered. Which in turn calls this this function, which creates an acitivitypub actor. This is your account's identity in the fediverse. This does not work in your case. That means the actor is never created.
Whenever you request any page, the frontend will try to fetch your actor object (which does not exist because of the problem described above) if you are logged in. That happens here. That is the call that you see producing the ClientResponseError 404: The requested resource wasn't found. error in your db logs. Could you please confirm this theory: is there any row in the activitypub_actors?
I'd be interested if there are any errors when you create the user, since this is likely the place where things go wrong. Are there any logs in the wanderer-web/wanderer-db container or in the browser console?
I'd already written a bunch so I'm keeping it in case it helps, but I think I found the issue so feel free to jump to the part that says I THINK I FOUND THE ISSUE.
I'll try to get you some more information. Once again, I'll delete all data and start on a clean instance for this.
When accessing the main URL at http://192.168.1.75:3000/ the docker logs show no errors but the browser console shows a bunch:
I'm not sure this is relevant but Firefox shows this at the top:
If I access the Login page (I haven't registered a user yet) I get a 500 and the browser console shows
Though for some reason the docker logs only show an error if I reload the page. Doing that it shows:
wanderer-web | APIError: [object Object]
wanderer-web | at users_auth_methods (file:///app/build/server/chunks/user_store-Dh8ZWtJw.js:29:11)
wanderer-web | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
wanderer-web | at async load (file:///app/build/server/chunks/11-BulZI-Sf.js:10:23)
wanderer-web | at async load_data (file:///app/build/server/index.js:2406:18)
wanderer-web | at async file:///app/build/server/index.js:3840:18 {
wanderer-web | status: 500,
wanderer-web | detail: undefined
wanderer-web | }
The only way to access the register page is by going to /register. Same errors as before show in the console when the page loads. When I try to register a new user and submit, there is a 500 error. The browser console shows:
GET
http://192.168.1.75:3000/register
[HTTP/1.1 500 Internal Server Error 21ms]
and the docker logs show this several times:
wanderer-web | ClientResponseError 404: The requested resource wasn't found.
wanderer-web | at file:///app/node_modules/pocketbase/dist/pocketbase.es.mjs:1:37047
wanderer-web | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
wanderer-web | at async auth (file:///app/build/server/chunks/hooks.server-CO0FYvKk.js:114:13)
wanderer-web | at async respond (file:///app/build/server/index.js:4467:22)
wanderer-web | at async Array.ssr (file:///app/build/handler.js:1243:3) {
wanderer-web | url: 'http://db:8090/api/collections/activitypub_actors/records?page=1&perPage=1&filter=user%3D%27cfxhpnqlhn6o3oh%27&skipTotal=1',
wanderer-web | status: 404,
wanderer-web | response: {
wanderer-web | code: 404,
wanderer-web | message: "The requested resource wasn't found.",
wanderer-web | data: {}
wanderer-web | },
wanderer-web | isAbort: false,
wanderer-web | originalError: {
wanderer-web | url: 'http://db:8090/api/collections/activitypub_actors/records?page=1&perPage=1&filter=user%3D%27cfxhpnqlhn6o3oh%27&skipTotal=1',
wanderer-web | status: 404,
wanderer-web | data: {
wanderer-web | code: 404,
wanderer-web | message: "The requested resource wasn't found.",
wanderer-web | data: {}
wanderer-web | }
wanderer-web | }
wanderer-web | }
The part that's confusing to me but it might be my ignorance of the application stack is that the errors in the console and the ones in the docker logs apparently don't match. There are several instances where the browser console shows a 500 and there's nothing in the docker logs.
I THINK I FOUND THE ISSUE
Hold up, I think I see the issue. I was going to check if there was data in activitypub_actors like you asked and there's no activitypub_actors table at all, despite this being a fresh instance. Could it be that for some reason the migrations aren't applying? How would I check if the migrations have run?
In my case, the activitypub_actors table exists. But there's no entry in it after I registered a user. Can I add the entry manually and if yes, what do I have to enter into the fields?
In my case, the activitypub_actors table exists. But there's no entry in it after I registered a user. Can I add the entry manually and if yes, what do I have to enter into the fields?
Same for me. A fresh install. Warender behind a reverse proxy with ORIGIN=https://warender.example.org.
I've created a manual record in activitypub_actors and was able to login. Most of the site seems to work except the /profile/@$USERNAME endpoint.
I followed the ActorFromUser() code to guess the expected values in the record, but didn't bother to reconstruct public_key and private_key and put dummy strings there.
Following; same issue; can you give us some idea of what to put in the required fields? irl, inbox?
Unfortunately, I seem to have the same issue. I cannot register any new users - I always get the error "user cannot be created". Interestingly, parts of the user record get created (in the 'users' table) but nothing in the 'activitypub' tables. When I login using the credentials of the newly created users I get a 500 error.
Any idea how to fix this? Thanks very much for your help.
I have exactly the same issue... :-/
Debugging
I had the same issue and did the following:
- Go to the Logs page (2nd on the left)
- Enable "Include requests by superusers" on the top right
- Search for
level = 8 && data.url = '/api/collections/_pb_users_auth_/records' - This should show the error
The Error
My POCKETBASE_ENCRYPTION_KEY was wrong. It has to be 32 character string as stated here: https://wanderer.to/run/installation/#prerequisites
This is also an issue @plang115 has in the config posted above.
@cugu Thank you, though I just tried it, and the search doesn't display any results. Same 500 error on the UI
@xstrex Can you share a little more on you problem? Is the record in activitypub_actors created? Is there any other errors logs? How does you docker-compose file look like?
@xstrex Can you share a little more on you problem? Is the record in
activitypub_actorscreated? Is there any other errors logs? How does you docker-compose file look like?
the activitypub_actors is empty.
The only logs I'm getting on the web-container are:
[ERROR] [21:00:00]: Login failed. Unable to obtain cookie.
[INFO] [21:15:00]: Starting auto-upload
[ERROR] [21:15:00]: Login failed. Unable to obtain cookie.
[INFO] [21:30:00]: Starting auto-upload
[ERROR] [21:30:00]: Login failed. Unable to obtain cookie.
[INFO] [21:45:00]: Starting auto-upload
[ERROR] [21:45:00]: Login failed. Unable to obtain cookie.
[INFO] [22:00:00]: Starting auto-upload
[ERROR] [22:00:00]: Login failed. Unable to obtain cookie.
[INFO] [22:15:00]: Starting auto-upload
[ERROR] [22:15:00]: Login failed. Unable to obtain cookie.
[INFO] [22:30:00]: Starting auto-upload
[ERROR] [22:30:00]: Login failed. Unable to obtain cookie.
[INFO] [22:45:00]: Starting auto-upload
[ERROR] [22:45:00]: Login failed. Unable to obtain cookie.
Logs from the db-container aren't much help either:
2025/07/29 21:40:19 Server started at http://0.0.0.0:8090
├─ REST API: http://0.0.0.0:8090/api/
└─ Dashboard: http://0.0.0.0:8090/_/
[redacted] docker-compose isn't too far off the stock:
x-common-env: &cenv
MEILI_URL: http://search:7700
MEILI_MASTER_KEY: [redacted]
services:
search:
container_name: wanderer-search
image: getmeili/meilisearch:v1.11.3
environment:
<<: *cenv
MEILI_NO_ANALYTICS: true
ports:
- 7700:7700
networks:
- wanderer
volumes:
- ./data/data.ms:/meili_data/data.ms
restart: unless-stopped
healthcheck:
test: curl --fail http://localhost:7700/health || exit 1
interval: 15s
retries: 10
start_period: 20s
timeout: 10s
db:
container_name: wanderer-db
image: flomp/wanderer-db
depends_on:
search:
condition: service_healthy
environment:
<<: *cenv
POCKETBASE_ENCRYPTION_KEY: [redacted]
ORIGIN: https://wanderer.[redacted]
ports:
- "8090:8090"
networks:
- wanderer
restart: unless-stopped
volumes:
- ./data/pb_data:/pb_data
web:
container_name: wanderer-web
image: flomp/wanderer-web
depends_on:
search:
condition: service_healthy
db:
condition: service_started
environment:
<<: *cenv
ORIGIN: https://wanderer.[redacted]
BODY_SIZE_LIMIT: Infinity
PUBLIC_POCKETBASE_URL: http://db:8090
PUBLIC_DISABLE_SIGNUP: false
UPLOAD_FOLDER: /app/uploads
UPLOAD_USER:
UPLOAD_PASSWORD:
PUBLIC_VALHALLA_URL: https://valhalla.openstreetmap1.de
PUBLIC_NOMINATIM_URL: https://nominatim.openstreetmap.org
volumes:
- ./data/uploads:/app/uploads
ports:
- "3000:3000"
networks:
- wanderer
restart: unless-stopped
networks:
wanderer:
driver: bridge
Happy to turn on debug logging, dig more into PocketBase, or whatever..
In my case, with a 32 bit string for POCKETBASE_ENCRYPTION_KEY it's working now. Thanks @cugu
Thanks for the confirmation @plang115!
@xstrex I'll move your problem to a new issue: #432
I ran into a similar issue, and it was due to the ORIGIN variable not being set in my database. Be sure to set the ORIGIN for the database AND the web container.