Everything posted by awediohead
-
[Plugin] autotweak
I run powertop. (as in powertop --auto-tune &>/dev/null ) every time I start my unraid server - would this be an example of doing something that would conflict with your plugin? Thanks
-
Weird parity fail notice then SMART says healthy?
I rebooted and got a green notification stating 'array turned good' Hopefully that's the end of it, but I'll give it 24 hours before making this as solved. Many thanks
-
Weird parity fail notice then SMART says healthy?
no more errors since the parity check completed so I'll just keep an eye on it. I have a back up drive ready to go when needed at least. btw how do I reset the errors?
-
Weird parity fail notice then SMART says healthy?
As the report below shows I got another error saying the array was a "FAIL" about 90 minutes before the parity check completed with 0 errors. This is from the dashboard: I've acknowledged the warning and the bell icon has gone back to black - so what to do now? Wait and keep an eye on it?
-
Weird parity fail notice then SMART says healthy?
parity running now - will be done in about six hours when I'll post back. Thanks
-
Weird parity fail notice then SMART says healthy?
Thanks for replying JorgeB Here's the diagnostics - let me know if you need them un-anonymised? singthesis-nas-diagnostics-20241114-1519.zip
-
Weird parity fail notice then SMART says healthy?
The last week or so I've started getting orange FAIL notifications: Unraid Status Notice [SINGTHESIS-NAS] - array health report [FAIL] Array has 9 disks (including parity & pools) warning Parity - ST4000VN008-2DR166_ZGY94KWQ (sdd) - standby [OK] Disk 1 - WDC_WD40EMAZ-11ZRJB0_WD-WX21D690LHA4 (sde) - standby (disk has read errors) [NOK] Disk 2 - WDC_WD40EMAZ-51TKPB0_WD-WX61D480DE19 (sdb) - active 26 C [OK] Disk 3 - ST4000VN008-2DR166_ZGY869D0 (sdc) - active 25 C [OK] Disk 4 - TOSHIBA_HDWQ140_X014K2WNFAYG (sdg) - standby [OK] Backups_8tb - TOSHIBA_HDWG480_71R0A06XFA3H (sdf) - standby [OK] Cache_standard - KIOXIA-EXCERIA_SATA_SSD_X0KB80PVKJC2 (sdj) - active 30 C [OK] Cache_standard 2 - KIOXIA-EXCERIA_SATA_SSD_Z0PB81E0KA93 (sdk) - active 31 C [OK] Cache_vms - SPCC_Solid_State_Disk_BB0407911E5300517164 (sdi) - standby [OK] Parity is valid Last checked on Friday, 01-11-2024, 11:10 (yesterday), finding 0 errors. Duration: 9 hours, 10 minutes, 24 seconds. Average speed: 121.1 MB/s But then when I check again Disk 1 SMART says it's managed to exclude the bad blocks (or something like that) and the status is green and 'healthy'. This seems to have happened repeatedly, but I don't know if it's telling me about the same problem multiple times or if the problem is recurring? Is this just something to keep an eye on or should I swap out Disk 1 for a new one ASAP ? I also installed Scrutiny and that tells me that all the disks are 'passed' and this particular disk is 'passed' for all attributes. I bought a new replacement drive so I'm ready to swap it out when needed, I just don't know how to interpret this info. There's nothing on the array that's super critical, for e.g. my security cameras use an unassigned SSD to store info to as do my family's PC back ups.
-
[SUPPORT] blakeblackshear - Frigate
Update: OK so without changing anything in the set up file I changed the url to http and changed the port to 5000 so now it works, but when you choose the webui for Frigate you get 'bad request' - how to fix this please? I'm probably doing something dumb - I had Frigate 0.14 working pretty well having just upgraded it from previous versions within Unraid's Docker Window, then I noticed the recommendation to delete and do a fresh install for 0.14 which I hadn't done - so I saved my config.yaml file and now I have a login screen which I didn't have previously? The only change I made was to add a Frigate+ API key in the relevant field, but my Frigate+ login credentials return as invalid, though they work to sign me in the the Frigate+ website. The other thing I notice is the "Authenticated UI and API access without TLS. Reverse proxies should use this port: 8971 - but I don't have a reverse proxy ? The old HTTP port of 5000 is missing from the set up - should I add it back?
-
[SUPPORT] blakeblackshear - Frigate
Ok - fair enough - so any idea how to explain my experience? Sorry but having just spent literally weeks trying to 'fix' my config only to discover that all I had to do to make it work reliably was to change my browser, I'm extremely confused - but at the same time would really like to understand?
-
[SUPPORT] blakeblackshear - Frigate
The problem can happen with h264 or h265 or any combination of the two in Firefox based browsers. I tested this with multiple changes and reversions of my config switching between h264 and h265. In all cases when it wouldn't work in Firefox when the same Frigate WEBUI is accessed via Brave (and presumably Chrome) or Safari - it "just works", indicating that there is a fault with Firefox. It was the threads you linked to - plus others - that first made me consider that it might be a browser problem and not a Frigate config or camera problem - both of which were reasonable assumptions I would have thought. I doubt very much that it would occur to many regular Unraid users (as opposed to devs and professional IT guys) that the browser they've been using to administrate Unraid for years without issue, is the reason their Frigate docker appears not to work! Obviously this is not the place to report bugs or inadequacies with Firefox !! I just hoped my sharing my experience might prevent other Firefox users trying to set up Frigate on Unraid from wasting as much time as I have. IOW just trying to help!
-
[SUPPORT] blakeblackshear - Frigate
re-writing original question to express myself better: So having banged my head against a brick wall for quite a few weeks (time and health allowing) trying to figure out why I was getting "Playback cannot continue. No available working or supported playlists." errors - when the live streams were viewable and the saved recordings were viewable via VLC once downloaded off my server - I finally tried a config that was not working in Firefox or Waterfox (in terms of my being able to watch recordings) with Safari and then Brave browsers - where it worked perfectly. I would really like to understand why? Is this a known problem? Secondly, having tried to find answers to this for weeks now with various search engines, reading the Frigate docs and threads here and elsewhere, I think it's understandable that I've assumed all along that there was something very wrong with my config for such a basic functionality to be broken. We're talking a HUGE amount of time totally wasted trying to fix something that wasn't broken in the first place. At least now I can proceed with setting up my config - but I am concerned that others maybe in the same boat and just give up on Frigate entirely - maybe there should be some sort of pinned warning not to use Mozilla browsers? Or am I missing something? Thanks
-
[SUPPORT] blakeblackshear - Frigate
Thanks for clarifying and confirming it's not something I need for now. It had been suggested to me as necessary previously, hence my question to double check. Cheers
-
[SUPPORT] blakeblackshear - Frigate
--gpus=all --shm-size=256mb --mount type=tmpfs,target=/tmp/cache,tmpfs-size=100000000 --restart unless-stopped Can someone explain what the --gpus=all part does of the above Extra Parameters? When is it necessary / useful as its not in the default ?
-
Docker Static IPs on Unraid & VLANs & pfSense
I'm trying to set up Frigate as a docker with a static IP on Unraid BUT this is about my network and NOT specific to any particular docker, but a more general question about dockers on VLANs and custom networks. I'm also concerned that on pfsense's DHCP leases page I've got the same MAC address being associated with my server (as the IP address for my server) and the VLAN IP for my cameras: Where Unraid Intel eth0 (hostname) and 'singthesis-nas' (hostname) are 192.168.1.92 AND 10.0.44.200 respectively, with the Mac Address being 00:26:55:e1:xx:xx for both leases. Is this OK because I have a LAGG and VLANs between pfsense, my managed switch and two ports on Unraid or is it a problem waiting to happen? Put another way, the 10.0.44.200 is a DHCP automatically assigned IP because the DHCP range on that VLAN is 10.0.44.200 to 10.0.44.254, so it's just handed out the first IP in the range. On the Docker instance if I don't specify a static IP of 10.0.44.210 for Frigate it defaults to 10.0.44.2 which is not within the DHCP lease pool, so I'm worried that's going to cause problems? If I try to use --mac-address and use one of the docker specific Mac Addresses in Extra Parameters I get an error when starting the docker - something about ipvlan versus macvlan? Bearing in mind that there are doubtless large holes in my understanding of networking I'm probably asking the wrong questions and possibly seeing a problem that isn't there! Hope someone can help! P.S. I've tried to open the docker console and use ifconfig but it just says 'not found'
-
[SUPPORT] blakeblackshear - Frigate
Oh I have - dozens of times by now! The problem is that states: As the camera I need to get working is 4K the example given is pretty much useless and I've had to search elsewhere for answers. Still, I'm getting gradually more familiar with the terminology and broad principles - but as many others have said, the Frigate documentation assumes a hell of a lot of knowledge. Even so with a working iGPU at least I can trial and error the process and make a little progress. If the built in .config editor wasn't checking syntax I'd have given up long ago.
-
[SUPPORT] blakeblackshear - Frigate
Update: Turns out my BIOS had somehow reset the GPU aspect of itself (or didn't retain settings) such that the Intel iGPU wasn't working, while the Nvidia 1050 was, though only for transcoding in Plex. So as soon as I added the hwaccel_args (any type) Frigate crashed because it was trying to find something that wasn't there. And obviously iHD or i965 weren't going to make any difference either! At least now I can plough through the Frigate docs in a somewhat meaningful way. Are there any extra parameters I should be adding above and beyond the defaults for the 10400's iGPU?
-
[SUPPORT] blakeblackshear - Frigate
So I've literally spent days on this and I'm going slightly mad. I'd really appreciate some help as I'm just going round in circles. I have a single 4K Reolink E1 Outdoor PoE camera installed for now. With two Reolink 520A cameras waiting to be installed. I can get VLC to show a nice clear image via: rtsp://admin:[email protected]:8554/h264Preview_01_main this also works as: rtsp://admin:[email protected]:8554/h265Preview_01_main (where obviously I'm substituting 'PASSWORD' for the actual password - which does not have any special characters!) but the same URL entered into Frigate just generates a series of errors: In the Log files I get things like: 2024-03-22 11:27:25.320784970 [rtsp @ 0x24c9e40] method DESCRIBE failed: 404 Not Found ERROR : e1frontdoor: Unable to read frames from ffmpeg process. 2024-03-22 11:27:25.426632987 [2024-03-22 11:27:25] frigate.video ERROR : e1frontdoor: ffmpeg process is not running. exiting capture thread... ERROR : Ffmpeg process crashed unexpectedly for e1frontdoor In the VAINFO section I get: VAINFO OUTPUT Return Code: 3 Process Error: error: XDG_RUNTIME_DIR is invalid or not set in the environment. error: can't connect to X server! libva info: VA-API version 1.17.0 libva info: User environment variable requested driver 'iHD' libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_17 DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument Assuming 131072kB available aperture size. May lead to reduced performance or incorrect rendering. get chip id failed: -1 [22] param: 4, val: 0 libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed libva info: va_openDriver() returns 18 vaInitialize failed with error code 18 (invalid parameter),exit Changing from iHD to i965 makes no difference I've started from scratch so many times now I think there's something even more fundamental going on. I'd really appreciate some help figuring out what that is? My current hardware is a z490 +i510400 CPU so the onboard iGPU should be working in parallel with the USB Coral I have - which is at least being recognised in both Unraid and the Frigate logs. Hope someone can help. Thanks
-
[SUPPORT] blakeblackshear - Frigate
So are you saying that - at the camera level - where I have (since just changing back to preset-vaapi) cameras: e1frontdoor: enabled: true ffmpeg: inputs: - path: rtsp://10.0.44.2:8554/e1frontdoor hwaccel_args: preset-vaapi roles: - record - path: rtsp://10.0.44.2:8554/e1frontdoor_sub roles: - detect detect: width: 640 height: 360 fps: 7 objects: track: - person you just have cameras: e1frontdoor: enabled: true ffmpeg: hwaccel_args: preset-vaapi detect: width: 640 height: 360 fps: 7 objects: track: - person or even less than this? Thanks a million
-
[SUPPORT] blakeblackshear - Frigate
I do not have Portainer installed - in fact I had no idea you could install Portainer on Unraid ! While I will investigate Portainer further in future, but just now it seems like another steep learning curve when I'm already a bit overwhelmed with variables - and Frigate should work without Portainer right? I found this Reddit thread helpful as my three cameras are all Reolink - though I only have one wired up and installed right now. Here's my error logs: 2024-03-19 13:52:52.409885798 [INFO] Preparing Frigate... 2024-03-19 13:52:52.420791575 [INFO] Starting Frigate... 2024-03-19 13:52:53.723144268 [2024-03-19 13:52:53] frigate.app INFO : Starting Frigate (0.13.2-6476f8a) 2024-03-19 13:52:53.754498105 [2024-03-19 13:52:53] peewee_migrate.logs INFO : Starting migrations 2024-03-19 13:52:53.761128965 [2024-03-19 13:52:53] peewee_migrate.logs INFO : There is nothing to migrate 2024-03-19 13:52:53.767830216 [2024-03-19 13:52:53] frigate.app INFO : Recording process started: 584 2024-03-19 13:52:53.770085464 [2024-03-19 13:52:53] frigate.app INFO : go2rtc process pid: 89 2024-03-19 13:52:53.793262819 [2024-03-19 13:52:53] frigate.app INFO : Output process started: 595 2024-03-19 13:52:53.804977095 [2024-03-19 13:52:53] frigate.app INFO : Camera processor started for e1frontdoor: 603 2024-03-19 13:52:53.812644825 [2024-03-19 13:52:53] frigate.app INFO : Capture process started for e1frontdoor: 605 2024-03-19 13:52:53.836449259 [2024-03-19 13:52:53] frigate.video ERROR : e1frontdoor: Unable to read frames from ffmpeg process. 2024-03-19 13:52:53.836532504 [2024-03-19 13:52:53] frigate.video ERROR : e1frontdoor: ffmpeg process is not running. exiting capture thread... 2024-03-19 13:52:56.409451884 [2024-03-19 13:52:53] detector.coral INFO : Starting detection process: 593 2024-03-19 13:52:56.413665756 [2024-03-19 13:52:53] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as usb 2024-03-19 13:52:56.413962714 [2024-03-19 13:52:56] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found 2024-03-19 13:53:13.842880802 [2024-03-19 13:53:13] watchdog.e1frontdoor ERROR : Ffmpeg process crashed unexpectedly for e1frontdoor. 2024-03-19 13:53:13.843266663 [2024-03-19 13:53:13] watchdog.e1frontdoor ERROR : The following ffmpeg logs include the last 100 lines prior to exit. 2024-03-19 13:53:13.843625848 [2024-03-19 13:53:13] ffmpeg.e1frontdoor.detect ERROR : DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument 2024-03-19 13:53:13.843850708 [2024-03-19 13:53:13] ffmpeg.e1frontdoor.detect ERROR : Assuming 131072kB available aperture size. 2024-03-19 13:53:13.844088541 [2024-03-19 13:53:13] ffmpeg.e1frontdoor.detect ERROR : May lead to reduced performance or incorrect rendering. 2024-03-19 13:53:13.844255022 [2024-03-19 13:53:13] ffmpeg.e1frontdoor.detect ERROR : get chip id failed: -1 [22] 2024-03-19 13:53:13.844452915 [2024-03-19 13:53:13] ffmpeg.e1frontdoor.detect ERROR : param: 4, val: 0 2024-03-19 13:53:13.844676862 [2024-03-19 13:53:13] ffmpeg.e1frontdoor.detect ERROR : [AVHWDeviceContext @ 0x560671d1d540] libva: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed 2024-03-19 13:53:13.844904200 [2024-03-19 13:53:13] ffmpeg.e1frontdoor.detect ERROR : [AVHWDeviceContext @ 0x560671d1d540] Failed to initialise VAAPI connection: 18 (invalid parameter). 2024-03-19 13:53:13.845005861 [2024-03-19 13:53:13] ffmpeg.e1frontdoor.detect ERROR : Device creation failed: -5. 2024-03-19 13:53:13.845178704 [2024-03-19 13:53:13] ffmpeg.e1frontdoor.detect ERROR : Failed to set value '/dev/dri/renderD128' for option 'qsv_device': Input/output error 2024-03-19 13:53:13.845337806 [2024-03-19 13:53:13] ffmpeg.e1frontdoor.detect ERROR : Error parsing global options: Input/output error 2024-03-19 13:53:13.864092082 [2024-03-19 13:53:13] frigate.video ERROR : e1frontdoor: Unable to read frames from ffmpeg process. 2024-03-19 13:53:13.864222820 [2024-03-19 13:53:13] frigate.video ERROR : e1frontdoor: ffmpeg process is not running. exiting capture thread... and here's my config.yml mqtt: enabled: False detectors: coral: type: edgetpu device: usb ffmpeg: hwaccel_args: preset-intel-qsv-h264 input_args: preset-rtsp-restream output_args: record: preset-record-generic-audio-copy go2rtc: streams: e1frontdoor: - rtsp://admin:<password>@10.0.44.101:554/h264Preview_01_main e1frontdoor_sub: - rtsp://admin:<password>@10.0.44.101:554/h264Preview_01_sub #oldcam: # - rtsp://<username>:<password>@<camera_ip>:554/h264Preview_01_main #oldcam_sub: #- rtsp://<username>:<password>@<camera_ip>:554/h264Preview_01_sub cameras: e1frontdoor: enabled: true ffmpeg: inputs: - path: rtsp://10.0.44.2:8554/e1frontdoor hwaccel_args: preset-intel-qsv-h264 roles: - record - path: rtsp://10.0.44.2:8554/e1frontdoor_sub roles: - detect detect: width: 640 height: 360 fps: 7 objects: track: - person I've tried substituing VAAPI for QSV and the generic vs restream for hwaccel and input arguments respectively. I also tried changing the iHD to i965 without any benefit. Hope someone can see what I'm doing wrong? Thanks
-
[SUPPORT] blakeblackshear - Frigate
So having sent back a dud USB Coral TPU, I got a replacement and it's being seen on Bus 002 Device 003 Port 2-1 as. ID 18d1:9302 Google Inc. where the previous one never changed from the generic. Since I last posted on this thread, I've also changed my Unraid set up from being Ryzen based to using a z490 + i5 10400 Being at the, "doing what Ed (of SpaceInvaderOne fame) tells me to do, but being otherwise fairly clueless", end of the Unraid user spectrum and feeling pretty confused trying to make sense of the Frigate documentation, and having searched in vain for Unraid specific tutorials, written or video based . . . . 1) Can someone please tell me what order to work through the setting up of the configuration file? 2) Is there anything specific to Unraid that doesn't apply to Docker on, for e.g. Debian, I should be aware of? Knowing this will help me extrapolate info from tutorials for other systems. 3) I have a 10th gen (i5 10400) CPU with an iGPU - do I need or should I be making this available to Frigate in terms of hardware acceleration to work in partnership with the Google Coral TPU. I think this is so the TPU does object detection, while the iGPU does everything else more efficiently than the CPU? 4) Is it best practice to save and restart Frigate after making a change / addition to the config or to get all sections of the config set up as best I can before saving and testing? i.e. how interdependent are the various sections? Would the absence of a particular section cause it to crash or simply not work optimally? Thanks
-
[SUPPORT] blakeblackshear - Frigate
Thanks - very useful real world info. So having just returned a dud USB coral TPU - would you recommend trying another of the USB type? I'm wondering because it's only an extra £10 on top of the USB unit's price for the dual TPU (https://amzn.eu/d/0ab2ffc) - though I assume I'd also need to buy some kind of adapter to fit a regular motherboard M.2 slot. That said I don't use any M.2 SSDs or NVME drives on my server (mostly for ease of access as my 2.5" SSDs are in front loading bays) so I'm pretty sure I should have enough PCIe lanes. The counter argument is that I also really like that the USB model would be very flexible - i.e. if I can't get it to work on Unraid (my Ryzen system has no iGPU and my GTX 1050 does transcoding on Plex) I could set it up on a spare 10th Gen Intel build that does have an iGPU and use that as a dedicated CCTV PC / NVR - without having to completely dismantle my Unraid server to make the swap ! Any other pros and cons to consider - assuming this is specifically for use with Frigate?
-
[SUPPORT] blakeblackshear - Frigate
Thanks Bruceflix - accepting it's a dud probably explains why nothing else I've done has worked, assuming Frigate is looking for something that isn't there when the docker starts because that's what's in the config.yml ! I'll start a return and see what happens with the replacement. Cheers
-
[SUPPORT] blakeblackshear - Frigate
I won't claim to have read every single post in the 43 pages of this thread, but I've read an awful lot of it, watched a bunch of videos and read (if not understood) quite a bit of https://coral.ai/docs/ and the troubleshooting section for the TPU (so I've tried multiple USB cables for e.g.) . . . and I'm still utterly clueless (and not a little overwhelmed!) as to where to begin with Frigate on Unraid specifically. The posts and videos I've read or watched aren't using Unraid and I just can't join the dots - doubtless because of fundamental gaps in my understanding of Unraid! So 1) Do I need to follow the instructions to Install the Edge TPU runtime on Unraid's console before I do anything else? 2) Do I then need to install the PyCoral library? 3) My USB coral never seems to initialise and change from 1a6e:089a Global Unichip Corp to Google Inc. - whats the quickest way of checking whether it's a factory dud? I assume I'll be plugging it into a Linux distro - I have a POP OS install on a PC, would that be close enough to being Debian/Ubuntu based to give me accurate feedback as to whether or not the TPU is functional? Any other quicker ways to determine this since I'd prefer to put most of my time and energy into figuring out how to get this working on Unraid! 4) I thought I had created a very basic config.yml file just to get Frigate started so I could modify the config from within Frigate as is recommended - but with the USB Coral TPU plugged in starting Frigate up and looking at the logs, the logs window flickers for a fraction of a second and then disappears far too quickly to read anything. That said am I right in thinking I need to be seeing the device as Google Inc in lsusb before I can hope to launch Frigate successfully? I appreciate I have a ton to learn to get things working, but I just can't seem to find anything that assumes my kinda level of ignorance!
-
Reduce power consumption with powertop
I have much the same question - though with a Ryzen 3600 on x570. I'm really unclear as to what powertop can usefully/safely do for AMD CPU's? What it can't do and where to draw the line? The OP states it is useable, and warns that only getting C1, C2 and C3 is normal for new Intel and all AMD CPUs, however the guidance that follows assumes a fairly deep familiarity with Linux CLI that's way over my head. It's clear that I can't use autotune safely because of having a JMicron PCIe SATA card and the 'tunables' are 90% all 'Bad' apart from a dozen or so 'Goods' at the bottom of a very long list. No idea where to start! I also have a query about how you'd go about doing what's suggested in the OP without the config file editor which is now deprecated ? After messing about with BIOS setting for a few days at least I now have my system going to sleep when not in active use and responding to WOL to wake up again - this is pretty crude in terms of power efficiency but a big step in the right direction for me. I just went through every setting I could find in the ASUS x570 BIOS relating to C states and energy efficiency and turned it on or off - even something minor such as the onboard LEDs makes a huge difference to this stability IME. I'll research this more but maybe someone can chime in on the difference between the apparently problematic PCIe SATA cards mentioned in the OP (like my JMicron) and getting a PCIe SAS HBA card - I assume the latter does not have an onboard SATA controller chip and would therefore respond better to "instruction" from the OS directly in terms of power management? Probably wishful thinking but it'd be great if someone with the know how could do a guide for AMD power efficiency.
-
Changing my NIC from onboard to four port PCIe
That all seems to have gone OK thanks. Only slight quirk is that it's complaining about eth1 being disconnected as if it's expecting a bond or LAG between eth0 and eth1 when I haven't set one up - the other two ports are marked as 'shutdown inactive' I think it's probably 'remembering' something from my previous half baked attempts as it says, "Interface Ethernet Port 1 is down. Check Cable!" in red on the bottom border of the page to the right of "Array Started" in green. Is there a way to clear this? The obvious restarts etc. haven't changed it. One other quick question at a tangent - if docker containers are running is it OK to just switch docker services off in Docker Settings, or should I be stopping them under the Docker Tab before stopping the service - or does it make no odds? Just want to know what best practice is.