Problems importing G1 --> G2

markdd

Joined: 2004-09-02
Posts: 3
Posted: Tue, 2007-02-20 06:58

Hi Guys,

Hope you can help. I had a system crash on my old Debian box, but managed to retrieve the albums directory from it.

I've set up a new box, and decided to upgrade to G2 while I'm at it. Possibly that was a bad move.

When I try to import the gallery from G1, I get the following error. I've set the permissions to 777 for all those folders btw.

Security Violation

The action you attempted is not permitted.

Back to the Gallery
Error Detail -
Error (ERROR_BAD_PARAMETER) : Missing or not readable file: /mnt/hdc/bunkyhdd/var/www/albums/album79/album.dat

* in modules/migrate/classes/Gallery1DataParser.class at line 70 (GalleryCoreApi::error)
* in modules/migrate/classes/Gallery1DataParser.class at line 230 (Gallery1DataParser::loadFile)
* in modules/migrate/classes/Gallery1DataParser.class at line 113 (Gallery1DataParser::loadAlbumFields)
* in modules/migrate/ChooseObjects.inc at line 277 (Gallery1DataParser::getAlbumList)
* in modules/migrate/ChooseObjects.inc at line 224 (ChooseObjectsView::_createG1AlbumTree)
* in modules/core/SiteAdmin.inc at line 150 (ChooseObjectsView::loadTemplate)
* in modules/core/classes/GalleryView.class at line 317 (SiteAdminView::loadTemplate)
* in main.php at line 386 (GalleryView::doLoadTemplate)
* in main.php at line 87
* in main.php at line 80

System Information
Gallery version 2.1.2
PHP version 5.2.0-8 apache2handler
Webserver Apache/2.2.3 (Debian) PHP/5.2.0-8
Database mysql 5.0.32-Debian_3-log
Toolkits SquareThumb, ImageMagick, NetPBM
Operating system Linux Fuckfucky3 2.6.18-3-686 #1 SMP Mon Dec 4 16:41:14 UTC 2006 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0


G2 URL (optional):curly.homelinux.com/gallery2
G2 version:
G1 URL (optional):n/a
G1 version: Whatever the debian testing was up to
G1 character set:
PHP memory limit:16M
--
PHP version (e.g. 4.3.11):
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33):
Database (e.g. MySql 4.0.11):
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux):
Browser (e.g. Firefox 1.0):

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2007-02-20 07:34
Quote:
Error Detail -
Error (ERROR_BAD_PARAMETER) : Missing or not readable file: /mnt/hdc/bunkyhdd/var/www/albums/album79/album.dat

It's pretty clear from your error message what your problem is. Album79 is missing it's album.dat file, or it's unreadable. Unless you have a backup of that somewhere else, you won't be able to import it.


h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
markdd

Joined: 2004-09-02
Posts: 3
Posted: Tue, 2007-02-20 07:48

This could be caused by any number of things I suppose...

I tried removing that 'albums79' folder, but it's still looking for it. Which means it's picking up a list of folders from a database somewhere.

So - any ideas on how to import this without having to do it all manually, folder by folder?

Thanks for your help btw.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2007-02-20 16:42

Why not just deselect that album when importing? Tried deleting it in your G1 install or run validate albums in it before trying to import?


h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
markdd

Joined: 2004-09-02
Posts: 3
Posted: Wed, 2007-02-21 01:21

It doesn't get to the point where I can select or deselect specific albums - as soon as I try to import from G1, it throws up that error message.

So maybe my best bet would be to set up another G1 installation, copy the /albums directory over the default one, make it shipshape, then try to reimport?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2007-02-21 12:26

Try the validate albums tool...


h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org