Import from G2 going nowhere

fumducket

Joined: 2009-10-19
Posts: 16
Posted: Mon, 2009-10-19 20:03

I've installed Gallery 3 Beta 3 in a new folder on my server. I am trying to import my files from G2 to G3. It finds the files when I define the path to embed.php and reports the correct version of G2 (v2.3). I've set permissions on /var to 777 after reading the forums.

When I start importing the progress is stuck on "Starting up". Judging from the galleries it's able to import one picture but the progress bar goes nowhere. It does however create all the albums and sub albums correctly, just doesn't progress past creating the first picture.

Any ideas?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Mon, 2009-10-19 20:21

How many photos are in your G2 install?

Can you post a link to phpinfo?
FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fumducket

Joined: 2009-10-19
Posts: 16
Posted: Fri, 2010-01-08 18:06

There are 431 photos in 13 albums I'm trying to import.

You can find the phpinfo file here: {redacted}

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Mon, 2009-10-19 20:44

What's the URL for your G2 install?

I found one, and it gives me an "ERROR" which really looks like the database is having issues or G2 can't connect to it and you'd need a working G2 install to import from G2 into G3.

I'd also look at the image toolkit you're using with G3. I don't know what sort of images and sizes you have in G2, but if they are big, and you're using GD that could also be a hang up. Try using ImageMagick (Admin > Settings > Graphics)

Do the error logs in picsbeta/var/logs show anything?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fumducket

Joined: 2009-10-19
Posts: 16
Posted: Fri, 2010-01-08 18:03

The G2 is broken at the moment. That's why I decided to see if I could get G3 to work. Guess I can reinstall G2 on top of the existing one and see if I can get the actual Gallery to work.

I'm using GD. There's no ImageMagick on the server as far as I know so GD is really the only option.

I found tons of errors in the log. The most recent reads:

{redacted}

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Mon, 2009-10-19 21:16

You need to get G2 working first. Put G2 into debug mode and post back when you've done that. I'll check the URL I found before and see what the output says:
FAQ: How to set/use Gallery in debug mode?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fumducket

Joined: 2009-10-19
Posts: 16
Posted: Mon, 2009-10-19 21:32

I can't even get into G2 at this point. I don't know how it broke. It used to work but all I get is the Error message. Is there a way to get past that?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Mon, 2009-10-19 21:50

You just need to edit config.php to put Gallery into debug mode, click this link:
FAQ: How to set/use Gallery in debug mode?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fumducket

Joined: 2009-10-19
Posts: 16
Posted: Fri, 2010-01-08 18:03

I'm starting to wonder if this is caused by upgrades done to the server at some point.

Error
Error (ERROR_PLATFORM_FAILURE)

* in modules/core/classes/GalleryTemplate.class at line 288 (GalleryCoreApi::error)
* in modules/core/classes/GalleryTemplate.class at line 214 (GalleryTemplate::_initCompiledTemplateDir)
* in main.php at line 521 (GalleryTemplate::fetch)
* in main.php at line 104
* in main.php at line 88

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Mon, 2009-10-19 22:05

platform failure typically points to permissions, which would also explain why G3 couldn't find the images... :)

FAQ: I get a ERROR_PLATFORM_FAILURE, what should I do?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fumducket

Joined: 2009-10-19
Posts: 16
Posted: Mon, 2009-10-19 22:15

Well, I've verified the proper path is in fact defined in config.php and it's set to 777. I don't know what else it can be.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Mon, 2009-10-19 22:23

Dig down further into your g2data directory and make sure the permissions on the sub-directories and files are set such that the web server user can write to them, including files like g2data/versions.dat
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fumducket

Joined: 2009-10-19
Posts: 16
Posted: Mon, 2009-10-19 22:29

OK, I think this is definitely caused by a server move in the past. Some files it won't let me change. I'll just have to abandon this effort. Thanks for your help.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Mon, 2009-10-19 22:36

No need to abandon. You need someone with root access, your host probably, to change the owner on the files to your account or to the user the web server runs as.

They can do that in about 2 seconds, 5 if they type slow :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22876
Posted: Mon, 2009-10-19 23:24

Server move? Dreamhost?
Just ask you host to change permissions for you. Should be quick like nivekiam said.
If you gave up on that you can use the 'from server' add method in G3 and point it to your g2data/albums directory.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
fumducket

Joined: 2009-10-19
Posts: 16
Posted: Fri, 2010-01-08 18:06

No the host is {redacted}. I've been through my fair of downtimes, server moves and changes made to my sites and I'm not particular happy about it. If you know a great reseller host please let me know.

I submitted a trouble ticket to have the permissions fixed in order to fix Gallery and this was the tech's response:

host wrote:
date Mon, Oct 19, 2009 at 5:47 PM
subject [#UFP-373905]: Broken Gallery

will correct tomorrow morning. Was up at 2 am and currently working on prior requests.
Robert Saylor

floridave wrote:
Server move? Dreamhost?
Just ask you host to change permissions for you. Should be quick like nivekiam said.
If you gave up on that you can use the 'from server' add method in G3 and point it to your g2data/albums directory.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
fumducket

Joined: 2009-10-19
Posts: 16
Posted: Fri, 2010-01-08 18:04

The host has finally fixed the permissions and the old Gallery 2 is now working. However, import still doesn't work.

I've verified the files are all 777. I've tried both G2 import and Server add. When I try using Server add to the proper location it will stop at "Found 35 files" for the album in question and never progress past that. The G2 import will stay stuck at "Starting up" like it did yesterday.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Tue, 2009-10-20 15:46

Looks like it keeps stopping on this image: Chloerom

Can you add that to G3 using the Add > Add Photo option?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fumducket

Joined: 2009-10-19
Posts: 16
Posted: Tue, 2010-01-12 21:54

Yeah I just did. It's the only image on there now. Most of the time it will import that one picture and not progress.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Tue, 2009-10-20 17:18

Ah, so it imports that picture but nothing else?

And there are no additional logs in var/logs/?

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fumducket

Joined: 2009-10-19
Posts: 16
Posted: Tue, 2009-10-20 17:54

None since yesterday. Can I rename it and see if it creates a new one?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Tue, 2009-10-20 18:56

It should create a new file for today.

2009-10-20.log.php
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fumducket

Joined: 2009-10-19
Posts: 16
Posted: Tue, 2009-10-20 23:34

It's strange. I've let it sit on "Starting up" for a couple of hours and it's not generating a log.

 
fumducket

Joined: 2009-10-19
Posts: 16
Posted: Tue, 2009-10-20 23:53

I tried doing server add and it's still doing the same thing. Says it found xx images and stops there. No log generated this time either. I've verified that my G2 install still works just fine and permissions are 777 in g2data across the board. I'll try to revisit this in a later beta release or just stick to my G2 install. Thanks for your help nivekiam.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Wed, 2009-10-21 01:38

I'm stuck. Dave you have any ideas? I don't know what to check for if nothing is showing up in the logs. He can add via Add > Add Photos, but not Server Add or G2 Import. There doesn't appear to be any open_basedir restriction in place.

fumducket, just got to ask, are you using the full server path or URL? /path/to/g2/embed.php or www.example.com/g2/embed.php?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fumducket

Joined: 2009-10-19
Posts: 16
Posted: Wed, 2009-10-21 01:43

Full server path. It properly detects Gallery as v2.3 in the proper path.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22876
Posted: Wed, 2009-10-21 02:38

The only thing I can suggest is:
FAQ: How do I see debug information?
The other option is to put a bunch of debug code in the module and see if it yields a clue. A slow and painful method.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22876
Posted: Wed, 2010-01-13 02:19

To bad that debug:
FAQ: How do I see debug information?
Does not work at least for my install(s). and a few others. I have a ticket for this but it does not help much til it gets resolved.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
fumducket

Joined: 2009-10-19
Posts: 16
Posted: Wed, 2010-01-13 02:25

Funny that you should post an update today as I installed the latest version of Gallery 3 Beta 3 today and tried the import again. Same result. It gets stuck on "Starting Up" and will sit like that forever. Hostmaster fixed all permissions on Gallery 2 and verified that everything is working. All files have correct permissions and I can add/remove pictures no problem in Gallery 2 so I am back to square 1 with this problem.

 
fumducket

Joined: 2009-10-19
Posts: 16
Posted: Wed, 2010-01-13 02:39

Here's an image of what exactly is happening...

Manual uploads work fine as this image was manually uploaded to the system.