unraidyn

Members
  • Posts

    20
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

unraidyn's Achievements

Noob

Noob (1/14)

4

Reputation

  1. Found the problem, it is indeed recursion: https://github.com/SimonFair/tasmotapm-unraid/commit/42d19aa714319843114c626059dd9c5fae094a90#diff-ffc2f4755a67ff8df0cc721d1c185eee2502fd60ec1193caf6b36ecb34f1b9dbR106 The setInterval call needs to be at the page level as its a repeat call not a delayed call, as at the moment its nested within the tasmotapm_status() method, meaning each time its calling itself N+1 times. The fix should be to move the setInterval call outside of the method. You can replace the page load call to start itself with the setInterval code. I can submit a PR if you'd like.
  2. Doing some debugging, it appears to be an N+1 problem. For some reason, the network calls to `/plugins/tasmotapm/status.php` are being stacked upon each setInterval call. When each interval passes, by default every 1000ms, N+1 calls occur. Thats how it spirals so quickly.
  3. You amazing person you! Just updated to 6.12, relitively smooth but had a panic with "Unmountable: Unsupported or no file system" after enabling the "Permit exclusive shares:" option. Luckily a reboot fixed it, panic over for now. Now to take a look at this! Appears to be working - however, there appears to be a pretty nasty bug. After a few seconds (iterations), the values stop updating at the set interval (tried at the default 1000ms, 2000ms, etc) and instead start racing along faster and faster until either the tab or browser crashes. It also caused the plug to overload and reset as well, presumably due to the amount of requests being performed overloading its little webserver. There is a video of it malfunctioning attached. bug.mov This is with the default polling rate of 1000ms, in FireFox 114.0.1. Now that to me smells like instance stacking or something recursive calling successive setIntervals, causing it to scale exponentially. I'll start to debug, remembering to refresh regularly haha
  4. Currently waiting on a time frame to update my box, will report back with findings, will probs be an hour or so.
  5. You're a legend 🥳 You beat me to it, was just looking at your repos git history (mainly the NUT one) to see what updates were required to migrate from 6.12 and how that would translate to this project. My first time looking at Unraid plugins, but I'm a senior dev by trade so was giving it a go, looking through dev threads and 6.12 update changes to try and reverse what needs updating. Looks like the dev wants a new owner for the projects: Would you mind doing what you did for the NUT and IPMI projects and taking ownership? The plugin also requires posting onto CA as its currently unlisted. I can take what you've done and publish a fork, with some guidance as this is the first Unraid plugin I'm looking at (especially CA publishing), but you seem to know what you are doing 😉
  6. Super, I've just come across this issue too, and I think I'll have to wait for that update to resolve my issue. In my use case, the local TLD is correct, as is the hostname, but as I'm using a different port to access Unraid (as port 80/443 is being used by the reverse proxy itself) Unraid throws the following error: In which I understand why its doing that, but obviously I can never resolve that issue without having some manual control over the allowed origins list, or supporting reverse proxies. Which I take it will be resolved in that future update regarding custom allowed origins?
  7. If you want to know something really weird, if I modify the plugin to delete the plugin directory as the first action in the installation script: if [ -d /boot/config/plugins/rclone ]; then rm -rf /boot/config/plugins/rclone fi; It works fine. There is something about that specific '/boot/config/plugins/rclone/install/rclone' file that my install really doesn't like.
  8. Ah right okay, I could swap to a different flash drive, but its behaving absolutely fine otherwise. What's super weird is no other plugins have this issue, this is the only plugin. And what makes it weirder, it also doesn't occur if the rclone plugin doesn't already exist on the drive. It downloads and installs just fine. Is there any file system integrity test or something I can perform on the USB drive? Running an 'fsck' said the drive was normal and healthy.
  9. Mine is doing the exact same thing, works on any other machine, but repeatedly on Unraid just keeps cycling USB: Jan 25 12:43:55 AETHER kernel: usb 5-1: USB disconnect, device number 16 Jan 25 12:43:59 AETHER kernel: usb 5-1: new low-speed USB device number 17 using xhci_hcd Jan 25 12:44:00 AETHER kernel: hid-generic 0003:06DA:FFFF.0011: hiddev96,hidraw2: USB HID v1.00 Device [PPC Offline UPS] on usb-0000:2c:00.3-1/input0 Jan 25 12:44:14 AETHER kernel: usb 5-1: USB disconnect, device number 17 Jan 25 12:44:18 AETHER kernel: usb 5-1: new low-speed USB device number 18 using xhci_hcd Jan 25 12:44:18 AETHER kernel: hid-generic 0003:06DA:FFFF.0012: hiddev96,hidraw2: USB HID v1.00 Device [PPC Offline UPS] on usb-0000:2c:00.3-1/input0 Jan 25 12:44:32 AETHER kernel: usb 5-1: USB disconnect, device number 18 Jan 25 12:44:36 AETHER kernel: usb 5-1: new low-speed USB device number 19 using xhci_hcd Jan 25 12:44:36 AETHER kernel: hid-generic 0003:06DA:FFFF.0013: hiddev96,hidraw2: USB HID v1.00 Device [PPC Offline UPS] on usb-0000:2c:00.3-1/input0 Jan 25 12:44:50 AETHER kernel: usb 5-1: USB disconnect, device number 19 Jan 25 12:43:37 AETHER kernel: usb 5-1: USB disconnect, device number 15 Jan 25 12:43:41 AETHER kernel: usb 5-1: new low-speed USB device number 16 using xhci_hcd Jan 25 12:43:41 AETHER kernel: hid-generic 0003:06DA:FFFF.0010: hiddev96,hidraw2: USB HID v1.00 Device [PPC Offline UPS] on usb-0000:2c:00.3-1/input0 Jan 25 12:43:55 AETHER kernel: usb 5-1: USB disconnect, device number 16 Jan 25 12:43:59 AETHER kernel: usb 5-1: new low-speed USB device number 17 using xhci_hcd Jan 25 12:44:00 AETHER kernel: hid-generic 0003:06DA:FFFF.0011: hiddev96,hidraw2: USB HID v1.00 Device [PPC Offline UPS] on usb-0000:2c:00.3-1/input0 Jan 25 12:44:14 AETHER kernel: usb 5-1: USB disconnect, device number 17 Jan 25 12:44:18 AETHER kernel: usb 5-1: new low-speed USB device number 18 using xhci_hcd Jan 25 12:44:18 AETHER kernel: hid-generic 0003:06DA:FFFF.0012: hiddev96,hidraw2: USB HID v1.00 Device [PPC Offline UPS] on usb-0000:2c:00.3-1/input0 Jan 25 12:44:32 AETHER kernel: usb 5-1: USB disconnect, device number 18 And it will just keep going until I unplug it... SOLVED: Manually selected the "Usbhid-ups" driver in NUT and NUT grabbed the device before it had chance to disconnect again. Appears its something to do with the device firmware having a really short timeout if the device isn't captured by the appropriate driver in time. See: - https://serverfault.com/questions/994338/how-can-i-fix-my-ups-repeatedly-disconnecting-and-reconnecting - https://www.linuxquestions.org/questions/slackware-14/usb-device-keeps-connecting-and-disconnecting-slackware-14-specific-4175471128/
  10. Nope, it appears its still broken. Not sure what to do, but this is currently making the server unbootable in its fresh-installed state.
  11. I'm having an issue that is breaking Unraid boot, for some reason it fails each boot. In order to fix it, I have to put the USB drive into my main machine and delete/move the rclone directory to allow it to rebuild from scratch on boot; mv /boot/config/plugins/rclone /boot/config/plugins/rclone.old (or something to the same effect) Unraid 6.11.5 and 6.11.1. I've just re-installed the plugin and will report if that has fixed it as I have a reboot tomorrow to install a new USB PCI-e card. This screenshot is the broken boot: This screenshot is after moving/deleting the `/boot/config/plugins/rclone` directory: Permissions of `/boot/config/plugins/rclone`:
  12. You absolute legend! This solved my horrendous SMB performance on macOS 12.3.1 which would top out at around 20MB/s in short ~5 second bursts. Now I get sustained ~80-100MB/s+ and instant Finder navigation which is superb!