2.0RC1, installing syslog-ng kills the server

Deacon

New Member
Apr 20, 2010
7
0
1
Just for fun, I installed a centralized syslog server, then I did an apt-get syslog-ng to install syslog-ng on the VE server itself. It was late, and I wasn't paying close attention, so it automagically removed 15+ packages (most of which was the VE stuff) and it borked the box.

Trying to re-install the uninstalled packages allows some of the uninstalled packages to be reinstalled, but the one that refuses to be reinstalled in vzctl. Obviously, that one is kinda important. The crappy thing is that I should have caught it, but just trying hard to understand why all the VM stuff would be removed by a simple syslog-ng package?!?

Ergh. The box is still running, but I'm unable to backup any of the VMs that are on the box or currently running. Ergh.

When I try to install, I get this:

Code:
The following packages have unmet dependencies:
 proxmox-ve-2.6.32 : Depends: vzctl (>= 3.0.29) but it is not installed
E: Unmet dependencies. Try using -f.
root@vm1:~# apt-get upgrade -f 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following NEW packages will be installed:
  vzctl
The following packages will be upgraded:
  libpve-common-perl pve-manager qemu-server
3 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
11 not fully installed or removed.
Need to get 1,317 kB/1,557 kB of archives.
After this operation, 1,188 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://download.proxmox.com/debian/ squeeze/pve libpve-common-perl all 1.0-15 [31.7 kB]
Get:2 http://download.proxmox.com/debian/ squeeze/pve qemu-server amd64 2.0-20 [80.1 kB]
Get:3 http://download.proxmox.com/debian/ squeeze/pve pve-manager all 2.0-35 [1,205 kB]
Fetched 1,317 kB in 9s (135 kB/s)                                                                                                                                        
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 30353 files and directories currently installed.)
Preparing to replace libpve-common-perl 1.0-14 (using .../libpve-common-perl_1.0-15_all.deb) ...
Unpacking replacement libpve-common-perl ...
Preparing to replace qemu-server 2.0-19 (using .../qemu-server_2.0-20_amd64.deb) ...
Unpacking replacement qemu-server ...
Preparing to replace pve-manager 2.0-33 (using .../pve-manager_2.0-35_all.deb) ...
Unpacking replacement pve-manager ...
Unpacking vzctl (from .../vzctl_3.0.30-2pve1_amd64.deb) ...
unable to backup existing configuration
dpkg: error processing /var/cache/apt/archives/vzctl_3.0.30-2pve1_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
configured to not write apport reports
                                      Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/vzctl_3.0.30-2pve1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@vm1:~#

So, I think I'm totally hosed, no?

Any help would be GREATLY appreciated...
 
The crappy thing is that I should have caught it, but just trying hard to understand why all the VM stuff would be removed by a simple syslog-ng package?!?

Because it depends on rsyslog. It you remove that all dependent packages need to be removed - quite obvious.

Try:

# rmdir /etc/vz/conf.org

Then try again.
 
Dietmar,

That worked! YOU ROCK!!! Thank you!

The only issue I'm having now is that I'm unable to log into the box via the Web UI. "Login failed. Please try again".

Any suggestions for that?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!