Coder Social home page Coder Social logo

Comments (8)

stilliard avatar stilliard commented on July 28, 2024

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.

from docker-pure-ftpd.

MarcelRobitaille avatar MarcelRobitaille commented on July 28, 2024

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.

from docker-pure-ftpd.

stilliard avatar stilliard commented on July 28, 2024

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.

from docker-pure-ftpd.

MarcelRobitaille avatar MarcelRobitaille commented on July 28, 2024

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.

from docker-pure-ftpd.

coilock avatar coilock commented on July 28, 2024

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

from docker-pure-ftpd.

stilliard avatar stilliard commented on July 28, 2024

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.

from docker-pure-ftpd.

stilliard avatar stilliard commented on July 28, 2024

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.

from docker-pure-ftpd.

stilliard avatar stilliard commented on July 28, 2024

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.

from docker-pure-ftpd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.