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 #97
Comments
Hello @kendofriendo! Is the root URL for Pocketbase instance available under the provided address? If so, please look at the response headers and Pocketbase logs - maybe there's some useful information for us. |
In case it's relevant, the server running caddy is separate from the computer running grimoire. I have it connected via wireguard. |
Is this problem still persisting for you while using https://github.com/goniszewski/grimoire/releases/tag/v0.3.5? |
Yes. |
I have a similar, if not the same, problem - on v0.3.5. I deployed the app as shown in the "Quick Start" of the docs, but changed the stack so no ports were directly opened. This is the content of my .env file
and this is my docker-compose.yml:
According to the log of my grimoire container the POCKETBASE_URL is http://localhost:8090 - a value I never specified. This is a screenshot of the container logs: And here is a screenshot of the env of a shell inside the grimoire container: If I hunted down those lines correctly, then that POCKETBASE_URL http://localhost:8090 is set here: Line 11 in d1aaaae
And if I understand the code correctly, then that value should only be used, when the system is started in dev-mode - which it is not (also shown in the screenshot above). But on the screenshot above the log also shows a recurring app error, which does show my specified URL. And here I get stuck, because I don't understand enough about Typescript or this app. This path in the error looks like the URL for the grimoire app/container - and if I understand correctly, then the /internal/pb/ path is meant for proxying pocketbase connections through internal endpoints. If I open the Browser DevTools in the webapp, I get the following: The error notification popping up shows the correct URL, but the DevTools reveal that the grimoire app URL is doubled in the sent XHR request. |
Had the same issue. The It seems to work correctly if you add |
@Flycro thanks for that info. The error Here are the full contents of that second error:
And here is a screenshot from the pocketbase webinterface after signing up: I'll probably just wait for a future update to set this up again from scratch. |
The text was updated successfully, but these errors were encountered: