A small selection of flowers wild and cultivated
A small selection of flowers wild and cultivated
I often say that I know enough about computing to be a danger to myself, and that was amply borne out a couple of days ago. Recently I had installed dawarich on my Raspberry Pi to keep track of where I have been.1 Unfortunately, in all the excitement of getting it working and being able to access it from afar, I forgot to make a note of the password I had assigned myself and now it required me to login again.
No problem; dawarich’s dashboard offers to email details for a password reset. Great, but the email failed to arrive. It struck me that my Pi has never sent an email anywhere (Signal messages, yes; but that’s another story). And so began a very lengthy session with ChatGPT, in which we played around with all sorts of things, from establishing whether the Pi could send email (it could not) to diving deep into dawarich’s innards and attempting to persuade it to send an email, all of which, many hours and many docker downs and ups later, amounted to a big fat waste of time.
Along the way, I had asked ChatGPT to show me how to get into the SQL database inside dawarich’s docker container, which it duly did. And so finally, frustrated and exhausted, I asked whether I could use SQL to grant a new password. Oh yes, and pretty easy too.
docker exec -it dawarich_app bin/rails console
user = User.find_by(email: “user@example.com”); user.password = “NewTempPassword123!”; user.password_confirmation = “NewTempPassword123!”; user.save!
Done and dusted, and it worked.
Why I thought attempting to get email to work was a good idea I have no idea.
Because Compass requires a PHP version that was costing me $5 a month, and because dawarich accepts input from Overland, even though it isn’t nearly as easy to play with it’s data. ↩
Webmentions
Webmentions allow conversations across the web, based on a web standard. They are a powerful building block for the decentralized social web.
If you write something on your own site that links to this post, you can send me a Webmention by putting your post's URL in here:
Comments
I very much regret that Russian spammers have made my comment system unusable. If you want to email me a comment, it is easy enough to find the address and I will be happy to do the needful behind the scenes. Webmentions remain available (for now).