As a newbie I have been pointed to the logs to find out why… but I do not know how to do that, nor where to look. I’m guessing there is a terminal mode, but the next steps are…?
Hi @drBarns
Gladys is a “consumer friendly” product, so we try to avoid telling users to go watch the logs (except for debugging some very weird bug)
If you know what you’re doing and want to see the logs, you need to be in command line on your machine and execute :
docker logs gladys --tail 200
Which will output the last 200 lines of logs.
But no worries, no need to do that if you don’t need it
It would be cool if the chat function could execute that command and show the result.
That’s not really in line with the product philosophy.
If some integrations aren’t clear enough in the UI when there’s an error, we need to improve the interface and add more detailed error messages!
So today I tried to login and was told the password was wrong. SO choosing the ‘I’ve forgotten my password’, leads one to the statement:
Look in the logs for the link to change your password!
You’ve already said:
Gladys is a “consumer friendly” product, so we try to avoid telling users to go watch the logs (except for debugging some very weird bug)
If you know what you’re doing and want to see the logs, you need to be in command line on your machine and execute :
> docker logs gladys --tail 200
Which will output the last 200 lines of logs.
In my view This isn’t consumer friendly. Nor do I know HOW to get into Command Line mode from my iPad.
@David suggested a chat function to execute that command, which seems a pretty slick solution. Few should need it, but it’s there in cases like this.
And I still cant change my password…
Hi @drBarns!
I completely understand your frustration—this is actually a feature in Gladys that I don’t like much either.
The reason we handle it this way is that Gladys logs are the only place we can guarantee that only the owner of the machine has access.
Traditional websites use email for password resets, but since Gladys is self-hosted, that’s not an option. Requiring users to set up an SMTP server would be even more complicated than checking the logs!
One possible solution could be sending the reset link via Telegram if the user has configured it, but that wouldn’t work for everyone either.
If you have a better idea, I’d love to hear your feedback!
That being said, you’re absolutely right—we need to improve this.
Ideas:
- recovery/backup code → adding complexity
- secret questions when creating account → reducing security
could be an idea!
Not a big fan of this ^^
I think as a first step, we could send the link to Telegram, it doesn’t cover all the cases, but at least it covers Telegram users
In the meantime, I still can’t change the password because I do not know how to access the logs!
Could someone explain the first steps? Im happy to get to a CLI but do not actually know how to start the process. In my case I use iOS and a mac laptop on the same network as the RasPi 3 server running Gladys.
In future the Telegram solution sounds clever… perhaps you could integrate some or all of the Telegram install in the initial setup for everyone?
On your Mac, open the “Terminal” app (you can search with Spotlight) :
Then write:
ssh pi@IP_ADDRESS_OF_YOUR_RASPBERRY_PI
(Of course, replace by the ip address of your pi on your network)
It’ll ask for a password, the default one defined by the Raspberry Pi fondation is:
raspberry
Then you’ll be connected to the Pi in SSH.
You can now write:
docker logs gladys --tail 200 -f
And reset your password in your browser.
You’ll see the link in the logs
Don’t hesitate if you have any questions!
Many thanks, Ill try that.
Hi @drBarns !
I’ve worked on this topic this morning.
In the next version of Gladys, Gladys will send the reset password via Telegram and NextCloud Talk if the user configured theses services.
The UI will display this message:
The PR :
Thanks again for reporting this, and I hope you were able to solve your issue
@drBarns Gladys Assistant 4.54.0 is now sending “reset password” link to the Telegram/NextCloud Talk