Problem with migration tool

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

Sat Sep 22, 2018 10:18 am

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: 1261
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Sat Sep 22, 2018 11:34 am

The directory should be /bl-content/databases.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
User avatar
TheNiller
Jr. Bludit
Posts: 9
Joined: Mon Jul 30, 2018 1:51 pm
Location: Denmark
Contact:

Sat Sep 22, 2018 12:46 pm

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: 1261
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Sat Sep 22, 2018 1:02 pm

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.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
User avatar
diego
Site Admin
Posts: 635
Joined: Sat May 16, 2015 2:53 pm
Contact:

Sat Sep 22, 2018 1:08 pm

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:

Tue Sep 25, 2018 9:13 pm

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