Database created/restored from umbraco cloud has n...
# help-with-umbraco
m
Coming back to umbraco cloud after a period of not using. When creating a local copy for development I find my local db is created with no users apart from an admin user, which I have no idea of a pwd. The data base table has the usually hashed pwd with an entrty of
default
? Any ideas what credentials to actually use to gain access as the admin? Reading around it seems that umbraco.io users aren't created as a security measure. So I gues my issue of an unknown admin user only is that I only have umbraco.io users set up? It seems I can add the umbraco.io users by changing the
data\backoffice\users
and removing the leading underscore from the
_user_name.courier
but this seems to be a one time deal only creating users when the local site spins the db up for the very first time, prior to the restore content from cloud. (ps can't see any mention of users in the cloud documentation for creating a local copy have I missed something) I've tried the
echo > deploy
approach in the data folder to get a new user imported once the local db is already set up without joy. (indeed all I see here is a
deploy
file created and not the
deploy-complete
as the docs mention? How can I trigger an import of new users if required? Cheers all https://cdn.discordapp.com/attachments/1198381723176665219/1198381723361231021/image.png?ex=65beb2f3&is=65ac3df3&hm=4ffd647b66814702ca063b25636c78c6af4aaede4a6cbd49a4ecd004aa0a7e2a&
s
My guess is that the users are created automatically when signing in with Umbraco ID
t
When u config database on first step, ill created autumatically
m
@tn_qt74 nope that's what I've detailed above, only on first creation of the local db, and only if you remember to remove the preceeding underscore on any
_username.courier
files.. I wanted a solution to be able to add new umbraco.io users when the db was already in place. 😦
@skttl can't sign in to the local db with either of my umbraco.io users. (pity I can't seem to find the this default password of the admin???) I guess the other way around this is to set up a none umbraco.io user on the db.. if indeed that is still possible?
s
sounds like a case for Cloud support, do your umbraco.io users have access to the backoffice according to the cloud portal?
m
yes I can log in on the cloud side of things.. just doing the set up a local env for development has the above..
and as I say if I think to clone and alter the
/data/users/_myuser.courier
to
data/users/myuser.courier
then that initial creation of the localdb includes that user now.. and then restore proceeds ok and I can log in to the local dev environment.
s
That shouldn't be necessary though. Are you not getting the "SIgn in with Umbraco ID" button on the login screen?
m
nope..
s
Thats the first thing you need fixed then 🙂
m
this is a umbraco 7 cloud site though!
we did't have that then did we?
s
ah ok - thats probably why 🙂
m
😦
I'm guessing also then that
echo>deploy
only reprocesses the
.uda
and not the
.courier
files
But I'll reach out to cloud support now.. was out of hours for them so was hopeful of a community response.. which I got.. thanks @skttl and @tn_qt74
27 Views