PDA

View Full Version : trouble relocating site


chriz
2nd of December 2004 (Thu), 07:53
I'm having a bit of trouble relocating my site and databases to another server.
This is the site: www.photoevents.nu
exhibition engine is installed under the subdomain ee.photoevents.nu
I use PLESK to administer my site and i have root access

This is what I get after running ftp test:
The first series of uploads and deletes work



FTP SERVER NAME: EE PROGRAM SERVER
FTP SERVER: ftp.photoevents.nu
CONNECTION (ftp address): OK
LOGIN (username and password): OK
SET PASSIVE MODE: OK
PWD: /
CHANGE DIRECTORY TO '/subdomains/ee/': OK
CREATE DIRECTORY 'ee_ftp_test_directory_creation': OK
CHANGE DIRECTORY TO '/subdomains/ee//ee_ftp_test_directory_creation': OK
CHANGE DIRECTORY TO '/subdomains/ee/': OK
DIRECTORY 'ee_ftp_test_directory_creation' REMOVAL: OK
UPLOAD TEST IMAGE 'ee_test0.jpg': OK
GET 'ee_test0.jpg' SIZE: OK
GET 'ee_test0.jpg' MODIFIED DATA: OK
UPLOAD TEST IMAGE 'ee_test1.jpg': OK
GET 'ee_test1.jpg' SIZE: OK
GET 'ee_test1.jpg' MODIFIED DATA: OK
UPLOAD TEST IMAGE 'ee_test2.jpg': OK
GET 'ee_test2.jpg' SIZE: OK
GET 'ee_test2.jpg' MODIFIED DATA: OK
UPLOAD TEST IMAGE 'ee_test3.jpg': OK
GET 'ee_test3.jpg' SIZE: OK
GET 'ee_test3.jpg' MODIFIED DATA: OK
UPLOAD TEST IMAGE 'ee_test4.jpg': OK
GET 'ee_test4.jpg' SIZE: OK
GET 'ee_test4.jpg' MODIFIED DATA: OK
DELETE REMOTE TEST IMAGE 'ee_test0.jpg': OK
DELETE REMOTE TEST IMAGE 'ee_test1.jpg': OK
DELETE REMOTE TEST IMAGE 'ee_test2.jpg': OK
DELETE REMOTE TEST IMAGE 'ee_test3.jpg': OK
DELETE REMOTE TEST IMAGE 'ee_test4.jpg': OK
CHECK IF EE HOME DIRECTORY: FAILED Reason: ftp_chdir(): /subdomains/ee//outputstyles: No such file or directory
DISCONNECTION FROM SERVER (close): OK



EXTRA: FILESIZE RETRIEVAL BATCH TEST

Temp file is ./temp/100000.jpg (size 100000 bytes)
Uploading to server 'ftp.photoevents.nu', path '/subdomains/ee/': OK
Downloading (1): OK
LOCAL DELETE OK
Downloading (2): OK
LOCAL DELETE OK
Downloading (3): OK
LOCAL DELETE OK
Downloading (4): OK
LOCAL DELETE OK
Downloading (5): OK
LOCAL DELETE OK
REMOTE DELETE OK

Temp file is ./temp/50000.jpg (size 50000 bytes)
Uploading to server 'ftp.photoevents.nu', path '/subdomains/ee/': OK
Downloading (1): OK
LOCAL DELETE OK
Downloading (2): OK
LOCAL DELETE OK
Downloading (3): OK
LOCAL DELETE OK
Downloading (4): OK
LOCAL DELETE OK
Downloading (5): OK
LOCAL DELETE OK
REMOTE DELETE OK

Temp file is ./temp/25000.jpg (size 25000 bytes)
Uploading to server 'ftp.photoevents.nu', path '/subdomains/ee/': OK
Downloading (1): OK
LOCAL DELETE OK
Downloading (2): OK
LOCAL DELETE OK
Downloading (3): OK
LOCAL DELETE OK
Downloading (4): OK
LOCAL DELETE OK
Downloading (5): OK
LOCAL DELETE OK
REMOTE DELETE OK

Temp file is ./temp/10000.jpg (size 10000 bytes)
Uploading to server 'ftp.photoevents.nu', path '/subdomains/ee/': OK
Downloading (1): OK
LOCAL DELETE OK
Downloading (2): OK
LOCAL DELETE OK
Downloading (3): OK
LOCAL DELETE OK
Downloading (4): OK
LOCAL DELETE OK
Downloading (5): OK
LOCAL DELETE OK
REMOTE DELETE OK

Temp file is ./temp/5000.jpg (size 5000 bytes)
Uploading to server 'ftp.photoevents.nu', path '/subdomains/ee/': FAILED
Downloading (1):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
Downloading (2):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
Downloading (3):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
Downloading (4):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
Downloading (5):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
REMOTE DELETE FAILED

Temp file is ./temp/1000.jpg (size 1000 bytes)
Uploading to server 'ftp.photoevents.nu', path '/subdomains/ee/':
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048
FAILED
Downloading (1):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
Downloading (2):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
Downloading (3):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
Downloading (4):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
Downloading (5):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
REMOTE DELETE FAILED

Temp file is ./temp/500.jpg (size 500 bytes)
Uploading to server 'ftp.photoevents.nu', path '/subdomains/ee/':
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048
FAILED
Downloading (1):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
Downloading (2):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
Downloading (3):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
Downloading (4):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
Downloading (5):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
REMOTE DELETE FAILED

Temp file is ./temp/100.jpg (size 100 bytes)
Uploading to server 'ftp.photoevents.nu', path '/subdomains/ee/':
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048
FAILED
Downloading (1):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
Downloading (2):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
Downloading (3):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
Downloading (4):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
Downloading (5):
Warning: ftp_connect(): php_hostconnect: connect failed in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/fetchsettings.php on line 2048

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/invoer/FTP_sizetest_php.php on line 42
FAILED
REMOTE DELETE FAILED

chriz
2nd of December 2004 (Thu), 08:22
This is what I get when clicking on thumbnail

Image not found


The image you requested has either been removed or tagged as hidden by exhibition owner.

Press back button on your browser and refresh that page for up-to-date image list.

IF YOU KEEP COMING TO THIS PAGE, PLEASE USE Exhibition browser to select from currently available images, or select another exhibition from front page.

Thank you.

Pekka
2nd of December 2004 (Thu), 08:26
CHECK IF EE HOME DIRECTORY: FAILED Reason: ftp_chdir(): /subdomains/ee//outputstyles: No such file or directory

This means ftp path to EE root is not correct. The only way to make sure what it really is is to browser to that folder with ftp client and give PWD command.

Warning: ftp_connect(): php_hostconnect: connect failed in

This is the reason for all subsquent errors because you can't really do anything if you are not logged in. Why the connect failed may be this: perhaps your ftp server is set to accept only one connect at a time and it "releases" closed connections slowly which means EE is too fast for it. Simple remedy is to change ftp settings to accept e.g. 5 simultaneous user sessions for each login. If the ftp server is shared on virtual environment then there is always a settings for maximum number of all logins allowed. On my servers I use ProFTPD ftp server and with that its default settings work ok. Look for settings like

"Maximum concurrent logins"
"Maximum concurrent logins per host"
"MaxInstances"

Try also the EE's "Internal FTP" setting. It uses my own functions which may be more robust that what PHP offers. It alse shows full responses from ftp server on ftp messages window which make troubleshooting much easier.

chriz
2nd of December 2004 (Thu), 08:52
With EE internal FTP the errors go away.

But check this (if you will :) )
http://ee.photoevents.nu/photo.php?photo=9190&exhibition=96&pass=public&siz e=default&lang=nla

and this is the error

Image not found


The image you requested has either been removed or tagged as hidden by exhibition owner.

Press back button on your browser and refresh that page for up-to-date image list.

IF YOU KEEP COMING TO THIS PAGE, PLEASE USE Exhibition browser to select from currently available images, or select another exhibition from front page.

Thank you.

chriz
2nd of December 2004 (Thu), 09:04
server: ftp.photoevents.nu
port: 21
errno: 111
errstr: Connection refused
timeout: 30

could this be a permission problem

I actually copied the whole site including albums (more than 1GB) directly from the old server to the new.
I used midnight commander with photoevents.nu in the left pane and een ftp link to the old site in the right pane.

The UID should be photoevents I guess ?
And the group is now set to psaserv

Chriz

chriz
2nd of December 2004 (Thu), 09:53
The ftp setup is now working fine (using internal ftp)
Everything seems to work fine, exept that when clicking on any thumbnail I get:

Image not found
The image you requested has either been removed or tagged as hidden by exhibition owner.
Press back button on your browser and refresh that page for up-to-date image list.
IF YOU KEEP COMING TO THIS PAGE, PLEASE USE Exhibition browser to select from currently available images, or select another exhibition from front page.
Thank you.


and following errors

Notice: Undefined variable: uncookied_foochar in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/photo.php on line 204

Notice: Undefined variable: uncookied_splitter in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/photo.php on line 205

Warning: explode(): Empty delimiter. in /home/httpd/vhosts/photoevents.nu/subdomains/ee/httpdocs/photo.php on line 205


Looking at the error I wonder if the paths are stored on an image by image basis. The solution would then be to update all records with the new path info

Chriz

Pekka
2nd of December 2004 (Thu), 11:32
Are you sure that you have updated the EE on the new server to exactly the same version as the old one, and that the database dump is latest one?

Go to editor and server info and save uncookied data once with a DIFFERENT uncookied splitter character. See if that saves ok.

Then purge uncookied data.

PM me your server access info so I can go and fix whatever problems there are. I'm not sure how the transfer has been done (mysqldump or EE Backup, gzip with permissions on not, etc.).

Looking at the error I wonder if the paths are stored on an image by image basis. The solution would then be to update all records with the new path info

The image path errors does not cause anything else that image file not shown (red X). If you kept the domain name same you should not have to change any paths.

chriz
2nd of December 2004 (Thu), 12:26
I copied the whole site from root (putty) directly between the two servers.
I then created a new database (different name)
From the putty terminal I copied an earlier database in the folder of the new one.
Now I logged in to input folder, choose backup, backup from file (which is 63Mb!).

I saved uncookied data with a splitter character (the field was empty)
After saving the field is empty again.

Purged uncookied data

Problem persists

PM send 8)

Pekka
2nd of December 2004 (Thu), 16:32
I fixed the "Image not found" problem. It was a mismatched workflow id on photos vs. workflows used. I downloaded all your dumps so I can check before/after situation tomorrow on my own server. I found one small bug in analyze/repair in this area (it defaulted broken workflow relations to id 1 instead of id 3), so if you ran analyze/repair after the transfer that may have been the cause (but that would have required that dumps workflow id's in photos were wrong related to the workflow table in the first place, odd).

If you still have problems with the ftp I'll check them also tomorrow.