I installed a Nextcloudpi on a Raspberry 4 two month ago.
I was a total beginner for command line execution, server installation and such but with a good french tutorial I was able to do the installation easily and use the tool in the past two months to replace my Google habits (agenda, tasks, newsfeed, drive etc).
But yesterday my connection to the server was refused (DNS certificate couldn’t be authenticated) and if I forced the connection I found a page saying that the service was unavailable.
I tried to connect to the server using SSH but my credentials were not accepted. Same thing when connecting the Raspberry Pi to a screen with a keyboard.
My last back up is from 10 days ago so I’d like, if possible, to recover my data instead of reinstalling everything directly. And more important I’d like to understand what went wrong to avoid the problem in the future.
Most answer on this kind of issue I found on this support use command line but I can’t connect with SSH and when I access to the Raspberry Pi directly with a screen and a keyboard I have to login before executing command line and it doesn’t work either.
So I have two questions :
- Since the installation is done on a Raspberry Pi I have access to the HDD containing the operating system, is it possible to modify the file containing the login and password of the system administrator directly ? I read about the config.php file but from my understanding the ‘dbuser’ and the ‘dbpassword’ are not the credentials used to connect via SSH or directly on the machine. There is also the config.log file but it is hard to find something in it and from my understanding it is more about the users registered in my Nextcloud session.
- In your opinion could that be a hack ? I thought it could be a simple expiration of my certificate and I may have forgot my pasword since I used it only during the setup of the server a few month ago. But I’m not sure, what can I do to be sure that this wasn’t a hack ?
Thanks in advance for your answers and I’d like to say that I am very gratefull for the development team work.