Migrating Servers, Getting "Error"

Gizmokid2005

Joined: 2008-07-24
Posts: 36
Posted: Tue, 2009-10-06 02:31

I always come to you guys only with problems, I feel so bad about it... :(

I'm migrating my server...again, this time from shared hosting over to my own VPS, and I'm having an issue. I can take the exact Gallery install including database from my current shared server, over to my VPS and when I attempt to get to the site via http://gallery.gizmokid2005.com/ I just get "Error" and the error_log isn't updated and I can't figure out why its not working. I know the DB connection is working, I've verified that, but I can't determine where the issue is. The database is the same, as is the file structure, to a T.

Can anyone please give me some shining light to follow??

Thanks in Advance!

Obligatory pertinent info here:


Gallery version (not just "2"): 2.3 core 1.3.0
PHP version (e.g. 5.1.6): 5.2.6-3ubuntu4.2
PHPInfo Link (see FAQ): http://vps.gizmokid2005.com/phpinfo.php
Webserver (e.g. Apache 1.3.33): Apache 2.2.11
Database (e.g. MySql 5.0.32): MySQL 5.0.75
Activated toolkits (e.g. NetPbm, GD): GD
Operating system (e.g. Linux): Ubuntu 9.04 Server
Browser (e.g. Firefox 2.0): N/A

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-10-06 15:41

I'm betting database issue. Make sure you follow these instructions exactly:
FAQ: How can I move my gallery installation from one server to another?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Gizmokid2005

Joined: 2008-07-24
Posts: 36
Posted: Tue, 2009-10-06 15:57

It's going to be the same for a multi-site setup as well right?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-10-06 16:16

I'd think so, but I've never setup, let alone moved a multi-site.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Gizmokid2005

Joined: 2008-07-24
Posts: 36
Posted: Tue, 2009-10-06 22:01

Well I've migrated things over...but now I can't login...I get to the login page, enter the correct info, and it just goes back to the main page without logging in.

Ideas?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-10-06 22:13

FAQ: I can't login anymore, what can I do now?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Gizmokid2005

Joined: 2008-07-24
Posts: 36
Posted: Tue, 2009-10-06 22:21

I don't know how I missed that...I searched too...Ok, so that worked...What do I need to do to fix it?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-10-06 22:29

What part worked?

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

 
Gizmokid2005

Joined: 2008-07-24
Posts: 36
Posted: Tue, 2009-10-06 23:01

How to Manually Login is what worked.

It also seems that whenever I change a setting in site admin, it doesn't take, it just takes me back to my gallery home.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-10-06 23:13

Ah, make sure that the baseUri setting in config.php is correct.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Gizmokid2005

Joined: 2008-07-24
Posts: 36
Posted: Tue, 2009-10-06 23:14

And I also get this when it tries to rebuild images:

Quote:
Error (ERROR_TOOLKIT_FAILURE)in modules/netpbm/classes/NetPbmToolkit.class at line 739 (GalleryCoreApi::error)
in modules/netpbm/classes/NetPbmToolkit.class at line 571 (NetPbmToolkit::_exec)
in modules/netpbm/classes/NetPbmToolkit.class at line 431 (NetPbmToolkit::_transformImage)
in modules/squarethumb/classes/SquareThumbToolkit.class at line 128 (NetPbmToolkit::performOperation)
in modules/core/classes/GalleryDerivative.class at line 452 (SquareThumbToolkit::performOperation)
in modules/core/classes/GalleryDerivative.class at line 274 (GalleryDerivative::_rebuildCache)
in modules/core/classes/GalleryDerivativeImage.class at line 153 (GalleryDerivative::rebuildCache)
in modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 844 (GalleryDerivativeImage::rebuildCache)
in modules/core/classes/GalleryCoreApi.class at line 997 (GalleryDerivativeHelper_advanced::rebuildCache)
in modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at line 50 (GalleryCoreApi::rebuildDerivativeCache)
in modules/core/classes/GalleryCoreApi.class at line 984 (GalleryDerivativeHelper_simple::rebuildCacheIfNotCurrent)
in modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 822 (GalleryCoreApi::rebuildDerivativeCacheIfNotCurrent)
in modules/core/classes/GalleryCoreApi.class at line 997 (GalleryDerivativeHelper_advanced::rebuildCache)
in modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at line 50 (GalleryCoreApi::rebuildDerivativeCache)
in modules/core/classes/GalleryCoreApi.class at line 984 (GalleryDerivativeHelper_simple::rebuildCacheIfNotCurrent)
in modules/core/DownloadItem.inc at line 109 (GalleryCoreApi::rebuildDerivativeCacheIfNotCurrent)
in main.php at line 450 (DownloadItemView::renderImmediate)
in main.php at line 104
in main.php at line 88
in main.php at line 3

Request variables: Array
(
[view] => core.DownloadItem
[itemId] => 754
[serialNumber] => 4
)

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-10-06 23:17

FAQ: I am having trouble configuring a graphics toolkit (ImageMagick, NetPBM or ffmpeg). Help?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Gizmokid2005

Joined: 2008-07-24
Posts: 36
Posted: Tue, 2009-10-06 23:45

Yeah, nothing is saving at all. I tried to change the image toolkit priority and it didn't save...nothing seems to be...is this something I should be looking at in the database or in files?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-10-06 23:52

Did you see this post? http://gallery.menalto.com/node/91644#comment-323489
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Gizmokid2005

Joined: 2008-07-24
Posts: 36
Posted: Wed, 2009-10-07 00:01

Yes I did, I was sure I posted it...must've got sidetracked, anywho, here it is:

Quote:
$gallery->setConfig('baseUri', 'http://gallery.gizmokid2005.com/');

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-10-07 00:06

I'm not able to connect to that site, that could be one issue :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Gizmokid2005

Joined: 2008-07-24
Posts: 36
Posted: Wed, 2009-10-07 00:12

No, that was my fail...my virtualhosts file had an issue that I fixed. Try again.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-10-07 03:04

Login and post your system info:
FAQ: What information is required when I ask for help in the forums?

Also, try clearing your cache:
FAQ: How can I clear cached data?

If you have multiple image toolkits installed, uninstall all but ImageMagick. Go to Site Admin > ImageMagick and click Test Settings. Does it pass? If so, go to Site Admin > Maintenance and rebuild your thumbnails and resizes.

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

 
Gizmokid2005

Joined: 2008-07-24
Posts: 36
Posted: Wed, 2009-10-07 15:33

Here's my systeminfo:

Quote:
Gallery URL = http://gallery.gizmokid2005.com/
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6-3ubuntu4.2 apache2handler
Webserver = Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.2 with Suhosin-Patch
Database = mysql 5.0.75-0ubuntu10.2, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux gizmokid2005.com 2.6.18-128.2.1.el5.028stab064.7 #1 SMP Wed Aug 26 15:47:17 MSD 2009 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Rows in GalleryAccessMap table = 123
Rows in GalleryAccessSubscriberMap table = 797
Rows in GalleryUser table = 5
Rows in GalleryItem table = 795
Rows in GalleryAlbumItem table = 17
Rows in GalleryCacheMap table = 0

My phpinfo page is in my original post.

I cleared my cache originally before posting for help, I cleared both the DB and template.

And I removed all the graphics toolkits, and when i hit test settings for imagemagick, it just goes back to the gallery home.

 
Gizmokid2005

Joined: 2008-07-24
Posts: 36
Posted: Sun, 2009-10-18 23:31

I'm probably going to give up on this and just do a fresh install and migrate my data over. My guess is something in the core somewhere, or even in a config somewhere is borked and not updating like it should.