Problem with migration tool

Post Reply
User avatar
TheNiller
Jr. Bludit
Posts: 9
Joined: Mon Jul 30, 2018 1:51 pm
Location: Denmark
Contact:

Hi all.

I tried to update from Bludit version 2.3.4 to 3.0.0 with the migrate script.
Everything worked fine until copying dl-content folder from migrate/ to the root. When asked for overwriting the existing dl-content folder I get an error "Cannot delete database" - 550/public_html/bl-content/database: Directory not empty. So it's not possible to copy/overwrite the current dl-content folder.

Next i tried to delete the old dl-content folder first and then copying the new one from the migrate/ folder. This works but brakes the entire site/frontend. Link with errors here: https://theniller.com/

What to do any ideas?

Greetings Nils
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

The directory should be /bl-content/databases.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
TheNiller
Jr. Bludit
Posts: 9
Joined: Mon Jul 30, 2018 1:51 pm
Location: Denmark
Contact:

Hi again.

Thanks for the quick reply. My bad, I wrote the wrong error message. I have taken an screenshot with the proper error message.

Image

File permission is set to 755 for all folders, so overwriting should be possible.

Greetings Nils
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

I presume that a directory in /bl-content cannot be deleted. There was a bug in a beta version of v3.0.0, and it could be, that it existed before.

If code was used in the editor field but no title given a directory was set with a part of the code. This directory cannot be deleted in some cases (and you have to ask your hoster to do it).

For example if a lightbox was used the directory was set with the name of an image:

Code: Select all

/image-1
The directory has no content.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

I feel you are not updating the old files with the new files, because still trying to use the old files like dbpages.class.php.

The process is:
- Download the migration tool, https://raw.githubusercontent.com/anagg ... igrate.php
- Execute migrate.php in the root folder of your current Bludit v2.3.4
- The script is going to create a folder called "migrations"
- Move the folder "/bl-content" to "/bl-content-backup"
- Download Bludit v3.0
- Copy and replace the old files with the new files
- Now move the folder "/migrations/bl-content" to "/bl-content"
- Done!
User avatar
TheNiller
Jr. Bludit
Posts: 9
Joined: Mon Jul 30, 2018 1:51 pm
Location: Denmark
Contact:

Hi.

Thanks for the tips and help.

I somehow managed to update to version 3.0.0 without breaking the site again :D

I downloaded the the latest version and copied the files over to the current installation. I am not entirely sure if I also got copied the dl-content folder from the migration tool correctly :?

But the site works, and the back-end is updated to the latest version, so I guess I did it the right way.

Again, thanks for quick and useful help :-)

/Nils
Post Reply