Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Problem with files upload #44

Closed
maxthev opened this issue Jul 18, 2018 · 8 comments
Closed

Problem with files upload #44

maxthev opened this issue Jul 18, 2018 · 8 comments

Comments

@maxthev
Copy link

maxthev commented Jul 18, 2018

Hi,
I'm trying to upload files with the drag&drop feature of the desktop app, the app seems to work because i got this line on server logs:

"POST /push HTTP/1.1" 202

but the file is not in the consume directory and do not appear in the document list.

Volumes on my docker-compose are like this:

        volumes:
            - data:/usr/src/paperless/data
            - media:/usr/src/paperless/media
            - ../volume/consume:/consume

folder permission are like this:

drwxrwxr-x 2 root paperles 4.0K Jul 17 15:28 consume

I dont understand where is the problem.
Thank you

Specifications

  • Version of Paperless: 2.1.x
  • Version of Paperless-Desktop: 0.0.13-alpha
  • Platform: MacOS High Sierra 10.13.5
@thomasbrueggemann
Copy link
Owner

thomasbrueggemann commented Jul 18, 2018

Generally sounds more like an issue of paperless itself, or your setup of paperless, and not paperless-desktop. Since you got the HTTP 202 status.

@maxthev maxthev closed this as completed Jul 18, 2018
@maxthev maxthev reopened this Jul 18, 2018
@thomasbrueggemann
Copy link
Owner

thomasbrueggemann commented Jul 18, 2018

@maxthev But why do you expect the file to be in the consume directory? I don't think that's how the /push endpoint works. It directly feeds the document into the datastore. The consume directory is an alternative approach to feed documents into paperless.

@maxthev
Copy link
Author

maxthev commented Jul 18, 2018

Hum ok, I was thinking that the push approach was uploading to the consume directory too, my bad.

But the file does not appear in paperless anyway (web interface or desktop app). It's like the app get the file (HTTP 202) then nothing.

(Also, feel free to close the issue if you think it's not the right place for this kind of problems ^^ )

@NickBusey
Copy link
Collaborator

Actually to be clear, the file does go in to the consume directory with the /push endpoint.

I had a similar problem, and my issue was the the /consume directory mount point was not the same on the paperless docker container as the paperless_consumer container. You have to make sure both those containers mount the same folder to the same path.

@maxthev
Copy link
Author

maxthev commented Jul 18, 2018

It's strange because in the docker-compose.yml.example, there is something about /consume in the volumes section of consumer but not in webserver.
I tried to add the same - ../volume/consume:/consume to webserver but now i don't have the http 202 anymore, juste nothing server side when i drag and drop a file.

@NickBusey
Copy link
Collaborator

Here is the compose setup I use, and uploads are working for me through the app. https://gitlab.com/NickBusey/HomelabOS/blob/master/roles/homelabos/templates/docker-compose.yml#L495

It's strange you're not getting anything any more, that is probably worth investigating more. Is there an error in the Developer Console of the desktop app?

@thomasbrueggemann
Copy link
Owner

Sorry for getting that wrong about the /push and the consume directory! Thanks for clarifying.

@maxthev
Copy link
Author

maxthev commented Jul 19, 2018

Okey it's now working !
First, I based my docker-compose.yml on @NickBusey 's one.
Then, I saw that I forgotten the https in url in app setup tab. This caused issue with my client max body size too.

@maxthev maxthev closed this as completed Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants