-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Could not connect to Pocketbase #102
Comments
Hello @v1r0x! The latest version contains multiple fixes, one related to this exact issue, please check https://github.com/goniszewski/grimoire/releases/tag/v0.3.5!
A: This is Grimoire's proxy path that is proxied internally to the default Pocketbase instance. Thus, we can keep all the API calls in the app itself and not via an external connection. I'll keep this issue open and wait for your confirmation if it's fixed for you in the latest version! |
Hello @goniszewski Thanks for your fast reply. I already tried that version after it came out 😉 Edit: Is it enough to run Maybe I did something wrong with my setup? I'm far from an expert in docker or traefik 😀 Here's my
and
|
I've checked again the configuration you've provided. I do not have a single suspect, but rather a couple of ideas, so please bear with me:
Sorry I kept you waiting for so long! |
No problem at all! ❤️ Really appreciate your help! Is there a specific log file inside the container? |
I left BUT
|
What value do you have in your |
I didn't set anything, but I tried to set it to the value from your |
Strange. Looks more like a proxy issue that is not directly related to the app itself. |
Ok, thanks for the info. Then I'll dig into traefik to find my problem. Should I keep this issue open? Feel free to close it :) I'll add a new comment when I fixed my problem |
It's OK to left it open. I hope you will stumble upon a solution to this problem and share it with us! |
Something is clearly wrong here with ENV variables in general or PUBLIC_POCKETBASE_URL specifically. After adding some debug to all places where this is used (config.ts, server.ts, lib/utils/pb.ts), this is what is seen and used at those places. With the following
Env as seen from Line 6 in 6542728
is:
so correctly so far. but then immediately below ( Line 9 in 6542728
config object gets PUBLIC_POCKETBASE_URL differently:
and therefore the app prints:
and pb.ts also:
The condition should be updated to something like:
or more elaborate to account for DEV environment. Right now the PUBLIC_POCKETBASE_URL is never used. @goniszewski |
Quick update from my side. I bought a new home server and tried to setup grimoire again. Now it works flawlessly! 🎉 |
Describe the bug
Could not connect to Pocketbase on https://grimoire.mydomain.de/pb. Is it running?
.GET https://grimoire.mydomain.de/internal/pb/api/health [HTTP/2 404 295ms]
)To Reproduce
Steps to reproduce the behavior:
"traefik.http.routers.pocketbase.rule=Host(
grimoire.mydomain.de) && PathPrefix(
/pb/)".
PUBLIC_POCKETBASE_URL=https://grimoire.mydomain.de/pb
Expected behavior
Webpage shoul dbe reachable without errors.
Also I'm confused why the health check url contains
internal/
?Additional context
This issue might be related to #68 and #97, but I didn't want to "hijack" these issues. Feel free to close this as duplicate if I should continue in one of them :)
The text was updated successfully, but these errors were encountered: