Paperless-NGX, Part Three
Configure Paperless-NGX
So I left the other day with the container crashing after changing the container volumes. After playing with it for a while today I realize it is a permission issue.
sudo chown 1000:1000 /mnt/paperless
This didn't work, what a bummer. It ends up looking like that didn't even change the permission of the mount point. So I had to unmount first and then change ownership.
umount -l /mnt/paperless
sudo chown 1000:1000 /mnt/paperless
That takes care of that problem, the container is able to start now. But I run into another snag. I can't login to the Paperless-NGX app. I had saved the password in my password manager but it doesn't seem to be working. The default admin:admin
isn't working either which I find very confusing. I'm assuming that when I changed the volume points something was recreated and wiped out my settings. So let's fix this, how do I go about resolving it?
Steps performed on PAPERLESS-01
docker-compose ps
This gives me the list of the containers.
docker exec -ti paperless_webserver1 /bin/bash
> cd /usr/src/paperless/src
> python manage.py createsuperuser
- I set back up my username, email, and password.
Success! I can now log back in. I'm glad my assumption was right because I honestly did not have any other ideas. I did end up wiping out everything updating the volumes. This isn't a big deal since I was only using a bunch of testing so far.
As I'm adding files in to Paperless-NGX I notice that they are not showing up in the mounted network share. I'm guessing I still have a permission issue somewhere.
Steps performed on PAPERLESS-01
docker-compose down
cd /mnt
ls -la
drwxr-xr-x 2 root root 0 Oct 31 15:49 paperless
umount -l /mnt/paperless
ls -la
drwxr-xr-x 3 david david 4096 Nov 2 10:07 paperless
What if the group has permission?
sudo chmod 775 /mnt/paperless
ls -la
drwxrwxr-x 3 david david 4096 Nov 2 10:07 paperless
Well I now notice that the documents are there while the unmounted? So here's what I have to do to fix it:
Steps performed on PAPERLESS-01
rm /mnt/paperless/*
umount -l /mnt/paperless
sudo nano /etc/fstab
//10.10.10.XXX/Data/Documents /mnt/paperless cifs credentials=/home/david/.paperlesscredentials,uid=1000,gid=1000,iocharset=utf8 0 0
- I saved the file
mount -a
Now when I test by adding some files to Paperless-NGX they are showing up in the network share. Hooray!