Upgrading from nightly? - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Update/Upgrade (/forum-44.html) +--- Thread: Upgrading from nightly? (/thread-3087.html) Pages: 1 2 |
Upgrading from nightly? - genesisrage - 04-19-2008 12:30 PM how can you upgrade nightly builds, either from nightly -> nightly or nightly -> RCx... the normal nightly upgrade doesnt effect the daemon or anything, just the gui so its not that productive. im currently using r1067 and would like to just switch to RC4, im in a semi-production environment so i cant just wipe it all out. wondering if this would work: 1) backup mail and web folders 2) drop databases 3) do fresh install of RC4 4) recreate users in gui (only have like 3 of them) 5) then restore the mail and web folder RE: Upgrading from nightly? - BioALIEN - 04-19-2008 01:09 PM I'm also in the same position, althought my nightly build is very close to RC3, so I might attempt a simple RC3 -> RC4 upgrade. For what it's worth, please check out this guide here: http://www.isp-control.net/documentation/start/upgrade/nightly RE: Upgrading from nightly? - genesisrage - 04-19-2008 01:18 PM thats the guide i was talking about, it only updates the gui, not the the daemon or database RE: Upgrading from nightly? - joximu - 04-19-2008 07:54 PM Hi guys the daemon (/var/www/ispcp/daemon) is updated too - but not the config files, not the database, and not the tpl files... So, I add here some line to complete the step (it can be found already somewehere in other posts). First: it's best to keep a copy of the installed ispcp version (eg. th /tmp/ispcp folder is a good idea) so you can compare the database structur for example... If you don't have this, you can make a new one just do the step "make install" this will create the /tmp/ispcp flder with all needed files - keep this old version until the update step is done completely - then keep the new one :-) -> move it out of /tmp ... Ok, there are also other files in the /tmp/ispcp you can copy over the original: /usr/sbin/maillogconvert.pl /etc/init.d/ispcp_* /etc/ispcp/*/parts - you even could copy the whole /etc/ispcp over the original but keep your /etc/ispcp/ispcp.conf in a safe place!!!! and also the files in the /etc/ispcp/*/working/ folders. for the ispcp.conf file you need to compare the "original versions" (see above) what has been added/changed/removed - there are several ways to do that... Also do a compare of the other files in /tmp/ispcp/etc/ (except the parts/*) and update the actual real files (where the {...} placeholders are replaced) manually: /etc/apache2/mods-available/fastcgi_ispcp.conf /etc/apache2/sites-avalilable/00_master.conf + 01_awstats.conf /etc/cron.d/ispcp /etc/logrotate.d/ispcp /etc/courier: in older releases ispcp replaced 5 files here (authdaemonrc, authmodulelist, imapd, pop3d, userdb) - we changed this so you can restore the original files (from the copy of /etc before installing ispcp but after installing all needed packages :-): authdaemonrc, authmodulelist, imapd, pop3d (not the userdb!!!), just change the authdaemonrc so that one line expands to Code: authmodulelist="authuserdb authpam" Maybe there are changes in the bind/named configuration And the database file: as stated above: compare them and update your live db manually. So, with some updates you will get some training... I think it's really a good start if you can see the differences of the old and new /tmp/ispcp/etc/* trees. But I see: it's not a job for people who don't know what the files are meaning... /J RE: Upgrading from nightly? - BioALIEN - 04-19-2008 09:38 PM Thank you for this comprehensive guide joximu, much appreciated. Do you recommend: a) doing a big manual update from r953 to current build or b) play it easy and upgrade from r953 to RC3 (not many changes) then just do carry out a normal upgrade of RC3 -> RC4? RE: Upgrading from nightly? - joximu - 04-19-2008 10:23 PM Hi BioAlien hm... depends on you I can speak for myself: I never did a ispcp-update with the update script... nevertheless I try to update the productive servers (just increased to 5) from RC to RC version - except when there are improvements I need immediately. Since I read about some failures even when using the update-script, I maybe would recommend to do a manual update - a big step. Just make a good backup before... :-) One thing: with RC4 there was introduced a db-update function, eg. DB Revision from 1 to 2 fills the mail_addr field in the mail_user table... (usefull for some tools when they need this field). Sometimes also very helpful: http://www.isp-control.net/ispcp/browser/trunk/ where you can have a look at each file and see the revisions... /J RE: Upgrading from nightly? - genesisrage - 04-20-2008 07:27 AM ran into a snag... i ended up just installing over my nightly... recreated users from the control panel in order (to match their original vu2xxx usernames) web and mail was left in-tact and can access everything fine, but for one thing... FTP Code: root@genesisrage:~# proftpd -n -d 5 Code: root@genesisrage:~# netstat -tulpen | grep :21 RE: Upgrading from nightly? - joximu - 04-20-2008 09:13 AM Maybe an inet daemon is running ans listen on port 21... (the most important thing on the right site is cut of...) RE: Upgrading from nightly? - genesisrage - 04-20-2008 11:19 AM thats the thing... its not inet (ive checked that already because of other posts...) there is no cut off, that was pieced from word-wrap Code: root@genesisrage:~# netstat -tulpen | grep :21 it may be dealing with mysql passwords or something, other posts talk about that. not sure how because i wiped out mysql and had the setup recreate the proftpd.conf file. =edit= well it is proftpd that is listening on 21, i stopped it and ran netstat again and it wasnt there... reran proftpd and it was back... however, when i try to ftp in i get the same error Code: root@genesisrage:~# ftp 72.249.105.137 Code: root@genesisrage:~# proftpd -n -d 5 - mod_ctrls/0.9.4: binding ctrls socket to '/var/run/proftpd/proftpd.sock' i am really stuck now RE: Upgrading from nightly? - joximu - 04-20-2008 08:17 PM ok you can lso use 9 instead of 5 - higher debug level. But I think something with the mysql settings is not ok... /J |