|
||||||||||
|
|
Ensim cannot exit post maintenance modeJune 27, 2009 on 6:12 pm | In ensim | No CommentsThe error Maintenance State is : 4 Upgrading complete, 1 domains skipped If the start up shows that it has skipped any domains, it is sure that the services are not going to start. The first thing to do is to take a new shell and tail the contents of /var/log/appliance/ensim_appliance.log or /var/log/messages tail -f /var/log/appliance/ensim_appliance.log In another shell restart epld. /etc/init.d/epld restart This will give your the exact error in the other shell. The error which I received was =============== Jun 27 06:35:46 ensim [13222]: UpgradeActiveVirtDomains: upgrading site76 =============== Fix which I applied was just a try ================ added the entry given below (the name myonlytest is just any word) then copied mysql file from another site which is working fine I edited the contents as ————— ================ Restarted epld. That fixed the issue. Failed to add site to database. DBERR: error ‘ERROR: duplicate key violates unique constraint “domain_key” ‘ in ‘ INSERT INTO siteinfo ENSIMMarch 6, 2009 on 9:30 am | In Pgsql, ensim | 3 CommentsHello guys, You might have come accross the following error Failed to add site to database. DBERR: error ‘ERROR: duplicate key violates unique constraint “domain_key” ‘ in ‘ INSERT INTO siteinfo (site_id, domain, admin_user, email) VALUES (8, ‘domain.com’, ‘xxxx’, ‘xxx@domain.com’)’ ========================= Here is the fix. Login to server via backend. su postgres Take a backup of the database… pg_dump appldb > appldb.dump.out Now lets edit psql postgres=# \l this will list all the databases. The Ensim database is “appldb” postgres=# \c appldb This will list all the tables in the database. You can find the database siteinfo appldb=# SELECT * FROM siteinfo WHERE domain=’domain.com’; site_id | domain | email | admin_user DELETE FROM siteinfo WHERE site_id=35; Now quit the database appldb=# \q bash-3.00$ exit Restart services /etc/rc.d/init.d/virtualhosting restart /etc/rc.d/init.d/epld restart Now try to add the domain from Control panel. |
![]() Powered and designed by Presoon.com. |