-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Failed to create backup in Docker #3089
Comments
I think this was fixed in v0.16.3+. What version of PocketBase do you use? |
I'm using 0.17.2 |
Hm, what was fixed before was the restore functionality (see #2519) but I forgot to check the backup creation. I'll test it sometime later today and will try to submit a fix. |
Should be fixed in PocketBase v0.17.3. If the above doesn't resolve your issue please provide more details about your Docker setup and I'll try to investigate it further. |
@ganigeorgiev unfortunately I'm experiencing the same issue after upgrading to v0.17.3. Docker version 24.0.5, build ced0996 My Docker-Compose fileservices:
example-server:
restart: always
image: private-image
command: ["/server", "serve", "--http=0.0.0.0:8090", "--debug"]
volumes:
- ./data:/pb_data:rw My Dockerfile## Build
FROM golang:1.20-buster as build
WORKDIR /app
COPY server/go.mod ./
COPY server/go.sum ./
COPY server/pkg ./pkg
RUN go mod download
COPY server/*.go ./
RUN CGO_ENABLED=1 go build -o /server
## Deploy
FROM gcr.io/distroless/base-debian10
WORKDIR /
COPY --from=build /server /server
COPY webapp/dist /webapp
EXPOSE 8090
ENTRYPOINT ["/server", "serve", "--http=0.0.0.0:8090"] Also upload of files is not working
|
This is a different error but I'm not able to reproduce it locally. Could you provide a minimal reproducible repo? |
I guess the As a workaround you can try to mount the
|
See the note in
So as a workaround you can try to set the I'll try to experiment a little further and will see how feasible will be to define the |
On further investigation, it seems that the As mentioned in the previous comment, I'll consider updating the dependency (once tagged) and enabling the option (I'll have to find a way to reproduce it somehow first), but as a workaround for now try to set the |
Here is a repo to reproduce the bug: https://github.com/Aragur/pocketbase-invalid-cross-device-link.git |
The workaround
isn't working for me. What should I set |
To a directory path that is inside your mounted dir, aka. in your case I guess it could be |
Thanks this worked for me |
@ganigeorgiev Just wanted to ask for an update. |
You can try to upgrade to PocketBase v0.17.4, where we downgraded the |
If you are using PocketBase as Go framework, check your go.mod file and update the |
@ganigeorgiev this still appears to be some type of issues. I get this same error message in the ui, but this outcome.
Pocketbase version - PocketBase v0.18.6 What advice do you have for giving Pocketbase permission to make the directory? I thought about just adding it in the docker image, but after running that night, it would be deleted. Suggestions? This is in a Dockerfile, hosted on fly.io (so VM not container) |
@khrome83 The above "cross-device link" error shouldn't exist anymore with the latest release. I have no idea why the above is causing a file permission error. If you are not able to resolve it, please consider filing a new Q&A discussion with more details about your setup and I'll try to investigate it. |
Done! See #3385 |
…oss-device link error
The Backup functionality isn't working on my instance.
Using the latest version of Pocketbase and Docker.
--debug
-Log shows the following:The text was updated successfully, but these errors were encountered: