@skidelo
Maybe it is better to open an own thread.
If I were you, I would install Nextcloud completely empty, create the users manually, etc. Then I would copy (or mount) the data back into the datadirectory structure, and then re-load the files/directory in Nextcloud database with
(note that I keep my store in a non-standard and detached-storage location. Also note that I’m using nextcloud snap)
The backstory:
I hosed my server by fatfingering a couple of commands as a privileged user. I had to wipe and reinstall the entire OS et al
How I fixed the exact same error username is invalid because it already exists for this user when attempting to create the user on my freshly installed nextcloud:
(note that for the purposes of this walk-through, let’s say the directory is named “theo”)
I went to the datastore where the user directory existed and mv theo theo-restore
I created the new “theo” user in nextcloud, which succeeded this time.
Nextcloud created the new directory automatically in the data store. When I checked it, it was just a normal empty directory. So, I copied the contents from the old directory to the newly created directory in its entirety. cp -ap theo-restore/* theo/
Nextcloud happily imported the state of the files in the directory all by itself.
When all is done and validated, rm -rf theo-restore
@cloaked1 Your steps worked for me as to getting my new install of Nextcloud onto a new server. The old server fried but my Raid drives were thankfully intact. I had to reinstall the new OS onto a new drive since that was the cause of all my issues.
I got all the way through the installation this time. I did steps 1-3. I verified that they did copy over correctly via the terminal. Everything was there but I can’t see them but not when I login to the dashboard. Am I missing something? Is there a utility I need to run for NC to start displaying my files?
I have 4 other users I need to setup. I don’t want to do the above procedures until I sort out the first one.