0
Answered

migrate users

Skylar Ragan 7 years ago updated by Tom 7 years ago 5

I have about 40 user accounts setup on my 1.10 instance of Ubooquity that I'd like to migrate over to my 2.1 instance without have to recreate each one in the interface one at a time (also because I don't remember what their existing passwords are). I tried copying the name and password hash from the .xml file over to the .json file in the new format, but once I start Ubuquity up again they just get cleared. Is there any way I can do this?

Hi Skylar Ragan,


unfortunately, there is current NO way to convert the 1.x settings (where the user accounts also belongs) to 2.x, because the database format essentially differs between 1.x and 2.x  (@Tom : correct me, if i was wrong).


hope that helps


best regards 


TierparkToni


+1
Under review
I tried copying the name and password hash from the .xml file over to the .json file in the new format

That's the right thing to do.
But you have to be sure to stop Ubooquity before replacing the json file (Ubooquity overwrites it upon exit).


@TierparkToni: settings are stored in a separate preferences file, not in the database. So it is editable by hand.

+2

I figured out what I was doing wrong. When I copy/pasted the last user in the .json file, I copied the name, password hash, and the line after (which was an end bracket). What I needed to do, was copy the user info and the line above it. All is working now and this can be closed.