Current time: 11-27-2024, 03:56 AM Hello There, Guest! (LoginRegister)


Post Reply 
/proc/net/dev does not exists or cannot be reached
Author Message
mattyribbo Offline


Posts: 1
Joined: Dec 2009
Reputation: 0
Post: #1
/proc/net/dev does not exists or cannot be reached
Hi, installed ispCP on Debian 5.0 64bit edition, works fine (ish).

I'm getting errors on the IP's section (Settings > Manage IP's)

Quote:File /proc/net/dev does not exists or cannot be reached!Error while trying to obtain list of network cards!Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
Return value: 1

Kernel is 2.6.31.5-grsec-xxxx-grs-ipv4-64 (SMP)
OVH Dedi Server

Quick search on the web showed me this: http://isp-control.net/ispcp/ticket/1911 but is frankly useless.

Any suggestions?

-Matt
12-22-2009 09:54 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: /proc/net/dev does not exists or cannot be reached
(12-22-2009 09:54 PM)mattyribbo Wrote:  Quick search on the web showed me this: http://isp-control.net/ispcp/ticket/1911 but is frankly useless.

Any suggestions?

Basically, this ticket says that you're using a modified kernel version (not included by default on any of our supported distros), and therefore we can not accept this problem as a bug. Anyway, if you want to provide a patch we'll try to merge it into our codebase.
12-23-2009 12:41 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Nuxwin
Unregistered

 
Post: #3
RE: /proc/net/dev does not exists or cannot be reached
(12-23-2009 12:41 AM)kilburn Wrote:  
(12-22-2009 09:54 PM)mattyribbo Wrote:  Quick search on the web showed me this: http://isp-control.net/ispcp/ticket/1911 but is frankly useless.

Any suggestions?

Basically, this ticket says that you're using a modified kernel version (not included by default on any of our supported distros), and therefore we can not accept this problem as a bug. Anyway, if you want to provide a patch we'll try to merge it into our codebase.

+1 kilburn. We can not do anything to it immediately. This is not a bug.
12-23-2009 03:17 AM
Quote this message in a reply
bzctoons Offline


Posts: 2
Joined: Nov 2007
Reputation: 0
Post: #4
RE: /proc/net/dev does not exists or cannot be reached
(12-22-2009 09:54 PM)mattyribbo Wrote:  Hi, installed ispCP on Debian 5.0 64bit edition, works fine (ish).

I'm getting errors on the IP's section (Settings > Manage IP's)

Quote:File /proc/net/dev does not exists or cannot be reached!Error while trying to obtain list of network cards!Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
Return value: 1

Kernel is 2.6.31.5-grsec-xxxx-grs-ipv4-64 (SMP)
OVH Dedi Server

Quick search on the web showed me this: http://isp-control.net/ispcp/ticket/1911 but is frankly useless.

Any suggestions?

-Matt

hello,
As i have the same issue with a grsec kernel I found a work around :
First, the issue was when adding a new IP, so :
as root in ssh I created a mirror of /proc/net/dev/ and of the ifconfig output :
cp /proc/net/dev /var/www/ispcp/gui/proc.net.dev.mirror
ifconfig > /var/www/ispcp/gui/ifconfig.mirror

Next we have to modify the sources :
in /var/www/ispcp/gui/include/class.networkCard.php
in function network()
replace
$file = $this->read('/proc/net/dev');
by
$file = $this->read('/var/www/ispcp/gui/proc.net.dev.mirror');

in function _populateInterfaces()
replace
$message = $this->executeExternal(config::Get('CMD_IFCONFIG'), $err);
by
$message = $this->read('/var/www/ispcp/gui/ifconfig.mirror');

That it ! Smile
Honnestly I didn't yet tested this deeply, but it works for me and I can add IPs. I use ispcp 1.0.5.
For the next releases of ispcp, I think that either the ispcp deamon should produce the mirrors files or basically thanks to a cron.

Red
http://bzctoons.net
05-06-2010 11:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)