504.0 GatewayTimeout when migrating to umbraco 8 - umbraco

I try to migrate my V7.15.7 website to 8.1.x
I followed the guides / documentation / blog posts.
I made sure there are no Obsolete document-types.
Then I installed the Pre-migration health checks and it says it ready for upgrade
Then I installed a fresh new Umbraco 8.5.5 website on my ftp, and after I logged in and made sure it works (the new empty 8.5.5 website) I logged out and changed the connection string in web.config to my old 7.15.7 database.
It started the migration process but after few minutes I got 504.0 GatewayTimeout
Then I tried the process again and after few minutes I got again 504.0 GatewayTimeout
So I tried to increase the Connection Timeout from 3600 to 33600, Connection Timeout=33600
Didn't help
<add name="umbracoDbDSN" connectionString="Server=xxxxxx;Data Source=xxxxx;Initial Catalog=xxxx;Persist Security Info=False;User ID=xxxxxxxxx;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=33600;" providerName="System.Data.SqlClient" />
What's the reason I'm getting the 504.0 GatewayTimeout ?
I'm using Azure to host my website.
Thanks for your help .

Have you checked out this article that I have recently written for the online Umbraco Skrift magazine about "How I upgraded my Umbraco v7 project to Umbraco v11"?
If you haven't, I recommend that you do so, as there are some critical steps that you need to follow in order to upgrade your projects successfully; otherwise, you'll end up seeing a lot of problems, like the one that you have seen.
https://skrift.io/issues/how-i-upgraded-my-umbraco-v7-project-to-umbraco-v11/
I have also talked at this year's Umbraco Community Day event about how to upgrade Umbraco v7 and v8 projects to the latest version of Umbraco v11. Please take a look at this recording, too.
Here are 12 steps that should help you doing your upgrades successfully;

I figured out the reason - I tried to perform the migration direct on Azure, which is pretty much not possible ...
So instead, I had to Create Local SQL Server database on my computer:
Create Local SQL Server database
Then, I installed Umbraco locally:
How to open Azure database .bacpac locally for local Umbraco website?
And I was able to migrate to 8, then 9, then 10, then 11 (don't skip steps..)

Related

Error occurs when creating a new database under Neo4j 4.0

I'm using Debian 9.9 and the version of Neo4j is 4.0. I'm having problems creating a new database using the neo4j browser. The instruction I followed is this.
I have tried the following Cypher command:
create database myNewDatabase
However, an error pops up like this:
Neo.ClientError.Statement.NotSystemDatabaseError
Unsupported administration command: create database myNewDatabase
Please let me know what the error message means and how I can solve it. Thx in advance:-)
In v. 4 (release Feb. 2020) of the professional version of Neo4j, it's easy to create new databases. Documentation
In the community edition, it takes a hack:
1. Edit the file NEO4J_HOME\conf\neo4j.conf
2. Un-comment the line: dbms.default_database=neo4j
3. Change the neo4j to whatever database name you want for a new database. Note: names must have between 3 and 63 characters. For example: dbms.default_database=mydatabase
4. Save the file
5. (If applicable) Kill the database server, and close the browser window with the Neo4j UI
6. Start the neo4j server, and open a new browser window, pointed as usual to http://localhost:7474/
7. Both the old (default) database, "neo4j" and the one you just created will show up. However, attempting to switch between them causes an error. If a switch is desired, repeat the above steps starting from (3)
Note: the above steps will create a folder named mydatabase (or whatever name you used), in NEO4J_HOME\data\databases , and it will populate its contents.
I personally think that switching between databases is such a BASIC operation that Neo4j ought to make it easily accessible in the Community edition!
I think I've got the answer to my question. It turns out that my license (the community edition) is not supported for working with multiple databases. An alternative could be this.

Deploying Website with Migration using FTP

I have an asp.net MVC website making extensive use of ef and migrations.
i have tried deploying it to a system running windows 10 on a local network but seems like ms has removed that options from the latest release and now deployment using web deploy is only possible on server os's.
No trying to do the same using FTP.
whats the ay to deploy using ftp on a local server. I have already setup FTP publishing but cant seem to figure out how to deploy the db and configure the app to run code first migration after every deploy.
The accepted answer in this forum post helped me out with this exact issue. I added the code given there to Application_Start in my Global.asax.cs
Database.SetInitializer(new MigrateDatabaseToLatestVersion<MyObjectContext, MyObjextContextMigration>());
MyObjectContext contexttest= new MyObjectContext();
contexttest.Database.Initialize(true);
Just be aware that this will run your seed method every time you visit your site (at least it did for me). In my configuration.cs I put in a check to see if data existed in my tables, if that data was null then it was ok to seed that table, etc.

How to deploy nopCommerce 3.5 to new server from source?

I have nopCommerce 3.5 source code with numerous customizations and plugins that needs to be moved to a new server. I restored the database backup and have the source on the new server. What other steps are needed to ensure proper deployment to the new development server?
For the latest NopCommerce version, there is a short instructions file for publishing your code to the server here: http://nopcommerce.codeplex.com/SourceControl/latest#src/Deploying.Readme.txt
I haven't personally tried that method because I've used NopCommerce up to version 3.10, which had an alternative deploying method. (see below)
For Nop 3.50 method, you'd also need to set database credentials and database name into AppData\Settings.txt file.
In case you will find it useful, I'll also present my usual routine when deploying a nopCommerce (<= 3.10) website is the following:
Create a folder for NopCommerce (obviously :)
Create an IIS website in IIS Manager with .NET v40-enabled application pool.
Enable "32-bit application support" on the application pool (in advanced properties). I have some plugins that rely on 32-bit DLLs. If you don't have such dependencies, you might not need to enable this option.
Set proper permissions on the folder I created so NopCommerce (more exactly, the IIS process for the website) can successfully read and write data. In my IIS setup, I need to give "Modify" permissions on the folder to IUSR and IIS_IUSRS.
Copy the built NopCommerce to the folder.
Here is a batch script I used for creating an archive of necessary files (after re-building the entire solution): https://gist.github.com/dan-mirescu/c14cc72e3f8ecca988b7
The script also includes suggestions about what to do next. Please check them out.
And of course, you also need to have the database ready:
Restore database and optionally create a SQL user which has 'owner' access to it.
Update AppData/Settings.txt with the new database settings.
I hope this helps.

Umbraco + YAF integration - connection issues

I'm working to try and get a migrated Umbraco/YAF installation working, but I'm having issues with connectivity.
I've already asked for help with the Connection Strings, so this bit is sorted.
However, I still get a 404 error when I try and navigate to mysite/forums, as it redirects to mysite/install
This site tells me that this could be because of a few issues:
It will connect you to install\default.aspx if
: its connect to a db but thinks there isn't a YAF version present in its data, or
: database version doesn't match and thinks it needs updating.
I know it's connecting to the DB, because the CMS connection string works, and it's connecting to the same database.
There are YAF_* tables in the database, so I know it's content is there.
By process of elimination, it might be a version issue, but I'm not sure how to compare the DB version to the ASP files version.
I'm running Umbraco 4.6.1
I never quite worked out what version I was running, but I did find out this issue was fixed by:
Assign yaf database user db-owner privileges.
And there you have it.
check that you have the following line in web.config
<add key="umbracoConfigurationStatus" value="4.6.1" />

Can't create new project in Team Foundation Server

We're switching over to Team Foundation for our version control, and I have to learn it and set it up. Our IT guy did the installation of the both the data tier and the app tier, and he is of course convinced that it's right. However when i log in as tfssetup and try to create a new project, i get the error:
Error
Insufficient permissions to create a new SQL Server Reporting Services at tsttfsapp1.
Explanation
The permissions granted your user name and ID on the SQL Server Reporting Services at tsttfsapp1 do not allow you create a new project. You must be granted specific permission by the server administrator.
User Action
Contact the Administrator for the SQL Server Reporting Services at tsttfsapp1 and ask that the permission "Content Manager" be added to your user account
So i tried to log in to http://servername/Reports_TFS it asks for the credentials but doesn't accept them. Even stranger when i try to access it from a computer and user that aren't on the same domain as the app tier server, it doesn't ask for credentials and lets me right in. As far as i know the default name of the site should be Reports, not Reports_TFS is it possible that his renaming of that could be causing the problem?
tfssetup is definitely a "Content Manager" as far as i can tell, so i don't understand why we are getting this problem. Also any recommendation for good websites or books that can take a complete beginner and help me become an expert in 3 weeks (what's left of the 6 week time frame allowed for me to learn) would be appreciated.
Thanks
I'm not sure this will help, but we had this error at my place of work on our 2005 TFS server. We opened a ticket with Microsoft and sent them our TFS database. They were able to replicate the issue with the copy of the database. Somehow the TFS database had gotten into an invalid state, but they weren't able to determine how this happened or how to fix it. Unfortunately, this error kept us from being able to upgrade the server to TFS 2008 too. We ended up getting latest of all the code and adding it to source control on a new install of TFS. What a pain.
OK so it turns out it was only a problem because I was using a 2005 client with a 2008 server. A 2008 client has no problem creating a project on the 2008 server, but the 2005 client is not able to create a project on a 2008 server.

Resources