Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Plugin] Network Stats

Featured Replies

pidfile in rc.vnstat is telling the pid is supposed to be found

 

 

image.png

  • Replies 311
  • Views 81.5k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • new release is out there, its rough, but it brings this plugin back to life from having additional steps to get it working.  Any and all feedback is appreciated and will be considered.

  • currently because of dependency changes from 6.9 to 6.10, this plugin isnt fully working by itself at least the image outputs arent.  in order to fix the outputs you would have to install the missing

  • outrigger999
    outrigger999

    Installing the dependencies worked for me. There is however a typo in the above script which has to do with the install of freetype-2.6.3. Find the line below in the above script and you will notice i

Posted Images

  • Author
pidfile in rc.vnstat is telling the pid is supposed to be found
 
 
image.png.419cb0efb89d0a5f7532a3f430a5fa98.png

Yeah I am going to double check things as I thought I was altering it. But I’ll double check everything and cut a new release tomorrow

ok, got it working what I did was:

 

changed PIDFILE=/var/run/vnstat/vnstat.pid

and in the start line added -p $PIDFILE

 

rest was untouched

 

image.png

 

and this is what I get

image.thumb.png.540ccdc89c8228bffc2684c2325c2567.png

 

i have to Shift Reload Page to get the graphs to update, leaving to another menu and coming back, it does not update

Edited by MyKroFt

Still not working....

 

Installed latest version, after installation I see in the logs:

 

Oct 5 21:42:57 Tower vnstatd[24665]: vnStat daemon 1.18 started. (pid:24665 uid:0 gid:0)
Oct 5 21:42:57 Tower vnstatd[24665]: Monitoring: bond0 (2000 Mbit) eth0 (1000 Mbit) eth1 (1000 Mbit) 

 

The settings page says Stopped

 

Try to start and the log says:

Oct 5 21:46:44 Tower vnstatd[31073]: Error: pidfile "/var/run/vnstat.pid" lock failed (Resource temporarily unavailable), exiting.

 

no PID of 31073 is running, but PID 24665 (vnstatd) is running

 

/etc/rc.d/rc.vnstat status returns vnstat daemon is not running.

 

 

 

 

8 hours ago, dorgan said:

Just pushed out an updated version that should correct this.

I dont see a new version, just check plugins page and latest version is 2018.10.03?

Mine shows 2018.10.05 

42 minutes ago, dukiethecorgi said:

Mine shows 2018.10.05 

Because you installed that version from scratch

54 minutes ago, MyKroFt said:

I dont see a new version, just check plugins page and latest version is 2018.10.03?

Because there's an error in the .plg file

 

@dorgan,

<!ENTITY pluginURL "$gitURL;/&name;.plg">

should be
 

<!ENTITY pluginURL "&gitURL;/&name;.plg">

Once this is fixed, anyone who has previously installed the plugin will need to uninstall and then reinstall it for any future updates to be found.

  • Author

Thanks, I’ll get this corrected. And take a look at the plugin again. Maybe uninstall, restart the server and reinstall the plugin and get this all corrected.

I just tried same as the other users and still is not working. I even deleted the plugin and restarted the server.

 

This looks promising, I'll check next week to see if it's up.

 

I'm using  Version: 6.6.1 

Edited by gacpac

8 hours ago, dorgan said:

Thanks, I’ll get this corrected. And take a look at the plugin again. Maybe uninstall, restart the server and reinstall the plugin and get this all corrected.

That's what I tried, removed old version and installed from scratch

  • Author

It has to be something that’s cached in my setup. Because I’ve removed and reinstalled the plugin multiple times and it works just fine. So I’ll uninstall it and restart the server before reinstalling again. Hopefully that will help me track down the issue.

  • Author

@dukiethecorgi @gacpac @Squid - Alright, I fixed some paths and I believe all the right config files and pid paths are now being put in place.  2018.10.06a is out

Edited by dorgan

Hi, so I just installed 2018.10.06a and get the same message as others were earlier.

 

Oct 6 15:06:03 UnraidTower vnstatd[15224]: Error: pidfile "/var/run/vnstat.pid" lock failed (Resource temporarily unavailable), exiting

 

/etc/rc.d/rc.vnstat status
vnstat daemon is not running.
/etc/rc.d/rc.vnstat start
Starting the vnstat daemon...
Error: pidfile lock: Resource temporarily unavailable

 

Thoughts?

 

  • Author
Hi, so I just installed 2018.10.06a and get the same message as others were earlier.
 
Oct 6 15:06:03 UnraidTower vnstatd[15224]: Error: pidfile "/var/run/vnstat.pid" lock failed (Resource temporarily unavailable), exiting
 
/etc/rc.d/rc.vnstat status
vnstat daemon is not running.
/etc/rc.d/rc.vnstat start
Starting the vnstat daemon...
Error: pidfile lock: Resource temporarily unavailable
 
Thoughts?
 

It shouldn’t even be using that location. I wonder, can you try a restart of unraid, and see if things come up properly?

One reboot later and still the same I am afraid.

 

Oct 6 15:29:02 UnraidTower vnstatd[11262]: Error: pidfile "/var/run/vnstat.pid" lock failed (Resource temporarily unavailable), exiting.

 

Linux 4.18.10-unRAID.
/etc/rc.d/rc.vnstat start
Starting the vnstat daemon...
Error: pidfile lock: Resource temporarily unavailable
/etc/rc.d/rc.vnstat status
vnstat daemon is not running.
 

image.thumb.png.803ba091251146861a9aa650b791851c.png

 

image.png.a0ec340a7f88af9c5a46dfdb8f6652bc.png

 

Anything else you need let me know.

 

 

6.6.1

Fresh install, I saw your first post on this and have been waiting till you thought you had it sorted.

  • Author
Fresh install, I saw your first post on this and have been waiting till you thought you had it sorted.

Hmm something seriously weird here, as I’ve now uninstall, restarted machine and then reinstalled and things are working just fine.

Can you me what it says for DBLocation in /etc/vnstat.conf and what it says for PIDFILE in /etc/rc.d/rc.vnstat?

rc.vnstat 

 

CONFIGFILE=/etc/vnstat.conf
PIDFILE=/var/run/vnstat/vnstat.pid
DAEMON=vnstatd

 

vnstat.conf

 

# location of the database directory
DatabaseDir "/var/lib/vnstat"

 

# file used as daemon pid / lock file
PidFile "/var/run/vnstat.pid"
 

Added the pid lock file location from vnstat.conf as well.

 

  • Author
rc.vnstat 
 
CONFIGFILE=/etc/vnstat.conf
PIDFILE=/var/run/vnstat/vnstat.pid
DAEMON=vnstatd
 
vnstat.conf
 
# location of the database directory
DatabaseDir "/var/lib/vnstat"
 
# file used as daemon pid / lock file
PidFile "/var/run/vnstat.pid"
 
Added the pid lock file location from vnstat.conf as well.
 

Ok the PIDFILE location looks good, let me try to have the install manual create that folder. DatabaseDir is not correct, which means it’s not copying the vnstat.conf from /user/local/emhttp/plugins/network stats/vnstat.conf over to /etc/vnstat.conf

Let me know if you need anything else.

@dorgan just to clarify you did mean /usr/local/emhttp/plugins/networkstats?

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.