mirror of
https://github.com/ciur/papermerge.git
synced 2026-04-25 12:05:58 +03:00
[GH-ISSUE #172] Permission denied when using NFS share for volumes #135
Labels
No labels
2.1
3.0
3.0.1
3.0.2
3.0.3
3.0.3
3.1
3.2
3.2
3.3
3.5
3.x
Fixed. Waiting for feedback.
Fixed. Waiting for feedback.
UX
Version 2.1 - alpha
XSS
announcement
beta
blocker
bug
cannot reproduce
confirmed
confirmed
critical
demo
dependencies
deployment
detchnical debt
discussion
docker
documentation
donations
duplicate
enhancement
feature request
frontend
fundraising
good first issue
good issue
help wanted
high
implemented
important
improvement
incomplete
invalid
investigation
kubernetes
low
low impact
medium
medium
medium impact
migration from 2.0
migration from 2.1
missing-language
missing-ocr-language
no-activity
note
ocr
outofscope
packaging
performance
popular request
pull-request
pypi
question
raspberry pi
roadmap
search
security
setup
status
task
technical debt
updates
user xp
version 1.4.0 - demo
will be implemented
will not be implemented
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/papermerge#135
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bwoodworth on GitHub (Oct 15, 2020).
Original GitHub issue: https://github.com/ciur/papermerge/issues/172
Originally assigned to: @ciur on GitHub.
Description
Fresh install using docker-compose. Volumes set like this:
/mnt/papermerge/media_root is an NFS share. I also have IMPORTER_DIR="/opt/media/import" set in the conf.
When I place a document in the import directory I get the following error in the container log:
Also, when I upload a document it appears to complete, but the document in the UI doesn't show any contents on any page. When I look in the physical location of the volume the document is not there.
Expected
Documents should import and upload successfully.
Actual
Permission denied error for imports and uploaded documents not completing successfully
Info:
@ciur commented on GitHub (Oct 15, 2020):
@bwoodworth, thank you for opening this bug report.
This is core of the issue:
During import, just before creating file in media directory, application moves document into a temporary location first.
When importer_dir is in NFS, shutil.move( NFS node -> LOCAL FS) fails.
One way to fix this problem is by adding a configuration setting - with "temporary root" (e.g. /opt/tmp so that both /opt/tmp and /opt/media will be on same device)
@bwoodworth commented on GitHub (Oct 15, 2020):
I added the tmp location as a volume to docker-compose and did a chmod on the directories and it is working now.