ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   General technical discussion (http://forum.ispsystem.com//forumdisplay.php?f=8)
-   -   Usermove fails (http://forum.ispsystem.com//showthread.php?t=956)

Helmi 03-22-2010 08:36 AM

Usermove fails
 
Hi,

i'm trying to move a user from one ISP Mgr server to the other (both version 4.3.38). I tried all three methods but unfortunately all i get is this error:

Code:

2010-03-22 Domain set error: Remote service ispmgr return error. Code 100
2010-03-22 "Module restoring" failed: can't read file '/var/www/cindy/data/domain.xml'
2010-03-22 "Module restoring" failed: can't read file '/var/www/cindy/data/emaildomain.xml'
2010-03-22 "Module restoring" failed: can't read file '/var/www/cindy/data/emailgroup.xml'
2010-03-22 "Module restoring" failed: can't read file '/var/www/cindy/data/emailredirect.xml'
2010-03-22 "Module restoring" failed: can't read file '/var/www/cindy/data/email.xml'
2010-03-22 Domain set error: Remote service ispmgr return error. Code 100
2010-03-22 "Module restoring" failed: can't read file '/var/www/cindy/data/domain.xml'
2010-03-22 Domain set error: Remote service ispmgr return error. Code 100
2010-03-22 "Module restoring" failed: can't read file '/var/www/cindy/data/domain.xml'

Both server are running the same isp mgr version. The source server runs Debian Lenny, the new server cloudlinux (based on Cent OS).

Anything i can do to avoid this error?

Thanks for helping.

vian 03-23-2010 05:41 AM

Quote:

Originally Posted by Helmi (Post 4088)
Hi,

i'm trying to move a user from one ISP Mgr server to the other (both version 4.3.38). I tried all three methods but unfortunately all i get is this error:

Code:

2010-03-22 Domain set error: Remote service ispmgr return error. Code 100
2010-03-22 "Module restoring" failed: can't read file '/var/www/cindy/data/domain.xml'
2010-03-22 "Module restoring" failed: can't read file '/var/www/cindy/data/emaildomain.xml'
2010-03-22 "Module restoring" failed: can't read file '/var/www/cindy/data/emailgroup.xml'
2010-03-22 "Module restoring" failed: can't read file '/var/www/cindy/data/emailredirect.xml'
2010-03-22 "Module restoring" failed: can't read file '/var/www/cindy/data/email.xml'
2010-03-22 Domain set error: Remote service ispmgr return error. Code 100
2010-03-22 "Module restoring" failed: can't read file '/var/www/cindy/data/domain.xml'
2010-03-22 Domain set error: Remote service ispmgr return error. Code 100
2010-03-22 "Module restoring" failed: can't read file '/var/www/cindy/data/domain.xml'

Both server are running the same isp mgr version. The source server runs Debian Lenny, the new server cloudlinux (based on Cent OS).

Anything i can do to avoid this error?

Thanks for helping.

Hello. It seems you can't autorized on the remote host. Please check your autorization data (login and password).

Helmi 03-23-2010 01:54 PM

That's definitely not the problem. I can use the same data ssh'ing into the machine and also login into isp manager on the remote server. it's the root users login so it shouldn't be a problem with persmissions also.

Helmi 03-23-2010 01:56 PM

i have to add: The user get's importet correctly but the www domains and email domains don't. So the login is definitely correct.

Helmi 03-24-2010 03:11 PM

anyone with another idea what the problem could be?

Helmi 03-26-2010 10:42 AM

i tried another move from yet another Server and after some minutes of packaging on the source server everything failed again and i got this error

Code:

2010-03-26 Domain set error: Remote service ispmgr return error. Code 100
2010-03-26 "Module restoring" failed: can't read file '/var/www/nkalchschm/data/domain.xml'


vian 03-27-2010 09:07 AM

Quote:

Originally Posted by Helmi (Post 4104)
i tried another move from yet another Server and after some minutes of packaging on the source server everything failed again and i got this error

Code:

2010-03-26 Domain set error: Remote service ispmgr return error. Code 100
2010-03-26 "Module restoring" failed: can't read file '/var/www/nkalchschm/data/domain.xml'


Please provide me with part of log file "/usr/local/ispmgr/var/UserMove.log"

Helmi 03-27-2010 09:41 AM

I didn't know about that log file until now - will retry the transfer and watch the log file - will come back with more information later.

Helmi 03-27-2010 10:11 AM

i found this problem:

Code:

Mar 27 08:30:20 [ 4441] ../../src/mgr/libmgr/rpc.cpp:294  RPC request to 'ispmgr' 'https://$myhostname/manager/ispmgr?out=xml&auth=66207258&func=domain.slave'
Mar 27 08:30:20 [ 4441] ../../src/mgr/libmgr/rpc.cpp:299  Received result '<?xml version="1.0" encoding="UTF-8"?>
<doc><error code="100">Invalid action domain.slave</error></doc>
'
Mar 27 08:30:20 [ 4441] WARNING Domain set error: Remote service ispmgr return error. Code 100
Mar 27 08:30:24 [ 4441] INFO Fetch command(/usr/bin/wget --timeout=100000 --tries=1 -q -O- --no-check-certificate "https://$myhostname/mancgi/getuser?user=cindy&auth=66207258" > /tmp/getuser.tar.gz)

replaced the hostname with $myhostname

vian 03-28-2010 07:19 AM

Quote:

Originally Posted by Helmi (Post 4110)
i found this problem:

Code:

Mar 27 08:30:20 [ 4441] ../../src/mgr/libmgr/rpc.cpp:294  RPC request to 'ispmgr' 'https://$myhostname/manager/ispmgr?out=xml&auth=66207258&func=domain.slave'
Mar 27 08:30:20 [ 4441] ../../src/mgr/libmgr/rpc.cpp:299  Received result '<?xml version="1.0" encoding="UTF-8"?>
<doc><error code="100">Invalid action domain.slave</error></doc>
'
Mar 27 08:30:20 [ 4441] WARNING Domain set error: Remote service ispmgr return error. Code 100
Mar 27 08:30:24 [ 4441] INFO Fetch command(/usr/bin/wget --timeout=100000 --tries=1 -q -O- --no-check-certificate "https://$myhostname/mancgi/getuser?user=cindy&auth=66207258" > /tmp/getuser.tar.gz)

replaced the hostname with $myhostname


Give me all session log. (from the start of moving to the end)

Helmi 03-28-2010 10:49 AM

Here's a new one with the complete session:

Code:

Mar 28 09:40:06 [    0] INFO Lookup log level for '/usr/local/ispmgr/var/UserMove.log' in '/usr/local/ispmgr/etc/UserMove.debug'
Mar 28 09:40:06 [21202] INFO /usr/local/ispmgr/sbin/usermove lock
Mar 28 09:40:06 [21202] INFO Target: import
Mar 28 09:40:06 [21202] INFO User: nkalchschm
Mar 28 09:40:06 [21202] INFO HomeDir: /
Mar 28 09:40:06 [21202] ../../src/mgr/libmgr/rpc.cpp:294  RPC request to 'ispmgr' 'https://$myhostname/manager/ispmgr?func=user.edit&out=xml&elid=nkalchschm&needhash=yes&auth=1388158067'
Mar 28 09:40:06 [21202] ../../src/mgr/libmgr/rpc.cpp:299  Received result '<?xml version="1.0" encoding="UTF-8"?>
<doc><elid>nkalchschm</elid><name>nkalchschm</name><shell>on</shell><email>$myemail</email><note/><domain>pimp-nails.de</domain><ip>$myip</ip><preset>custom</preset><owner>root</owner><ssl>on</ssl><phpmod>on</phpmod><phpcgi>on</phpcgi><phpfcgi>on</phpfcgi><ssi>on</ssi><cgi>on</cgi><bandwidthlimit>100000000</bandwidthlimit><baselimit>10000</baselimit><baseuserlimit>10000</baseuserlimit><cpulimit>0</cpulimit><ftplimit>10000</ftplimit><maildomainlimit>10000</maildomainlimit><maillimit>10000</maillimit><memlimit>0</memlimit><proclimit>0</proclimit><webdomainlimit>10000</webdomainlimit><hash>$1$GbCifdV7$JJw0J1l9TXwlQAALdEOza1</hash><email>$myemail</email></doc>
'
Mar 28 09:40:07 [21202] ../../src/mgr/libmgr/rpc.cpp:294  RPC request to 'ispmgr' 'https://$myhostname/manager/ispmgr?out=xml&auth=1388158067&func=domain.slave'
Mar 28 09:40:07 [21202] ../../src/mgr/libmgr/rpc.cpp:299  Received result '<?xml version="1.0" encoding="UTF-8"?>
<doc><error code="100">Invalid action domain.slave</error></doc>
'
Mar 28 09:40:07 [21202] WARNING Domain set error: Remote service ispmgr return error. Code 100
Mar 28 09:40:07 [21202] INFO Fetch command(/usr/bin/wget --timeout=100000 --tries=1 -q -O- --no-check-certificate "https://$myhostname/mancgi/getuser?user=nkalchschm&auth=1388158067" > /tmp/getuser.tar.gz)
Mar 28 09:41:46 [21202] ../../src/mgr/libmgr/rpc.cpp:294  RPC request to 'ispmgr' 'https://v07.kommuniserv.de/manager/ispmgr?out=xml&func=keepalive&auth=1388158067'
Mar 28 09:41:46 [21202] ../../src/mgr/libmgr/rpc.cpp:299  Received result '<?xml version="1.0" encoding="UTF-8"?>
<doc><redirect> </redirect></doc>
'
Mar 28 09:43:12 [21202] EXTINFO Execute (/usr/bin/wget --timeout=100000 --tries=1 -q -O- --no-check-certificate "https://$myhost/mancgi/getuser?user=nkalchschm&auth=1388158067" > /tmp/getuser.tar.gz) return=0 exited
Mar 28 09:43:12 [21202] INFO Extract user data...
Mar 28 09:43:21 [21202] EXTINFO Execute (tar -zxpf /tmp/getuser.tar.gz -C /var/www/nkalchschm/data/) return=0 exited
Mar 28 09:43:21 [21202] INFO Changing the permissions to uid: 502 gid: 504
Mar 28 09:43:28 [21202] EXTINFO Execute (tar -ztf /tmp/getuser.tar.gz) return=0 exited

...followed by the big list of files including php session files and then way down this:

Code:

Mar 28 09:43:32 [21202] WARNING Can't detect postgresql server name
Mar 28 09:43:32 [21202] INFO Running restoring
Mar 28 09:43:32 [21202] INFO ...mgrdata
Mar 28 09:43:32 [21202] INFO Restoring ISPmanager configuration domain from file /var/www/nkalchschm/data/domain.xml
Mar 28 09:43:32 [21202] WARNING "Module restoring" failed: can't read file '/var/www/nkalchschm/data/domain.xml'
Mar 28 09:43:32 [21202] INFO Restoring ISPmanager configuration wwwdomain from file /var/www/nkalchschm/data/pbkp_wwwdomain.xml
Mar 28 09:43:32 [21202] INFO Restarting apache...
Mar 28 09:43:32 [21202] INFO Restoring ISPmanager configuration wwwredirect from file /var/www/nkalchschm/data/pbkp_wwwredirect.xml
Mar 28 09:43:33 [21202] INFO Restarting apache...
Mar 28 09:43:33 [21202] INFO Restoring ISPmanager configuration emaildomain from file /var/www/nkalchschm/data/pbkp_emaildomain.xml
Mar 28 09:43:34 [21202] INFO Restoring ISPmanager configuration emailgroup from file /var/www/nkalchschm/data/pbkp_emailgroup.xml
Mar 28 09:43:34 [21202] INFO Restoring ISPmanager configuration emailredirect from file /var/www/nkalchschm/data/pbkp_emailredirect.xml
Mar 28 09:43:34 [21202] INFO Restoring ISPmanager configuration email from file /var/www/nkalchschm/data/pbkp_email.xml
Mar 28 09:43:34 [21202] INFO Restoring ISPmanager configuration db from file /var/www/nkalchschm/data/pbkp_db.xml
Mar 28 09:43:34 [21202] INFO Restoring ISPmanager configuration cron from file /var/www/nkalchschm/data/pbkp_cron.xml
Mar 28 09:43:34 [21202] INFO Restoring ISPmanager configuration ftp from file /var/www/nkalchschm/data/pbkp_ftp.xml
Mar 28 09:43:34 [21202] INFO ...email
Mar 28 09:43:34 [21202] INFO ...file
Mar 28 09:43:34 [21202] INFO ...mysql
Mar 28 09:43:34 [21202] INFO ...zones
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_wwwdomain.xml
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_wwwredirect.xml
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_emaildomain.xml
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_emailgroup.xml
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_emailredirect.xml
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_email.xml
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_db.xml
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_cron.xml
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_ftp.xml
Mar 28 09:43:34 [21202] INFO Finish successful

What looks successful here leeds to the domains not added to isp manager and the usual error in isp manager (the one from above).

It looks like all data is in place but the database didn't get created and imported and the domain didn't get setup in isp manager.

vian 03-29-2010 07:04 AM

Quote:

Originally Posted by Helmi (Post 4115)
Here's a new one with the complete session:

Code:

Mar 28 09:40:06 [    0] INFO Lookup log level for '/usr/local/ispmgr/var/UserMove.log' in '/usr/local/ispmgr/etc/UserMove.debug'
Mar 28 09:40:06 [21202] INFO /usr/local/ispmgr/sbin/usermove lock
Mar 28 09:40:06 [21202] INFO Target: import
Mar 28 09:40:06 [21202] INFO User: nkalchschm
Mar 28 09:40:06 [21202] INFO HomeDir: /
Mar 28 09:40:06 [21202] ../../src/mgr/libmgr/rpc.cpp:294  RPC request to 'ispmgr' 'https://$myhostname/manager/ispmgr?func=user.edit&out=xml&elid=nkalchschm&needhash=yes&auth=1388158067'
Mar 28 09:40:06 [21202] ../../src/mgr/libmgr/rpc.cpp:299  Received result '<?xml version="1.0" encoding="UTF-8"?>
<doc><elid>nkalchschm</elid><name>nkalchschm</name><shell>on</shell><email>$myemail</email><note/><domain>pimp-nails.de</domain><ip>$myip</ip><preset>custom</preset><owner>root</owner><ssl>on</ssl><phpmod>on</phpmod><phpcgi>on</phpcgi><phpfcgi>on</phpfcgi><ssi>on</ssi><cgi>on</cgi><bandwidthlimit>100000000</bandwidthlimit><baselimit>10000</baselimit><baseuserlimit>10000</baseuserlimit><cpulimit>0</cpulimit><ftplimit>10000</ftplimit><maildomainlimit>10000</maildomainlimit><maillimit>10000</maillimit><memlimit>0</memlimit><proclimit>0</proclimit><webdomainlimit>10000</webdomainlimit><hash>$1$GbCifdV7$JJw0J1l9TXwlQAALdEOza1</hash><email>$myemail</email></doc>
'
Mar 28 09:40:07 [21202] ../../src/mgr/libmgr/rpc.cpp:294  RPC request to 'ispmgr' 'https://$myhostname/manager/ispmgr?out=xml&auth=1388158067&func=domain.slave'
Mar 28 09:40:07 [21202] ../../src/mgr/libmgr/rpc.cpp:299  Received result '<?xml version="1.0" encoding="UTF-8"?>
<doc><error code="100">Invalid action domain.slave</error></doc>
'
Mar 28 09:40:07 [21202] WARNING Domain set error: Remote service ispmgr return error. Code 100
Mar 28 09:40:07 [21202] INFO Fetch command(/usr/bin/wget --timeout=100000 --tries=1 -q -O- --no-check-certificate "https://$myhostname/mancgi/getuser?user=nkalchschm&auth=1388158067" > /tmp/getuser.tar.gz)
Mar 28 09:41:46 [21202] ../../src/mgr/libmgr/rpc.cpp:294  RPC request to 'ispmgr' 'https://v07.kommuniserv.de/manager/ispmgr?out=xml&func=keepalive&auth=1388158067'
Mar 28 09:41:46 [21202] ../../src/mgr/libmgr/rpc.cpp:299  Received result '<?xml version="1.0" encoding="UTF-8"?>
<doc><redirect> </redirect></doc>
'
Mar 28 09:43:12 [21202] EXTINFO Execute (/usr/bin/wget --timeout=100000 --tries=1 -q -O- --no-check-certificate "https://$myhost/mancgi/getuser?user=nkalchschm&auth=1388158067" > /tmp/getuser.tar.gz) return=0 exited
Mar 28 09:43:12 [21202] INFO Extract user data...
Mar 28 09:43:21 [21202] EXTINFO Execute (tar -zxpf /tmp/getuser.tar.gz -C /var/www/nkalchschm/data/) return=0 exited
Mar 28 09:43:21 [21202] INFO Changing the permissions to uid: 502 gid: 504
Mar 28 09:43:28 [21202] EXTINFO Execute (tar -ztf /tmp/getuser.tar.gz) return=0 exited

...followed by the big list of files including php session files and then way down this:

Code:

Mar 28 09:43:32 [21202] WARNING Can't detect postgresql server name
Mar 28 09:43:32 [21202] INFO Running restoring
Mar 28 09:43:32 [21202] INFO ...mgrdata
Mar 28 09:43:32 [21202] INFO Restoring ISPmanager configuration domain from file /var/www/nkalchschm/data/domain.xml
Mar 28 09:43:32 [21202] WARNING "Module restoring" failed: can't read file '/var/www/nkalchschm/data/domain.xml'
Mar 28 09:43:32 [21202] INFO Restoring ISPmanager configuration wwwdomain from file /var/www/nkalchschm/data/pbkp_wwwdomain.xml
Mar 28 09:43:32 [21202] INFO Restarting apache...
Mar 28 09:43:32 [21202] INFO Restoring ISPmanager configuration wwwredirect from file /var/www/nkalchschm/data/pbkp_wwwredirect.xml
Mar 28 09:43:33 [21202] INFO Restarting apache...
Mar 28 09:43:33 [21202] INFO Restoring ISPmanager configuration emaildomain from file /var/www/nkalchschm/data/pbkp_emaildomain.xml
Mar 28 09:43:34 [21202] INFO Restoring ISPmanager configuration emailgroup from file /var/www/nkalchschm/data/pbkp_emailgroup.xml
Mar 28 09:43:34 [21202] INFO Restoring ISPmanager configuration emailredirect from file /var/www/nkalchschm/data/pbkp_emailredirect.xml
Mar 28 09:43:34 [21202] INFO Restoring ISPmanager configuration email from file /var/www/nkalchschm/data/pbkp_email.xml
Mar 28 09:43:34 [21202] INFO Restoring ISPmanager configuration db from file /var/www/nkalchschm/data/pbkp_db.xml
Mar 28 09:43:34 [21202] INFO Restoring ISPmanager configuration cron from file /var/www/nkalchschm/data/pbkp_cron.xml
Mar 28 09:43:34 [21202] INFO Restoring ISPmanager configuration ftp from file /var/www/nkalchschm/data/pbkp_ftp.xml
Mar 28 09:43:34 [21202] INFO ...email
Mar 28 09:43:34 [21202] INFO ...file
Mar 28 09:43:34 [21202] INFO ...mysql
Mar 28 09:43:34 [21202] INFO ...zones
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_wwwdomain.xml
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_wwwredirect.xml
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_emaildomain.xml
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_emailgroup.xml
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_emailredirect.xml
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_email.xml
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_db.xml
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_cron.xml
Mar 28 09:43:34 [21202] INFO Deleting /var/www/nkalchschm/data/pbkp_ftp.xml
Mar 28 09:43:34 [21202] INFO Finish successful

What looks successful here leeds to the domains not added to isp manager and the usual error in isp manager (the one from above).

It looks like all data is in place but the database didn't get created and imported and the domain didn't get setup in isp manager.

The databases have not been imported due to the names of MySQL servers differ (on source and target servers).
Next week we plan to release renewed usermove we we got rid of such a problem.

Helmi 03-29-2010 09:38 AM

The name of the servers differ? They should both be "localhost" as the databases of both servers are on the same machine as the rest.

vian 03-30-2010 04:10 AM

Quote:

Originally Posted by Helmi (Post 4122)
The name of the servers differ? They should both be "localhost" as the databases of both servers are on the same machine as the rest.

I've answerd your private message.

Helmi 03-30-2010 08:49 AM

unfortunately not. I did not receive a private message.

vian 03-30-2010 09:29 AM

Quote:

Originally Posted by Helmi (Post 4129)
unfortunately not. I did not receive a private message.

it's hard to say what have happened. I advice you to give me an access to both servers and i'll figura the problem out.

Helmi 03-30-2010 09:35 AM

As the problem appears on all servers that i have tried do you really think it depends on the servers and it helps when i give you access to two of them?

But we can try.

vian 04-01-2010 04:39 AM

Quote:

Originally Posted by Helmi (Post 4131)
As the problem appears on all servers that i have tried do you really think it depends on the servers and it helps when i give you access to two of them?

But we can try.

If the migration process is not necessary right now you can wait about a week. We are planning to release a renewed usermove next week.

vian 04-02-2010 11:34 AM

Quote:

Originally Posted by Helmi (Post 4131)
As the problem appears on all servers that i have tried do you really think it depends on the servers and it helps when i give you access to two of them?

But we can try.

Yes, I think so. It'll be easier for you to give me the access instead of being asked several times to do this or to show that.


All times are GMT +2. The time now is 01:22 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.