Open MarcelRobitaille opened 2 years ago
Hi @MarcelRobitaille
I think when calling the pure-pw
commands you may need to pass the path to the db file, e.g.
-f /etc/pure-ftpd/passwd/pureftpd.passwd
Hope this helps.
Hi @stilliard. Thanks for the answer. I tried that. It may work to recreate the db, but it does not fix the problem permanently for me because it is still trying to use the old password file when I try to log in with ftp localhost
. That's what I think based on what I experienced, but I am by no means an expert.
Weird, nothing's changed for that version as it's tagged. I'm unable to test right now but will try to over the weekend to see if there was an issue in that version maybe or something.
Yeah it's really weird. I didn't update anything or even re-pull the container. I just rebooted my computer. It was working before and broken after.
Hi everyone. I am possibly running into the same issue, as my container was also running fine for a longer period of time. Today I realized that the server was not responding after a reboot of the host system.
The logs indicate that there is indeed a problem with the passwd
file:
root@srv0:/pool0/srv/cfg/paperless# docker-compose logs ftpd
Attaching to paperless_ftpd_1
ftpd_1 | Creating user...
ftpd_1 | Password:
ftpd_1 | Error.
ftpd_1 | Check that [ftp] doesn't already exist,
ftpd_1 | and that [/etc/pure-ftpd/passwd/pureftpd.passwd.tmp] can be written.
ftpd_1 | Enter it again:
ftpd_1 | Setting default port range to: 30010-30019
ftpd_1 | Setting default max clients to: 5
ftpd_1 | Setting default max connections per ip to: 5
ftpd_1 | Starting Pure-FTPd:
ftpd_1 | pure-ftpd -l puredb:/etc/pure-ftpd/pureftpd.pdb -E -j -R -P 192.168.178.130 -p 30010-30019 -c 5 -C 5
Hi @MarcelRobitaille & @coilock ,
I've tested today starting the latest version, stopping it and starting again using your example docker-compose.yml file.
All worked as expected and I was able to use it on first start using the paperless user as well as after a stop and restart.
My only difference is rather than using the image: stilliard/pure-ftpd:hardened-1.0.36
tag I just used the latest one: image: stilliard/pure-ftpd
The output of the 2nd start does show an error saying:
pure-ftpd | Enter it again: Error.
pure-ftpd | Check that [paperless] doesn't already exist,
pure-ftpd | and that [/etc/pure-ftpd/passwd/pureftpd.passwd.tmp] can be written.
However, this is just that it's trying to create the user again on start up and as the user already exists it does not need to so it's more of a warning that the user already exists.
Hope this helps clarify that message.
Also I tested by exec'ing into the server with:
docker-compose exec pure_ftpd bash
and running:
pure-pw show paperless -f /etc/pure-ftpd/passwd/pureftpd.passwd
to confirm it shows the correct details and no error.
I'm not sure what paperless
is btw but as you both have a user called that I assume it's some platform for running docker maybe?
Is it possible that platform has some issue with keeping the volumes?
I'd suggest testing the container directly if possible by starting it, ftping in to check it works, stopping and starting it again to check you can still ftp in.
Hope this helps.
I followed the docs to create my setup and it has been running fine for months. Today, I rebooted my served (I did not update anything at all), and now it looks like pure ftp expects the password file to be in a different location. I was mounting the volume like
./ftp_passwd/:/etc/pure-ftpd/passwd
. However, I was unable to log in. I connected to the container and ran giving this result:It was looking for the password file in a different folder. I updated my volume to just
/etc/pure-ftpd/
. I also had to dopure-pw mkdb
. Now, I am able to log in again.What caused this change? Is this a bug or should the documentation be updated? Again, I did not update anything (not system packages or containers). I have pinned my version
stilliard/pure-ftpd:hardened-1.0.36
.Relevant
docker-compose.yml