Squid Posted October 8, 2018 Posted October 8, 2018 Actually I have a completely different thought on this whole thing.Why not store it in ram instead. At array start copy it from flash to ram. At array stop copy it from ram to flash.That way everything survives a reboot if so desiredNo need to worry about strange paths, and there is no requirement that the appdata path is even valid Sent from my LG-D852 using Tapatalk Quote
dorgan Posted October 8, 2018 Author Posted October 8, 2018 7 minutes ago, Squid said: Actually I have a completely different thought on this whole thing. Why not store it in ram instead. At array start copy it from flash to ram. At array stop copy it from ram to flash. That way everything survives a reboot if so desired No need to worry about strange paths, and there is no requirement that the appdata path is even valid Sent from my LG-D852 using Tapatalk No need to copy it to memory if the filesystem gets created properly. I've release version 2018.10.07d which corrects the pathing issues. Sometimes i was using ${DOCKER_APP_CONFIG_PATH}/networkstats and other times i was using ${DOCKER_APP_CONFIG_PATH}/vnstat. This has now been normalized. Quote
dorgan Posted October 8, 2018 Author Posted October 8, 2018 @CHBMB please try now. Things should now get created in the right place. Quote
CHBMB Posted October 8, 2018 Posted October 8, 2018 Actually I have a completely different thought on this whole thing.Why not store it in ram instead. At array start copy it from flash to ram. At array stop copy it from ram to flash.That way everything survives a reboot if so desiredNo need to worry about strange paths, and there is no requirement that the appdata path is even valid Sent from my LG-D852 using TapatalkYeah, I mean afaik yours is the first plugin to use appdata. Only issue I can see with using RAM is in the case of a dirty shutdown and the fact any issues are going to take a fair bit of time to surface due to the time between reboots.Sent from my Mi A1 using Tapatalk Quote
dorgan Posted October 8, 2018 Author Posted October 8, 2018 Just now, CHBMB said: ...yours is the first plugin to use appdata... What are others using? Quote
CHBMB Posted October 8, 2018 Posted October 8, 2018 [mention=6219]CHBMB[/mention] please try now. Things should now get created in the right place.I'm afraid I've just got in bed, however I have faith, I'm sure it's working now. Will test tomorrow. Other thing, did you remember to put stats.page in your source as suggested by Squid?Sent from my Mi A1 using Tapatalk Quote
Squid Posted October 8, 2018 Posted October 8, 2018 What are others using?Most don't save historical data for something like this. No biggie if you want to. I was just tossing up an alternative to using docker apodataSent from my LG-D852 using Tapatalk Quote
dorgan Posted October 8, 2018 Author Posted October 8, 2018 Just now, CHBMB said: Other thing, did you remember to put stats.page in your source as suggested by Squid? I'll take care of that tomorrow, need to get the kids to bed and get everyone settled down for the night. Thanks for the help. Quote
CHBMB Posted October 8, 2018 Posted October 8, 2018 What are others using?RAM usually, and flash. Probably more historical than anything to be fair as appdata never used to exist in the V5 days.Sent from my Mi A1 using Tapatalk Quote
CHBMB Posted October 8, 2018 Posted October 8, 2018 I'll take care of that tomorrow, need to get the kids to bed and get everyone settled down for the night. Thanks for the help.NP, it's all shaping up quite nicely now though I reckon. Looking good!Sent from my Mi A1 using Tapatalk Quote
Squid Posted October 8, 2018 Posted October 8, 2018 RAM usually, and flash. Probably more historical than anything to be fair as appdata never used to exist in the V5 days.Sent from my Mi A1 using TapatalkBut don't write constantly to the flash. Sent from my LG-D852 using Tapatalk Quote
CHBMB Posted October 8, 2018 Posted October 8, 2018 But don't write constantly to the flash. Sent from my LG-D852 using TapatalkNo, true, but most plugins don't have a continuous stream of data though.Sent from my Mi A1 using Tapatalk Quote
tabac1987 Posted October 8, 2018 Posted October 8, 2018 VMs and dockers disappears after installing network statistics please see thread below (SOLVED) All user shares have disappeared from unRAID GUI https://r.tapatalk.com/shareLink?share_fid=18593&share_tid=74731&url=https://forums.unraid.net/index.php?/topic/74731-%28SOLVED%29-All-user-shares-have-disappeared-from-unRAID-GUI&share_type=t Sent from my iPhone using Tapatalk Quote
tabac1987 Posted October 8, 2018 Posted October 8, 2018 VMs and dockers disappears after installing network statistics please see thread below (SOLVED) All user shares have disappeared from unRAID GUI https://r.tapatalk.com/shareLink?share_fid=18593&share_tid=74731&url=https://forums.unraid.net/index.php?/topic/74731-%28SOLVED%29-All-user-shares-have-disappeared-from-unRAID-GUI&share_type=t Sent from my iPhone using TapatalkAlso this thread aswell cant start dockers or vms https://r.tapatalk.com/shareLink?share_fid=18593&share_tid=74742&url=https%3A%2F%2Fforums%2Eunraid%2Enet%2Findex%2Ephp%3F%2Ftopic%2F74742-cant-start-dockers-or-vms&share_type=tSent from my iPhone using Tapatalk Quote
dorgan Posted October 8, 2018 Author Posted October 8, 2018 What version of unRaid are these people running? Just curious as I’ve been working with numerous people over the weekend and no one reported this... Quote
CHBMB Posted October 8, 2018 Posted October 8, 2018 Yeah, I'm not 100% convinced your plugin is responsible, I suppose with the creation of folders it might be possible, but now that has been ironed out. Should be good. One other thought though. What about people who don't run docker and won't have an appdata folder defined.Might be an idea to do the RAM -> FLASH thing Squid suggested.Sent from my Mi A1 using Tapatalk Quote
tabac1987 Posted October 8, 2018 Posted October 8, 2018 What version of unRaid are these people running? Just curious as I’ve been working with numerous people over the weekend and no one reported this...Unraid 6.6Sent from my iPhone using Tapatalk Quote
dorgan Posted October 8, 2018 Author Posted October 8, 2018 Unraid 6.6Sent from my iPhone using TapatalkWhat version of network stats were you running? We discovered some patching issues yesterday and those have since been corrected. Quote
tabac1987 Posted October 8, 2018 Posted October 8, 2018 What version of network stats were you running? We discovered some patching issues yesterday and those have since been corrected.Not 100% sure on that on I installed it 2 days agoSent from my iPhone using Tapatalk Quote
dorgan Posted October 8, 2018 Author Posted October 8, 2018 Not 100% sure on that on I installed it 2 days agoSent from my iPhone using TapatalkOk yeah it’s very possible the issues found over the weekend resolved that. But again, none of the people I worked with over the weekend had these issues. Quote
Squid Posted October 8, 2018 Posted October 8, 2018 Minor Issue: If going from System Stats to Network Stats, the drop downs to change the monitoring speed etc are still present. Adding this should fix that up <script> $('#tab3').bind({click:function(){$('span.status').hide();}}); </script> Quote
Squid Posted October 8, 2018 Posted October 8, 2018 (edited) 4 hours ago, dorgan said: Ok yeah it’s very possible the issues found over the weekend resolved that. I don't think it's the plugin's fault for those issues. Possibly could be wrong however. It's also still not displaying anything. vnstats does return info, and the only interface available for me (and its checked off) is eth0) rx / tx / total / estimated docker0: Oct '18 19.06 MiB / 2.47 MiB / 21.53 MiB / 84.00 MiB today 19.06 MiB / 2.47 MiB / 21.53 MiB / 42 MiB veth7954bca: Oct '18 0 KiB / 47 KiB / 47 KiB / 0 KiB today 0 KiB / 47 KiB / 47 KiB / -- veth1fe98ad: Oct '18 2.18 MiB / 161 KiB / 2.33 MiB / 0 KiB today 2.18 MiB / 161 KiB / 2.33 MiB / -- as0t5: Not enough data available yet. vnet1: Oct '18 182 KiB / 16.99 MiB / 17.16 MiB / 0 KiB today 182 KiB / 16.99 MiB / 17.16 MiB / -- as0t1: Not enough data available yet. as0t10: Not enough data available yet. as0t8: Not enough data available yet. gretap0: Not enough data available yet. as0t4: Not enough data available yet. virbr0-nic: Not enough data available yet. vnet0: Oct '18 12 KiB / 192 KiB / 204 KiB / 0 KiB today 12 KiB / 192 KiB / 204 KiB / -- gre0: Not enough data available yet. as0t0: Not enough data available yet. veth889b37e: Oct '18 0 KiB / 47 KiB / 47 KiB / 0 KiB today 0 KiB / 47 KiB / 47 KiB / -- as0t7: Not enough data available yet. veth72de6f9: Oct '18 31 KiB / 667 KiB / 698 KiB / 0 KiB today 31 KiB / 667 KiB / 698 KiB / -- veth8d2d7a7: Oct '18 0 KiB / 47 KiB / 47 KiB / 0 KiB today 0 KiB / 47 KiB / 47 KiB / -- as0t3: Not enough data available yet. vethbcba54e: Oct '18 0 KiB / 47 KiB / 47 KiB / 0 KiB today 0 KiB / 47 KiB / 47 KiB / -- ip_vti0: Not enough data available yet. as0t11: Not enough data available yet. tunl0: Not enough data available yet. br0: Oct '18 34.31 MiB / 20.22 MiB / 54.53 MiB / 216.00 MiB today 34.31 MiB / 20.22 MiB / 54.53 MiB / 108 MiB virbr0: Not enough data available yet. erspan0: Not enough data available yet. as0t6: Not enough data available yet. as0t2: Not enough data available yet. veth9d29fe9: Oct '18 77 KiB / 1.63 MiB / 1.71 MiB / 0 KiB today 77 KiB / 1.63 MiB / 1.71 MiB / -- veth7390eb0: Oct '18 16.82 MiB / 171 KiB / 16.99 MiB / 0 KiB today 16.82 MiB / 171 KiB / 16.99 MiB / -- as0t9: Not enough data available yet. eth0: Oct '18 34.76 MiB / 3.55 MiB / 38.31 MiB / 148.00 MiB today 34.76 MiB / 3.55 MiB / 38.31 MiB / 74 MiB Still haven't rebooted yet though to clean out any leftover files though (for various reasons) Edited October 8, 2018 by Squid Quote
dorgan Posted October 8, 2018 Author Posted October 8, 2018 It's also still not displaying anything. vnstats does return info, and the only interface available for me (and its checked off) is eth0)Do you not use ethX, brX or bondX? Right now that’s the only interfaces it will show in the list to select. Quote
CHBMB Posted October 8, 2018 Posted October 8, 2018 Isn't eth0 what @Squid is using? Anyways, fresh install tonight and it's created the folder in my appdata folder and appear to be working. Good work! I still think for a plugin to be installable for everyone, including those that don't use Docker you probably need to rethink where to store data, but that's just an opinion. Quote
dorgan Posted October 8, 2018 Author Posted October 8, 2018 (edited) 34 minutes ago, CHBMB said: I still think for a plugin to be installable for everyone, including those that don't use Docker you probably need to rethink where to store data, but that's just an opinion. I'll try disabling Docker tonight, uninstall, restart and reinstall the plugin and see what happens. Edited October 8, 2018 by dorgan Quote
Recommended Posts
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.