Upgrading dreamhost ps from etch to lenny


#1

Just thought I would post here on how my upgrade will go. I am starting by following this:
http://www.debianadmin.com/howto-upgrade-from-debian-etch-40-to-lenny-50.html

Good luck to myself!


#2

Best of luck! :slight_smile:

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#3

Offhand, here’s the advice I can offer:

  • Install ndn-keyring before you do anything else. It’ll silence a bunch of annoying “unsigned package” warnings.

  • The system logger is switching from syslog-ng to rsyslog.

  • Jabber is switching from jabberd to ejabberd. You will need a significant hunk of memory (>300 MB) to get it to start up the first time.

  • The PHP4 interpreter isn’t available on lenny. Install ndn-php4-compat to create links to the PHP5 interpreter.

  • Most of the stuff that ends up in “obsolete/local packages” (in Aptitude) can be removed once you’ve finished upgrading.

  • If all else fails, Reset PS will get you back into a sane state. Just make sure to back up any files you’ve added outside /home, as resetting your PS will permanently destroy them.


#4

Ah, so much nicer! Why is this not installed by default on all DH machines? In theory it makes the servers more secure anyway.


Use promocode TECHFRIEND and get an additional lifetime domain when you sign up for a new Dreamhost hosting plan!

http://www.technologyisyourfriend.com/web-hosting


#5

So, still following http://www.debianadmin.com/howto-upgrade-from-debian-etch-40-to-lenny-50.html

Step one: new /etc/apt/sources.list

dreamhost ps etch (debian 4 ) sources.list

eb http://debian.di.newdream.net/ etch ndn
deb http://www.ksplice.com/apt etch ksplice
deb http://debian.newdream.net etch main non-free contrib
deb http://www.backports.org/debian/ etch-backports main
deb http://volatile.debian.org/debian-volatile etch/volatile main contrib non-free
deb http://security.debian.org/ etch/updates main
deb http://debian.dc-uoit.net/debian-multimedia/ etch main

change each ‘etch’ to ‘lenny’ like so:

deb http://debian.di.newdream.net/ lenny ndn
deb http://www.ksplice.com/apt lenny ksplice
deb http://debian.newdream.net lenny main non-free contrib
deb http://www.backports.org/debian/ lenny-backports main
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
deb http://security.debian.org/ lenny/updates main
deb http://debian.dc-uoit.net/debian-multimedia/ lenny main

Step 2 - mirror keys:
then run >aptitude update
where you may get the following errors:

W: GPG error: http://debian.di.newdream.net lenny Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 8E4BD8EB613A210F
W: GPG error: http://www.ksplice.com lenny Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY F7CA6265B6D4038E
W: GPG error: http://www.ksplice.com etch Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY F7CA6265B6D4038E
W: GPG error: http://debian.dc-uoit.net lenny Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 07DC563D1F41B907
W: GPG error: http://www.backports.org lenny-backports Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY EA8E8B2116BA136C
W: You may want to run apt-get update to correct these problems

Then ran the following commands, which may have helped a little:

[quote]sudo apt-get install debian-archive-keyring
sudo apt-key update
sudo apt-get install ndn-keyring

[/quote]

For each remaining key that is unauthorized:

[quote]gpg --keyserver hkp://wwwkeys.eu.pgp.net --recv-keys HASH
[/quote]

where HASH is the hexadecimal string after NO_PUBKEY error above followed by

[quote]gpg --armor --export HASH | sudo apt-key add -

[/quote]

Step 3 - run aptitude to start upgrade
Run >sudo aptitude update and there should no longer be any errors

Run >sudo aptitude install apt dpkg aptitude, accept the solution, and say yes to everything else


#6

Well, there was still a lot to say yes to, scarily enough it was almost exclusively the upgrading of config files. I wasn’t sure that it would work, but it rebooted nicely enough and I was able to sign it no problem. Now to see if this thing is functional.


#7

This will be a good Wiki article if you have the energy left over to write it :wink:

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#8

Ha, we’ll see. For the moment somethings are not installing, even though my simple sites seem to be all working.


#9

Questions - the jabber stuff doesn’t work off the bat, no biggie for me in particular.

I think the ndn-web, ndn-everywhere, and man-db are not updating because of the rsyslog change. Any advice?


#10

Jabber may need a config. Try resetting the password on a Jabber user from the panel and see if that fixes it?

As to the latter, I’d be interested in seeing for myself. What’s your PS’s name?


#11

About ndn-* packages… Is it required?

P.S. Sorry for my bad english


#12

I followed all directions in this thread on the PS server, and I’m running in to a problem – apparently the “ndn-megacli” service cannot be shut down (?):

Preparing to replace ndn-megacli 1.0-6 (using …/ndn-megacli_4.00.11-3_amd64.deb) …
I’ll never stop!
invoke-rc.d: initscript ndn-megacli, action “stop” failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead …
I’ll never stop!
invoke-rc.d: initscript ndn-megacli, action “stop” failed.
dpkg: error processing /var/cache/apt/archives/ndn-megacli_4.00.11-3_amd64.deb (–unpack):
subprocess new pre-removal script returned error exit status 1
update-rc.d: warning: /etc/init.d/ndn-megacli missing LSB information
update-rc.d: see http://wiki.debian.org/LSBInitScripts
Fatal error - Command Tool invoked with wrong parameters
Exit Code: 0x01
Selecting previously deselected package ndn-everywhere.
Unpacking ndn-everywhere (from …/ndn-everywhere_1.0-97.19_amd64.deb) …
Selecting previously deselected package ndn-web.
Unpacking ndn-web (from …/ndn-web_1.0-94.12_amd64.deb) …
Processing triggers for man-db …
Errors were encountered while processing:
/var/cache/apt/archives/ndn-megacli_4.00.11-3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
[ps19972]$ /etc/init.d/ndn-megacli stop
I’ll never stop!

I’m not sure what this service is, but I think maybe it has something to do with RAID management base on Google searches.

Anyone have any idea how to get around this problem so that my upgrade can proceed and I can get a Lenny system working?

Best regards,
Brian Maso


#13

ndn-megacli doesn’t need to be installed on DreamHost PS guests, actually — it’s a set of RAID management tools that got installed on the guest image by mistake. Unfortunately, it’s currently marked as a dependency of some of our core metapackages, so it (and its buggy init script) are unavoidable — but here’s how to fix it:

rm -f /etc/init.d/ndn-megacli dpkg -P --force-all ndn-megacli apt-get install ndn-megacli

We plan on making tools available in the near future to automate the Etch-to-Lenny upgrade process.


#14

haha this totaly screwed my server.
Perl crashed.
suggestions?


#15

Write in to Support, make a note that you’d like me (Andrew F) to take a look at it, and I’ll see what happened.


#16

Hello,
any news on the tools to automate the Etch-to-Lenny upgrade process? :slight_smile:

Thanks!


#17

They’re finished and available internally. Write in to Support requesting to be upgraded to Lenny if you’re interested.