ispCP - Board - Support
/proc/net/dev does not exists or cannot be reached - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: /proc/net/dev does not exists or cannot be reached (/thread-8887.html)



/proc/net/dev does not exists or cannot be reached - mattyribbo - 12-22-2009 09:54 PM

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


RE: /proc/net/dev does not exists or cannot be reached - kilburn - 12-23-2009 12:41 AM

(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.


RE: /proc/net/dev does not exists or cannot be reached - Nuxwin - 12-23-2009 03:17 AM

(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.


RE: /proc/net/dev does not exists or cannot be reached - bzctoons - 05-06-2010 11:14 AM

(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