Need help understanding Umbraco
# help-with-umbraco
s
Hey everyone! I recently started working for a company that wants me to focus primarily on Umbraco - Having never tried it before, I am extremely confused. Some of the assignments include upgrading a project from 8 to 10, and making changes to an existing version 10 site. On the second one, I am running headfirst into a wall every time I try to keep going.
I currently have a project running, and I received a database from a colleague which is a genuine and normal Umbraco 10 Database (.bacpac file) Having set up the database, and having run the project via Visual Studio, I get it up and running, and have to run the initial configuration to connect it to the database - That worked, YAY. But... I have no user to log in with? During the configuration, even though I typed up an e-mail and password, it did not create a user under dbo.umbracoUser
So I tried manually adding one, by creating a completely fresh umbraco 14 project, created a user through that, took the data and manually inserted it into dbo.umbracoUser, and that seemed to kind of work, as it gave me a new error; "user has no start node"
So I went into start nodes, and manually added on there, as it was set for other users, and this is where I am at;

https://i.imgur.com/m4izOVf.png

A completely empty site, and it defaults to /undefined
I feel like I have stumbled my way into the completely wrong way to get to the backoffice, and missed something super obvious - Help please ):
But yeah, you should definitely have at least one user in
umbracoUser
, not sure what's going on there!
s
I have all the other users that came with the database from a customer
But obviously I don't know their passwords, so can't use their users
s
Ah okay, that's great, you can reset a password like so: https://docs.umbraco.com/umbraco-cms/v/10.latest-lts/fundamentals/backoffice/login#password-reset I like using Papercut (https://github.com/ChangemakerStudios/Papercut-SMTP/releases/tag/6.2.0.build.723) as a local SMTP server, then the configuration to add in appsettings.json looks like:
Copy code
js
      "Global": {
        "Smtp": {
          "From": "testing@example.com",
          "Host": "localhost",
           "Port": 25
        }
https://cdn.discordapp.com/attachments/1260911825965285376/1260915287063138355/image.png?ex=66910e5f&is=668fbcdf&hm=70fb0ba9310356f28667ee48df3398d899d585dc0c025a815ab4d3d4f1ba27b7&
s
I made the fresh V10, and tried copying the data from that database, and it gives me the same error;

https://i.imgur.com/986qb0E.png

s
Probably best to just reset an existing user's password instead, there's a lot involved in setting users up properly 🙂
s
Yeah, I am trying that right now
Not sure what i am doing wrong, but the reset email is not showing up
I set the appsettings.json smtp to what is shown in your image, and papercut is running
s
tough one.. are you sure the config is in the right place?
yeah otherwise you wouldn't see the "forgot password?" link..
and you're using the email of one of the users in the umbracoUser table, not the user that you inserted but one of the other users?
s
Oooup, there we go
Slight chance that I just sent a couple of reset password messages to the customer
I'm in!
s
if you don't have a real SMTP server then there's nothing to worry about!
Whoop, glad to hear.
s
The SMTP settings were set to something real before
s
As for your v8 to v10 upgrade, that is not a very great assignment to someone who's never used Umbraco before 😦
s
Regardless - I am wondering why my user was not written to the database on setup ?
I am on the better side of that, as we have a V10 install setup, with practically everything ported by me already
Web.config -> Appsettings
s
You already had an existing database, for ... reasons.. (yay, legacy) it would have ignored your new user in the setup screen.
s
So if I restored the database from the customer, and wiped all users.. Would that work?
s
We have a nice guide here for v8 > v10 migration: https://docs.umbraco.com/umbraco-cms/fundamentals/setup/upgrading/version-specific/upgrade-from-8-to-latest But it varies a lot depending on the amount of custom code you have.
doubt it! 🙂 it's just the fact that the db exists with all the required things in it, it ignores if there are users as far as I can remember 😅
also, don't delete all the users, the user Ids are tied to everything else in the database, you'd get error after error after error
s
How come none of these buttons at the top are there?

https://i.imgur.com/eCoiyAr.png

s
I have absolutely no idea, never seen that, seems like a permissions problem.. but at least content should be there since you're on the content section.. check javascript errors and maybe logs
k
Where did the v10 database come from? If the real app is running 8 currently. Is it just an "empty" database from a v10 installation?
s
this was : "making changes to an existing version 10 site." - with that v10 database
s
So apologies, when I introduced I was referring to 2 different projects. Project one is about porting an Umbraco setup from 8 to 10 Project two is a v10 Umbraco site, that I was having issues with
k
Lack of buttons could be a user-permission issue (in Umbraco, "users" are backoffice users, and "members" are "site users"). Make sure you are signed into Umbraco as a full administrator.
s
Ah, there we go, I restarted the project and now they are back
k
Is there uSync in the solution? uSync is an Umbraco plug-in for persisting the backoffice-editable parts of the database to/from disk. There could be differences between the uSync files and the database that may cause confusion.
s
I don't know where to check that
k
NuGet packages on the Web
csproj
.
s
There is uSync
k
I'd Backoffice > Settings > uSync > Everything > Report to see if anything is different.
Also, when you make changes to doctypes/datatypes/etc, you need to be aware these changes will propagate using uSync files on disk that are probably part of your web project. You need to source-control these the same way as cshtml/cs/etc files.
s
Looks like a majority is there
Some things that are apparently missing seem miniscule
Also, thank you both for the help so far
Probably would've been stuck for days on this
k
I'd consider a v13 upgrade while you're at it. Both the Umbraco and the .net parts should be easy. And you'd get to net8 and a better Umbraco
Check the "model builder" settings so that Umbraco doctypes are automatically updated in the solution when you make changes in backoffice. Otherwise you have to do this manually.
s
Yeah, the big hurdle was/is v10 - We deliver the product updated to v10, and recommend getting it further
k
The model builder makes
.cs
files from doctypes.
If you're still doing the 8-to-10 port, prepare for the .NET upgrade being 99% of the hurdles and the Umbraco upgrade being 1%.
Never edit the database directly, there's tons of obsolete stuff in there and relational stuff you wouldn't figure out from just the schema.
Do a hard refresh every time something is acting up in backoffice.
Check the Umbraco log for warnings and errors (you can do this from backoffice) since alot of stuff is usually only reported to the Umbraco log.
s
There's a log?
k
Backoffice > Settings > Log viewer. And usually in
umbraco\logs
somewhere on disk
All packages/plugins are installed as nugets, don't mind the Packages section in backoffice.
s

https://i.imgur.com/WwwW56b.png

k
I meant "check the logs" as a general practice; those 134 errors could be non-errors. 🙂
s
Well the good news is, I did not send emails to the customer;

https://i.imgur.com/KWdaQs2.png

s
Just FYI: if you can't boot Umbraco the logs are also available in the
~/umbraco/Logs
directory
6 Views