Have you tried reading the docs?
https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/reset_admin_password.html
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
No spam posting.
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
No trolling.
Resources:
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
Have you tried reading the docs?
https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/reset_admin_password.html
Did you try
sudo snap remove --purge nextcloud
This will remove the data directory of Nextcloud. Alternatively you can check where snapd is creating this directory and remove it manually.
If you also have entered your email in Nextcloud you can try to reset your password over the mail. https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/reset_admin_password.html#:~:text=Click%20the%20password%20reset%20link,to%20reset%20it%20for%20you.
Did you remove the snap with purge?
Like, sudo snap remove --purge nextcloud? Because the purge will (should) erase stopped passwords and stuff.
I have a snap Nextcloud that I've managed to keep alive for seven years now... I've had a few issues, but it's been pretty good overall.
One day I'll put up a Docker and move everything over... One day.
I will try that
Are you trying to recover data here?
Seems like you didn't use it and (maybe?) don't have data to lose here?
No. I didn't have any data stored
I don't know much about the snap but you can use docker compose to stand up a deployment pretty quickly. If you aren't super confident you could use Nextcloud AIO
This is a major reason to use simpler technology.
I can’t help you, but i had a similar experience with similar technology. I spent lots of time recovering content. I succeeded, but i have software development experience. I didn’t want a repeat of that.
In the end I picked windows file sharing for home networking and filebrowser for occasional access to data files from outside of home networking.
Web dav is a very good alternative. Apache web server will be easier, but nginx can be made to work.
Joplin is another good alternative, which is based on web dav.
You can pay around $2-$3 a month to shared services provider for hosted web dav.
FYI Nexctloud supports webdav.
Cool story. 🙄