LukeSmithxyz / landchad

Landchad.net Website Tutorial Page
The Unlicense
374 stars 87 forks source link

Bcrypt scheme doesn't work in Radicale #223

Open andrey-akhmatkhanov opened 2 years ago

andrey-akhmatkhanov commented 2 years ago

Trying to setup Radicale according to the current guide (with bcrypt, after #201) leads to an error when Radicale server starts: RuntimeError: The htpasswd encryption method 'bcrypt' requires the passlib module with bcrypt support Trying to install passlib and bcrypt as: sudo apt install python-passlib python-bcrypt doesn't help.

The only workaround I've found is to crerate a new user and setup these libraries by pip into user's home dir with: sudo apt install python3-pip python3 -m pip install --user --upgrade passlib bcrypt and then start Radicale as a systemd user service.

Does anyone have the same issue?

Jocomol commented 1 year ago

I didn't experience this issue, were you able to solve it? If yes please feel free to document your findings into the article by opening a pull request.

andrey-akhmatkhanov commented 1 year ago

Hi. I have tested it on a fresh install of Debian 10.13. The solution was to use commands: sudo apt install python3-passlib python3-bcrypt note the use of python3 instead of python in my first message. I'll make a pull request in a while.