Migration problem from G1 to G2

johann@nenni.net
johann@nenni.net's picture

Joined: 2003-09-01
Posts: 43
Posted: Sun, 2005-06-26 18:50

I did try to migrate from my gallery 1 to my g2 test site (http://gallery.nenni.net -> http://g2.nenni.net)

the Webserver is the owner of the g2data and chmod is 777 on that directory.

Gallery 1 is running on v1.5.1-cvs-b31, and I did run the "validate album" before with out any errors....

Security Violation

The action you attempted is not permitted.

Error Detail -
Error (ERROR_BAD_PARAMETER)

* in modules/migrate/ConfirmImport.inc at line 1404 (gallerystatus::error)
* in modules/core/SiteAdmin.inc at line 159 (confirmimportview::loadtemplate)
* in modules/core/classes/GalleryView.class at line 216 (siteadminview::loadtemplate)
* in main.php at line 306 (siteadminview::doloadtemplate)
* in main.php at line 87
* in main.php at line 78

System Information
Gallery version 2.0-beta-3+
PHP version 4.3.11 apache
Webserver Servage.net Cluster (Enhanced Apache) (Unix) mod_ssl/2.8.15 OpenSSL/0.9.6b mod_perl/1.29 PHP/4.3.11
Database mysql 4.0.24-standard
Toolkits ImageMagick, Gd, NetPBM
Operating system Linux node15.c1 2.4.20-28.8smp #1 SMP Thu Dec 18 12:25:21 EST 2003 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-06-26 19:05

hmm, that's a strange error.
it compares the G1 albums you selected for the import from the page with the ones that actually exist in the G1 albums directory.
given that the list of albums that you selected can only be generated by the same method before, this is really strange.

do you have any special characters in your album names, or umlauts? it should work, just wonder why that happens.

to debug this issue, can you open modules/migrate/ConfirmImport.inc
on line 1404, before
return array(GalleryStatus::error(ERROR_BAD_PARAMETER, __FILE__, __LINE__), null);
please add:
print "$sourceAlbumName, <br>";
var_dump($albums);
exit;

(add everything within the if condition, just before the return ..;)
then run the import again and post the output here to the forums.

 
johann@nenni.net
johann@nenni.net's picture

Joined: 2003-09-01
Posts: 43
Posted: Sun, 2005-06-26 19:52

I only use normal characters, mostly standard names album1... and so on...

but some photos have Icelandic or Russian names...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-06-26 19:57

what about the output i asked you for?

 
johann@nenni.net
johann@nenni.net's picture

Joined: 2003-09-01
Posts: 43
Posted: Sun, 2005-06-26 20:14

Sorry, I only get som "bullsh..." so I guess I do not do this correctly (I do not know anything about php scripting...)

if (!in_array($sourceAlbumName, array_keys($albums))) {
print "$sourceAlbumName, <br>";
var_dump($albums);
exit;
return array(GalleryStatus::error(ERROR_BAD_PARAMETER, __FILE__, __LINE__), null);
}

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-06-26 20:46

what's the output you get. this looks ok.
or maybe we can't debug this way in the import process.

 
johann@nenni.net
johann@nenni.net's picture

Joined: 2003-09-01
Posts: 43
Posted: Sun, 2005-06-26 21:33

i did try to import one single album.... it did work... before i did select many albums...

so i guess at I have to do this in parts...

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Mon, 2005-06-27 04:01

My guess is that there is one bad egg in there blowing everything up. Let me know if you find out which album it is and I can add a fix, maybe. :)

 
Blinkiz
Blinkiz's picture

Joined: 2002-11-14
Posts: 36
Posted: Mon, 2005-07-04 19:28

Have the exact same problem.

The albums that dosn't work for me, is with swedish letters in. In sweden, we only have three letters more than english. It's Å, Ä and Ö.
Album paths (yes, server paths) with å,ä or ö is marked with a ascii question sign in the source list by gallery2.

For example:
2005-06-24 En Midsommarnattsdröm (2005-06-24-En-Midsommarnattsdr�m)
The path to that albums is /home/xxxxx/public_html/bilder/2005-06-24-En-Midsommarnattsdröm
(Observe that a "ö" is in the line above. The question sign should also be a "ö")

If I type "mkdir åäö" in ssh box and then type "ls", the server returns the directory åäö as "???". If I type "cd åäö", and then "pwd", the correct path with /åäö/ is displayed.

Am using the latest CVS build. Build 2005-07-04.

 
Blinkiz
Blinkiz's picture

Joined: 2002-11-14
Posts: 36
Posted: Mon, 2005-07-04 19:35

Also, I have a directory with the name
20050618enjoytheforestselarion^M^J^M^J
that can't be imported. It's view able, gallery1 can see it, gallery1 dosn't mark it as bad, and I can browse within it with ssh box commands.

 
Blinkiz
Blinkiz's picture

Joined: 2002-11-14
Posts: 36
Posted: Tue, 2005-07-12 16:51

bump

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Tue, 2005-07-12 20:30

you should rename your albums to not have stupid names that involve control m and control j characters. I have no idea how those got into your g1, that is completely ridiculous and I will not help you with that sort of album.

As to the ones with Swedish, Russian, or Icelandic names, please send me a link to one of each. Then, I will probably instruct you to tar and gzip one of them so I can use it as a test album.

 
Blinkiz
Blinkiz's picture

Joined: 2002-11-14
Posts: 36
Posted: Fri, 2005-07-15 21:42

You don't have to help me. It's not my attention. Am just helping the G2 project.

If you want to experiment with foreign language, you can use ascii code. Am sure you having a operating system that can handle it.

For example, swedish language has just three more letters. that's å, ä and ö.
Just press ALT + 134 to get the å letter for example.
A list of ascii code can be found here
With this, you now can create your own folders on your computer/ssh box and experiment with G2's ability to handle foreign language.

Best luck with the G2 project. :wink:

Mr Hagman