ramblings of an IT professional
Common Issues
Common Issues – No Networking on new OpenVZ VPS
Mar 23rd
Hello all,
Today I ran into an interesting issue where a VPS had no networking either inbound or outbound after setup. This is the error that would present when restarting network via init.d:
Bringing up interface venet0: SIOCADDRT: Network is unreachable SIOCADDRT: Network is unreachable
This issue also presented in that cPanel licenses could not activate not could any ping or host commands work properly. I eventually narrowed down the issue to the fact that the IPs that had been added to the VPS were not properly set to ARP by checking with the following command (run on the node):
arp | grep [INSERT IP HERE]
In order to resolve this, all I needed to do was add the arp entries for the IPs on the actual virtual environment by running the following commands on the node:
arp -s [INSERT IP HERE] `ifconfig eth0 | grep eth0 | awk '{print $5}'` pub
Make sure you run the command above for every IP on the VPS. This resolved the issue and all networking started working again properly.
Subversion won’t install
Jul 2nd
Hello readers!
Below is another issue I’ve seen a few times now and I figured it’s worth writing a post about.
Situation: Client cannot install subversion or another binary on his dedicated or VPS server via yum. They get an error such as:
subversion-1.4.2-4.el5_3.1.x86_64 from base has depsolving problems --> Missing Dependency: perl(URI) >= 1.17 is needed by package subversion-1.4.2-4.el5_3.1.x86_64 (base) subversion-1.4.2-4.el5_3.1.i386 from base has depsolving problems --> Missing Dependency: perl(URI) >= 1.17 is needed by package subversion-1.4.2-4.el5_3.1.i386 (base) Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion-1.4.2-4.el5_3.1.i386 (base) Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion-1.4.2-4.el5_3.1.x86_64 (base) You could try using --skip-broken to work around the problem You could try running: package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigest
To repair this, you have to install perl-URI but it really doesn’t give many details as to how. To fix this on CentOS 5.6 just do the following:
wget http://mirror.centos.org/centos-5/5.6/os/x86_64/CentOS/perl-URI-1.35-3.noarch.rpm rpm -ivh perl-URI-1.35-3.noarch.rpm
Then retry the installation via yum for subversion. Please note, the wget link changes depending on CentOS version. For Centos 5.5:
wget http://mirror.centos.org/centos-5/5.5/os/x86_64/CentOS/perl-URI-1.35-3.noarch.rpm rpm -ivh perl-URI-1.35-3.noarch.rpm
And for CentOS 5.4:
wget http://mirror.centos.org/centos-5/5.4/os/x86_64/CentOS/perl-URI-1.35-3.noarch.rpm rpm -ivh perl-URI-1.35-3.noarch.rpm
Thank you all for reading and I hope this helps everyone solve another common issue more quickly and efficiently.