Migrated to an Ubuntu Server with major problems with viewing pictures.

johnlon
johnlon's picture

Joined: 2006-01-10
Posts: 105
Posted: Tue, 2009-07-14 05:56

I have just had to migrate my site to an Ubuntu VPS server, so I anow totally working via Ubuntu, both OS and VPS and I cant view any pictures, they are all showing broken image thumbnails.

I am have no idea why that should be. I have GD and NetPBM installed, so I think the pictures should show up.

I have noticed when I try to perform maintenance, that errors occur on quite a few of them.

I have no idea what they mean, so could plesae somebody help?

This was just run now. The errors are so long there is just no space to add them here.

Gallery URL = http://hamstercareforum.co.uk/Gallery2/main.php
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.4-2ubuntu5.6 apache2handler
Webserver = Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.6 with Suhosin-Patch
Database = mysqli 5.0.51a-3ubuntu5.4, lock.system=database
Toolkits = Exif, NetPBM, Thumbnail, Gd, Getid3, LinkItemToolkit, SquareThumb
Acceleration = none/900, none/900
Operating system = Linux hamstercareforum.co.uk 2.6.24-23-server #1 SMP Thu Nov 27 19:19:15 UTC 2008 i686
Default theme = classic
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11 GTB5
Rows in GalleryAccessMap table = 138
Rows in GalleryAccessSubscriberMap table = 4506
Rows in GalleryUser table = 39
Rows in GalleryItem table = 4487
Rows in GalleryAlbumItem table = 267
Rows in GalleryCacheMap table = 0

Thank you for your help. If anybody wants admin cp access please ask. I now have ssh access, to make things eaier. Though I dont as yet know how to use it.

John.

 
johnlon
johnlon's picture

Joined: 2006-01-10
Posts: 105
Posted: Tue, 2009-07-14 14:15

Ok, I have discovered why that has happened, the pictures for some reason, werent transfered with the g2data, but I have a copy of them on my computer. How do I transfer them over to the new site, to their respective albums and subalbums?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-07-14 18:06

Make sure you follow this guide:
FAQ: How can I move my gallery installation from one server to another?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
johnlon
johnlon's picture

Joined: 2006-01-10
Posts: 105
Posted: Wed, 2009-07-15 08:32

Ok, I think we have most of it sorted, but its trying to to get the directory path to the g2data pictures. In the instructions it says Go to Admin Panel> Web/Server. Well, I cannot find that anywhere. Can somebody help please?

Thank you.

John

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2009-07-15 13:28

You're reading the next FAQ I believe: " How can I export data from one G2 installation and import it to another? "

I don't think you'd need that.

Read the FAQ about moving to a new server I linked to above. Or describe exactly what you have and don't have better. I'm not following you exactly. Do you have your old g2data or not? If you do, simply put it on the new server. If you don't and you only have pictures, you can import them, yes, but you'll lose ALL comments, view counts, titles, descriptions, keywords, etc. But you'll have your pictures :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
johnlon
johnlon's picture

Joined: 2006-01-10
Posts: 105
Posted: Wed, 2009-07-15 13:37

ok, I have everything migrated, apart from the albums, which are on my server in a separate folder.

If you look here

http://www.hamstercareforum.co.uk/Gallery2/main.php

all you can see is broken thumbnails. How do I transfer the pictures from the folder to the albums on the G2?

Does that make sense? I am not sure how else to explain.

thank you.

John

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2009-07-15 13:46

Are the pictures on your server in the EXACT same directory structure as what you have setup for your album structure in G2?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
johnlon
johnlon's picture

Joined: 2006-01-10
Posts: 105
Posted: Wed, 2009-07-15 15:44

Hi, they are on the server, but not in the same location as the g2data file. I read somewhere that you shouldnt upload pictures via ftp to the albums folder in g2data, directly. Which is why I am not sure what to do.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2009-07-15 16:11
Quote:
I read somewhere that you shouldnt upload pictures via ftp to the albums folder in g2data, directly

Correct, in most cases, don't do that.

Again,

Quote:
Are the pictures on your server in the EXACT same directory structure as what you have setup for your album structure in G2?

EXACT same directory structure, EXACT?

Since you're either not understanding what I'm asking or just not reading my messages 100% try this:

BACKUP BACKUP BACKUP:
FAQ: How do I backup G2?

Now that you have a backup of your database, g2data and gallery....

IF AND ONLY IF the directory structure your pictures are in is in the EXACT same structure your albums were organized in, in G2, try copying your photos under g2data/albums THEY MUST BE ORGANIZED EXACTLY THE SAME AS BEFORE. You may need to change ownership or permissions so the webserver can write to those files.

Now try rebuilding your thumbnails and resized versions.

In theory, your item ids should stay the same, thus preserving URLs
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
johnlon
johnlon's picture

Joined: 2006-01-10
Posts: 105
Posted: Wed, 2009-07-15 16:42

Oh dear, I am so sorry, I misread the last post.

I will give you the directory of the albums

albums file is at the moment in the root

directory of g2data file is

xxx/hamstercareforum.co.uk/www/Gallery2/g2data

no pictures are in the album folder of the g2data

I will give what you said a try.

Thank you and sorry for the misunderstanding.

edit: I am having a bit of a problem sort of with this system, its run through ssh. I can get to see the files, but its the Ubuntu system of running them, different to cpanel way of doing it. It doesnt have public_html its in www instead. That is probably why?

John

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2009-07-15 16:52
Quote:
albums file is at the moment in the root

Root of what? Root of the filesystem? /albums or /root/albums or /home/UserName/albums or xxx/hamstercareforum.co.uk/albums

If you have ssh access and have the ability to give me access, I can take a look and poke around to try and give you better advice. You can PM me details if you want to do that.

I'm not sure what you need help with. Are you not familiar with working on the command line? public_html is very likely just a symlink from your home directory to /var/www/hamstercareforum.co.uk/www/ or something like that. Or just something that cPanel is calling your webroot, which appears to be your xxx/hamstercareforum.co.uk/www directory.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
johnlon
johnlon's picture

Joined: 2006-01-10
Posts: 105
Posted: Wed, 2009-07-15 17:09

Have sent you a pm.

Thank you.

 
johnlon
johnlon's picture

Joined: 2006-01-10
Posts: 105
Posted: Wed, 2009-07-15 18:45

Just a quick note, the gallery is now fixed, and the pictures are showing.

Thank you for your help, I really appreciate it. The owner of the server fixed it.

John

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2009-07-15 18:53

Perfect. I'll delete your PM to me. Please change your password as I'd feel more comfortable :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
johnlon
johnlon's picture

Joined: 2006-01-10
Posts: 105
Posted: Tue, 2009-07-21 07:45

Hi, I am sorry to bring activate this thread again, but I have been in the maintenance section, and it seems I am getting a lot of errors appearing, plus I cannot use the Upload Applet. The errors appear when you Build Thumbnail Sizes, and other processes as well. I am not sure what that means. I would post the errors but the error page goes on for miles.

Would you still be able to look at the site for me to check for problems?

John

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-07-21 15:35

First try uninstalling GD and just using NetPBM if that's installed and working. Then try rebuilding the thumbs and resizes.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
johnlon
johnlon's picture

Joined: 2006-01-10
Posts: 105
Posted: Tue, 2009-07-21 18:17

Hi, thank you for your message, I have just tried that, and still get a load of errors when rebuilding the thumbnails. :(

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-07-21 18:24

PM me login details and I'll take a look when I get a chance.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
johnlon
johnlon's picture

Joined: 2006-01-10
Posts: 105
Posted: Tue, 2009-07-21 18:34

pm sent, thank you.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2009-07-22 18:42

poking around right now. I think one issue might be Apache on limited resources, but that might be able to be tuned I'll dig up an article or two I've seen.

As for Gallery, can you PM me login details for Gallery?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
johnlon
johnlon's picture

Joined: 2006-01-10
Posts: 105
Posted: Wed, 2009-07-22 19:51

Hi, thank you for letting me know, and thank you for searching for the information for me, that will be a big help.

I will pm you then Gallery details now.

John.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2009-07-22 23:27

Just sent you a PM, but here is a summary for everyone else:

Looks like those files Gallery is complaining about are actually missing files. I searched your entire server, the few I checked are nowhere to be found.

If you click the plus sign for the Rebuild Thumbs and Resizes task in Site Admin > Maintenance you'll see that it too reports 217 files not found. The only other thing I did was install the Integrity plugin and ran that. Site Admin > Maintenance. Hit the plus sign there and get a lot of information about missing files or files in your g2data that are not referenced in the DB, like all the thumbs.db files that XP likes to create.

As for Apache, check this out:
https://www.linode.com/forums/viewtopic.php?t=4340&highlight=apache

As well as this forum:
https://www.linode.com/forums/viewforum.php?f=12
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
johnlon
johnlon's picture

Joined: 2006-01-10
Posts: 105
Posted: Sat, 2009-07-25 17:44

Hi, sorry its taken me so long to get back to you. The pm's you have sent have been really helpful. Thank you.

I have another problem, that I am going to start another thread with.