I need to upgrade one of our websites from Umbraco 6.0.7 to 7.4.0. I've updated the NuGet package and followed upgrade guides. I've replaced umbraco, umbraco_client and config folders to make sure there is no configuration incompatible with 7.4.0.
Unfortunately, the update wizard fails with this error message:
2016-02-16 20:57:13,838 [P6904/D3/T10] ERROR Umbraco.Core.DatabaseContext - Database configuration failed
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'System.Dynamic.ExpandoObject' does not contain a definition for 'NodeId'
at CallSite.Target(Closure , CallSite , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSeven.UpdateRelatedLinksData.<UpdateRelatedLinksDataDo>b__15(Object x)
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Linq.Enumerable.<DistinctIterator>d__63`1.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSeven.UpdateRelatedLinksData.UpdateRelatedLinksDataDo(Database database)
at Umbraco.Core.Persistence.Migrations.Syntax.Execute.Expressions.ExecuteCodeStatementExpression.Process(Database database)
at Umbraco.Core.Persistence.Migrations.MigrationRunner.ExecuteMigrations(IMigrationContext context, Database database)
at Umbraco.Core.Persistence.Migrations.MigrationRunner.Execute(Database database, DatabaseProviders databaseProvider, Boolean isUpgrade)
at Umbraco.Core.Persistence.Migrations.MigrationRunner.Execute(Database database, Boolean isUpgrade)
at Umbraco.Core.DatabaseContext.UpgradeSchemaAndData(IMigrationEntryService migrationEntryService)
It seems that UpdateRelatedLinksData upgrade step expects different data / schema. How to fix this? Are there any manual changes to database required?
I have this exact same problem. I haven't found the answer yet but am exploring options on this thread over on our, umbraco's site.
I have managed to get the database upgraded to 7.3.7 by pointing a vanilla installation of Umbraco 7.3.7 at my 6.0.5 database, but when I try point the 6.0.5 site at the database I got this error which I could not resolve:
[InvalidCompositionException: ContentType with alias 'HeaderAndFooter' was added as a Composition to ContentType with alias 'AToZResults', but there was a conflict on the following PropertyTypes: 'umbracoNaviHide'. PropertyTypes must have a unique alias across all Compositions in order to compose a valid ContentType Composition.]
So I attempted to upgrade to 7.4 and got your error. I have found this ExpandoObject error on Umbraco's issues site and also a similar discussion on this issue and I followed the suggestion of exporting the database to an empty 6.1.6 instance. I can't get the data imported into the empty 6.1.6 database though, there are too many PK and FK constraint issues. Some people do suggest manual database edits, but mine's a large production site so I'm not going there.
So I am currently trying two ways:
1) Upgrading sequentially
2) The suggestion on the Umbraco thread, which is 'so if you have an updated vanilla umbraco solution pointing at an upgraded 7.3.7 database, can you just copy across the views, css scripts, js, images, config, fonts, media into the new solution... will it fly ?'
If anything works, I'll keep you posted!
Related
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.
I'm getting this error while trying to access Administration Page of my collection:
Administratio Page ERROR
I tried upload TFS.Configuration database, but no success so far.
This is the results of my sql selects:
SQL SELECT
According the error info VS402375: Can't find the process associated with team project 'xxx'. Contact support to resolve this error.
It looks like the process template (which you used for the project) is missing in the team project collection database.
A solution is restoring your back-up database, which may do the trick for this issue. Daniel is right, it's highly not recommend to modify TFS databases yourself.
Another solution is manually changing the templateID to match what your collection. More detail steps please take a look at bmonwai's answer in this similar question.
I know this is a really old post, but this also occurs if you have Extensions installed and then move from one database to another (backup/restore)
When you are attaching the collection, this would have given you a notification that is has dependant extensions. If you ignore this and continue, when you try to get to the admin page for that collection you can get this error as well.
I would recommend either installing the dependant extensions OR prior to detaching the collections at source, ensure you remove/uninstall the extensions.
Usually, installing the required extensions can solve this.
Webmatrix is hanged while I query cmsDocument table in SQL CE database, I can query other tables but this gives me error, and it says that "Unable to cast object of type 'System.DBNull' to type 'System.String'.". I also found out that cmsDocumentType table query is also a problem. How will I fix this?
And another issue is the content, document type and template I created previously are gone and just the old content is available. I renamed the main node in umbraco 6.16 site and added new nodes , saved and published. Now all new contents are lost.
I think these two issues are linked. I appreciate any suggestion.
I just found out that after there is any change in the content, the whole website should be refreshed in the WebMatrix. Otherwise, all the changes will be disappeared when the project is closed.
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" />
What is the correct proceedure when deploying an ASP.net MVC application? I am using the built in forms based authentication and deploying using the publish function in VS2008 but when deploying it doesn't seem to deploy the ASPNETDB to the server and I end up with errors like
An error occurred during the execution of the SQL file 'InstallCommon.sql'. The SQL error number is 1802 and the SqlException message is: CREATE DATABASE failed. Some file names listed could not be created. Check related errors.
CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'C:\INETPUB\WWWROOT\HOURS3\APP_DATA\ASPNETDB_TMP.MDF'.
I looked this up and attempted to change the sql server to run under the local system account as per
http://forums.asp.net/t/984436.aspx
but that doesn't seem to have helped.
When you try to publish this way, I believe you're going to overwrite your database with the one you are currently developing with. This means if you had any changes in your web environment, such as new users, you would lose them when you overwrote them in a publish. Additionally the reason you're probably getting permission denied, is because the file is already in use by the website, and Windows doesn't like it if you try deleting a file that is in use.
Typically I set my databases to publish in a different methodology than the ASP.net files. I often generate an upgrade script using a tool such as RedGate SQL Compare. This allows me to upgrade the one live on the server instead of copying a new file.