Skip to content
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

Cannot setup new container with metadata db #3310

Open
j-c opened this issue Feb 18, 2025 · 0 comments
Open

Cannot setup new container with metadata db #3310

j-c opened this issue Feb 18, 2025 · 0 comments

Comments

@j-c
Copy link

j-c commented Feb 18, 2025

Describe the bug/problem

Browsing to a NFS share with permissions issues does not error as expected.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Database Configuration
  2. Click on the folder icon to select a file location.
  • This step opens a file browser which starts in /app/calibre-web with the following items .., .github & cps.
  1. Browse to /books. This is where the container has mounted my library.
  • At this step, instead of seeing folders of authors & the metadata file, I only see the same 3 items from step Book description html is broken #2. See screenshot below.
  • If I attach access the container's terminal, the directory seems to have mounted fine.
  1. If I continue and hit save, the textbox is filled with /books but won't save (error: DB Location is not Valid, Please Enter Correct Path)

Expected behavior

A warning or error that the directory couldn't be accessed.

Screenshots

Browsing books directory doesn't show actual contents.
Image

Lising metadata.db file from within the docker container.
Image

Environment (please complete the following information):

  • OS: Docker on Ubuntu 24.04
  • Calibre-Web version: Container build version Linuxserver.io version:- 0.6.24-ls315 Build-date:- 2025-02-16T02:07:50+00:00
  • Docker container: LinuxServer lscr.io/linuxserver/calibre-web:latest
  • Browser: Edge Version 132.0.2957.140 (Official build) (64-bit); Firefox 35.0 (64-bit)

Additional context

Webservice call to http://<host_ip>:8083/ajax/pathchooser/?path=%2Fbooks&folder=false&filter=metadata.db returns the wrong directory (./).

Response:

{"cwd": "./", "files": [{"name": ".github", "fullpath": "./.github", "sort": "./.github", "type": "dir", "size": ""}, {"name": "cps", "fullpath": "./cps", "sort": "./cps", "type": "dir", "size": ""}], "parentdir": "../", "type": "folder", "oldfile": "", "absolute": false}

I don't know why the app can't browse the /books directory while the container's terminal can.

(edit: issue was edited after resolving NFS permissions issue)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant