mirror of
https://github.com/ciur/papermerge.git
synced 2026-04-25 12:05:58 +03:00
[GH-ISSUE #75] Manual Installation Issue on Ubuntu 20.04 LTS #57
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#57
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 @ciur on GitHub (Aug 19, 2020).
Original GitHub issue: https://github.com/ciur/papermerge/issues/75
Originally assigned to: @ciur on GitHub.
Got feedback on reddit:
@ciur commented on GitHub (Aug 19, 2020):
I will even record a screencast on this topic!
@dohlin commented on GitHub (Aug 20, 2020):
Sorry for the late reply, and thanks for taking the feedback...hopefully it didn't sound rude I certainly didn't mean it that way :)
Also to be honest, when I posted the feedback I had already deleted the VM I had spun up (in no small part because I had run so many different trial & error commands during my install & troubleshooting that things just had started to feel really "messy" and disorganized)
That being said, I'd be happy to to test any updated directions and contribute any refinements. Thank you!
@Pyromane commented on GitHub (Aug 20, 2020):
I am available for tests!
I use Ubuntu 20.04 in LXC containers.
@ciur commented on GitHub (Aug 21, 2020):
Great! I am very happy that there are people ready to help!
Documentation updates follows...
@ciur commented on GitHub (Aug 21, 2020):
I created a pull request where I keep pushing documentation updates for manual installation for Ubuntu 20.04 LTS
@ciur commented on GitHub (Aug 21, 2020):
Hi guys @Pyromane, @dohlin
I updated manual way part of documentation.
That guide is split into two parts - short version with gist of commands and long version with sort of step by step walk-through.
It is based on fresh installation of Ubuntu 20.04 LTS.
When you have time, maybe you can go through it and test if I didn't miss something. Also, I am sure I made a great deal of typos. I will be infinitely grateful if you'll correct typos/wrong parts.
Thank you !
@dohlin commented on GitHub (Aug 22, 2020):
@ciur Thanks for the super speedy updates. I spun up a new VM (it's based on a template I have, but it's a stock image of 20.04 with nothing special really done to it). Going through the updated documentation it's MASSIVELY improved. I've gotten to the beginning of step 3, and I've encountered 2 things so far (and the first is super minor, simply grammer/format):
Under 'Step 1' - the line that includes "there might be either pip or pip3 - later is specifically for python version 3":
Not sure if you meant to include "pip" in the formatting like "pip3" is or not, and also it should say "latter" not "later" : )
Under 'Step 3' - I'm encountering the following errors: https://imgur.com/a/h02GFW9
I can fix the pdftk by exiting the venv (sudo su [username] - not sure if this is required or not), running 'sudo apt install pdftk', and re-activating the venv, but not sure how to fix the other errors as convert/identify/tesseract don't find any valid packages. There's also the piece about the config file - which I'd be ok just leaving the defaults for now, but it's a little confusing to me why lines such as "DBDIR" don't have a 'default' option - they aren't commented out by default.
What am I missing? Let me know and I'll continue working through the guide. Thanks!
@ciur commented on GitHub (Aug 22, 2020):
Those are warning which are dealt with little bit later (like 2 paragraphs down below, by installing Ubuntu packages like imagemagick and poppler-utils etc). I fixed the typo (thanks for that !) I added a note saying that warnings should be ignored for ./manage.py migrate step as they are deal with later (./manage.py check)
They have! You have a good point. I commented out all values in papermerge.conf.py, because indeed - every value has a default. In same documentation I mention that papermerge.conf.py can be left empty (just to make sure that admin/user is aware of configuration file).
Thank you for your great feedback!
@dohlin commented on GitHub (Aug 23, 2020):
Awesome, thanks for those updates, and sorry for not reading further before posting - I just didn't want to feel like my install was 'dirtied' by adding potentially unnecessary stuff like last time so I just said hold up and posted haha
I've finished the documentation and only have 2 further questions:
and 2. How does one make it so that the main app and the worker both start automatically after system reboot? It would be a little tedious to have to log in and manually open terminal windows to run both of them after any reboot.
Otherwise I think the manual documentation looks really really good now! Thanks!!
EDITS: Noticed there is a syntax error under Step 5 - 3rd line in the first code box should say "
./manage.py worker" instead of "./manage worker".Also - I'm still getting these 2 memory leak warnings when running the worker: https://imgur.com/a/il66qdH
Is this expected or anything to be concerned about? Thanks!
@mtonnie commented on GitHub (Aug 23, 2020):
@dohlin
You can use use gunicorn to serve the app, for detail how I use it for Synology packed have a look here.
Probably a simple start stop script or a service depend on your Linux version / distribution.
@dohlin commented on GitHub (Aug 23, 2020):
I'm using Ubuntu 20.04...I might have a similar setup on another VM for auto-start functionality, not sure but I'll do some digging on that.
And I don't fully get the gunicorn bit, but I'll do some digging on that too. Thanks
@ciur commented on GitHub (Aug 24, 2020):
Those warning are issued because you run Papermerge in DEBUG mode. As long as you run it from you own computer (or only for home networks - that is from 100% safe environment) and only "in manual way" - means you start application with
./manage.py runserver+./manage.py workercommand there is nothing to be concerned about.DEBUG mode means that during an exception all stacktrace with all environment variables, paths etc will be printed on the screen - this is a big problem if you run application "in the wild" (in wild wild Internet :))) )
Use runserver command:
It will bind application on IP 0.0.0.0 on port 8090. Obviously you can use any other port greater than 1024. Port 8090 is just a random example.
This is part of next documentation ticket I am going to work on.
Otherwise I think this ticket is good to be closed.
@dohlin, what do you think?
Ah, @dohlin, completely unrelated, but still I think useful tip:
Instead of uploading images to imgur.com and copy/paste url here, you can drag and drop directly images directly in this edit box. It is confusing because editor does not have "upload image" button... but still it supports drag and drop. I found out that myself couple of days ago.
@dohlin commented on GitHub (Aug 24, 2020):
Good to know, thanks for that heads up!
Probably wouldn't hurt to add this to the manual docs, but this answers my question!
Not like I'm going to be exposing this to the internet lol, but just for my knowledge is there a way to run it in PROD mode? Or is DEBUG mode just how the project is run in its current state?
Otherwise yes - ok to close and I'll keep watching that 'auto start' documentation ticket. Thanks again!
EDIT: I think I resolved my non-debug question myself by changing "DEBUG = True" to "DEBUG = False" in [PapermergeDMS root]\config\settings\dev.py
@ciur commented on GitHub (Aug 24, 2020):
@dohlin, correct !
Thank you very much for great feedback + ticket!
@Pyromane commented on GitHub (Aug 25, 2020):
Wow, that's a great guide!
I followed detailed version and this one worked perfectly.