-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sentry & Saved has just 2 files #825
Comments
I have seen this issue too, as have others. Since it only started happening recently I suspect it's due to a Tesla software update, but it's unclear what exactly the trigger is. If I clear out the "cam" drive, it starts working properly again. |
Thanks for confirming @marcone. I checked 2018 Model 3 and that does exactly the same. |
Connecting the Pi to a PC and deleting the content of the TeslaCam folder in the "CAM" drive is what I did. Don't delete the TeslaCam folder itself.
This probably isn't a permanent fix, but it made it work again for me for now. |
I believe this fixed it for me, will verify when I get home from work. |
Having the same issue here. I gave the above series of "in-vehicle" commands a shot. There is one modification needed. I got an error that I couldn't
I'll monitor and report back if this fixes it. |
you shouldn't need to add that |
Thanks @marcone - it works for now on 2 separate instances. |
I'm having a similar issue. TeslaUSB was only backing up 2 files. I ran the commands @marcone suggested. I am using TeslaFi to keep the car awake, and the archive log never gets past "Starting background task to keep car awake.". I verified through the TeslaFi API page, the call is going through and is received by the vehicle. I re-rolled the API token for good measure and updated the config, restarted, aswell as ran the update script to make sure I was on the latest TeslaUSB version. The Diagnostics page (attached) does not immediately jump out at me. |
This worked for me for a few days and now it’s exhibiting the behavior again. Notably on one new vehicle (2024) which got a new and freshly-provisioned Pi Zero W teslausb installation. Now I’m also seeing the same on an existing installation on a 2020 vehicle where teslausb had been working flawlessly for years. Seems related to a recent vehicle SW update, I guess? Both are running v11.1 (2024.2.7 d522c44937f7).
What’s the recommended way to check for/repair this for these mounts? |
Broke after few days again on 2 cars. Just 2 files. |
Mine are also again broken.
That's the big concern, I think. It doesn't seem super likely to me that Tesla will make fixes for this use case (or even notice they've broken it). @marcone , is there anything we could do to help provide some insight into what is actually going on here? Run a diagnostic build? Capture logs? Happy to help investigate. |
Same here, broke after a while. Going back to manual USB until this is resolved, if it can be. I'll format it and see if theres any obvious directory changes. I'll be happy to help as well. What exactly has changed? How the video files are saved? Naming? |
I don't think there is anything that can be done on the TeslaUSB side. I think this is just a bug on Tesla's side, since it started recently with no notable TeslaUSB changes, and I'm seeing problems even with a regular USB drive. |
So you think this problem is widespread to all Tesla dashcam users regardless if they are using teslausb or not? What problems do you see with the regular usb drive? |
I was wondering the same. I flipped my 2024 back to a USB drive and it seems to be working fine so far, while the 2020 continues to fail after clearing the TeslaCam folder every few days. I can't say I see any complaints of this on the various Tesla forums despite scouring pretty hard, but it doesn't mean it's not happening. |
I was seeing this problem, and tried every fix in this thread. I still was only seeing 2 files per "event" and nothing thereafter. I've gone back to using an SSD plugged directly into the car (2022 M3) and its recording just fine. |
@Gizmotoy are you using the center console or glove box? I've personally seen it on a Model Y with center console USB, and @cleanev also reported using the center console. |
I have one of each: my 2020 doesn’t have a glove box port at all. I still have that TeslaUSB Pi Zero W device installed and it fails every few days and I do the process above to resolve it temporarily. My 2024 has the glove box port and TeslaUSB was installed there. Subjectively, the behavior was worse in the 2024, lasting only a day or two max, so I replaced it with the original USB drive. It’s been solid again and I’ve encountered no issues on USB at all. |
I have a 2023 Model 3 RWD with the USB plugged into the glovebox and have had no problems using a default USB stick. Same behavior after a couple days with the fix above on teslausb. |
The consensus reading these comments is Tesla made a change affecting TeslaUSB in all models, regardless of where you plug in while allow plain vanilla USB key to work. |
My 2020 just received 2024.8.4. Installing now. It has TeslaUSB still installed. Hope to understand if this is just a thing they've fixed within the next few days. |
This happened twice for me. What I've notice is that the issue occurred after a software update. I updated to 2024.8.4 and the issue happened again. I'll keep an eye out but that is something I notice for me. |
Not sure if anyone other than @mondagoar has had any success. Model Y-2020 with 2024.3.10, Model 3 2018 with 2024.2.7 still has same issue where after removing the files it lasts for a few drives with and then 2 files again. Something that Tesla did or does reinstalling take care of this? |
I tried reinstalling and was still affected. Running 2024.3.10 and 2024.8.7. I switched back to flash drives until this is sorted. I was almost hit and had to swerve off the road last week and teslausb didn’t capture anything but the two meta files. Flash is safer for now, I guess. |
@Gizmotoy Have you verified that the camera footage is actually present on the USB drive? Before finding this issue I tried switching to a USB flash drive and it did not have the content on it I expected. Is it possible the camera footage is saved to internal storage on the Tesla system? |
I did pull the Raspberry Pi to confirm and no, the video files were indeed missing. I’ve had no problems on flash drives on either vehicle, so switched back to those for now. |
Were there RecentClips though? What I noticed when this issue first started happening, RecentClips were still being recorded and snapshotted, and so it was still possible to see Sentry events in the RecentClips timeline in the web interface. It was like the car just stopped bothering to move Sentry recordings to their own folder. Then with a later software update the car stopped recording altogether. Or rather it stopped seeing the drive, including plain USB drives. |
@marcone That is inline with what I saw, plain USB drives had the same issue. @Gizmotoy You mention checking the RPi and seeing the same thing as others but what about the USB drive you are now putting your trust in? I would seriously suggest you remove your USB drive and check it on the PC too. |
USB drive has been 100% flawless for me. We discussed this pretty extensively above over the past month or two. The behavior has followed through 3 or 4 different vehicle software versions too. Whatever it is is only affecting Teslausb for me. There might have been RecentClips. I’ve done the posted recovery process dozens of times so I didn’t think too much of it when I had to do it again, but then I thought about it a bit more and just put the flash drive back in instead. I guess a mistake. |
The pre-release Bullseye image is on 6.1 and supports TRIM for exFAT, although it does have an annoying issue with my Pi Zero 2 W where the wifi driver crashes when it leaves the range of my AP. |
I tried the pre-release image in my vehicles. No issues yet with exFAT storing sentry mode clips properly. I do have some trouble getting the drive recognized, though. It seems like the car doesn't recognize the drive every third time or so (works fine on my computer, and works in the car after I reboot the center display). |
Hey, I don’t Alan’s to rain on anyone’s parade. But I was using the default file system for years before it acted up. So my assumption would be that any reformat, regardless of the chosen format, would seem to resolve the issue. |
Also if the GitHub gui wasn’t trash on mobile, I’d happily fix my typo from above. |
Are you saying that formatting and reinstalling the TeslaUSB image would fix this issue? I've kept my current install in the hopes that there was an eventual tweak or fix for this. |
Yes, I did a fresh install, but I believe just removing and recreating the cam drive backing file would likely also be sufficient. After my fresh install things have been working normally again for a couple weeks without changing any settings or hardware. |
Sweet, just reformatted the drive and everything is working again. I have no idea why it did that, but I'm happy it's working again. Appreciate it, tomrund! |
I had this issue with WiFi crapping out on my RP4 with the Bullseye image, I found this comment that so far, seems to work for me: Add "modules-load=brcmfmac roamoff=1 feature_disable=0x82000" into /boot/cmdline.txt See here for more info: Ultimately I had to reinstall to solve this issue (sentry folders have no videos). Funny enough the car seems to see them just fine. I di have a growing list of folders with weird names that seemed to correspond to the number of sentry events, but I didn't look into it that much. So while recent clips would grow, I could command the car to erase the video files or reformat the drive and when I checked it again, all the files were still there. So I did a reinstall. I made the drives ExFAT just in case and it is working. Then the issue above happened a few minutes after I got home and it started syncing. Now it stays up, so that's good. The only remaining issue is the script won't keep the car awake unless I manually clear the cache and do the dance mentioned in another issue. |
This method doesn't work for me tried couple times. Still has only two files in folders like these: |
That process solves it pretty routinely for me, but the fix is temporary and returns. Here’s the things I have tried that work temporarily, but the issue eventually returns:
Here’s what I know works:
Here’s what I’m uncertain works:
On my vehicle, now running #2 from this list for about 2.5 weeks, I haven’t seen the issue recur. However, it introduces another issue for about 20% of trips where the drive is not recognized in the vehicle until resetting the MCU. |
Were you expecting these steps to fix existing Sentry events from over a month ago? |
No i tried recently. Same for the files from 2024-04-29 and 2024-04-30. That method is not working. |
I also had the drive not recognized issue a few weeks ago. I thought it had something to do with the Rock Pi 4C+. Every time I plugged that in I'd have to reset the MCU to even get the stock flash drive to be recognized. Issue went away after a software update, had it once today right after the 2024.3.25 update installed. Haven't had the missing video files issue since switching to exFAT. |
What I find odd about this is how there are only two files (and no videos) in the directories, yet while the TeslaUSB is plugged into the car, it can see and play the sentry and dashcam clips just fine? |
Mine wasn't able to play the clips at all. The clips are (or were) saved to the drive in RecentClips, it seems to be an issue with moving them into the event folder. |
For those running a RPi 4C+ what benefit(s) does it offer over a RPi 4 as it relates to Teslausb? |
I use a RockPi 4C+, the benefit for me is USB 3.0 OTG so you dont have to see the slow USB connected notification all the time. My only issue with this SBC is I cant get the HotSpot feature to work. Everything else has been fine. |
@ravibowman is it confirmed hat the USB 3.0 OTG is much faster than the RPi 4? While I reliably use a RPi 4, I've come to ignore the slow USB messages entirely yet there's never been a speed issue, at least thus far. |
Just to add another datapoint, after experiencing this issue for the first time, I re-imaged my TeslaUSB instance and had my first successful Sentry recording afterwards at 2024-04-02_22-34-18 and it worked all the way until 2024-04-24_19-08-52. At some point between that recording and a recording on 2024-04-26_13-48-31, things went awry and I started to experience this issue again. These dates do not coincide with any car software updates (I received 2024.3.25 on Apr 29, 2024 and 2024.3.15 on Apr 12, 2024), I am using the default filesystem and haven't tried switching to exFAT, although I'm tempted to. This time, rather than re-image, I just removed the cam drive backing file as I previously suggested and re-ran setup and things are working normally once again.
I was prompted to |
I ended up in this state again. I saw some discussions in the Discord where users were reporting fsck recovered files after mounting their cam_disk.bin, and after removing these files their issue went away but this hasn't been my experience. When I mount my cam_disk.bin there are no fsck recovered files anywhere in the filesystem. I'm once again getting the |
I believe this issue has been resolved with this commit. I'd recommend updating with |
Will this fix it if it stops working? Mine was working when I reinstalled everything from scratch, but now it reverted to saving only two small files. I did push the dashcam button on the screen to capture an event manually today.. I wonder if that triggers this problem? |
@nickastaldo I did an update then checked the change in the commit has been applied. It hadn't, so I simply manually edited the file in question to match the commit. Only limited testing since then but appears to be working so far. Maybe that commit has not been merged in the main branch yet? I didn't bother digging further to see why the update didn't work. |
Hopefully google picks up on this. This fixed my missing video clip issues with my teslacam sentry mode and dashcam mode. More SEO following. Missing video clip teslacam sentry mode and dashcam using teslausb but json and folder present. |
Switching to EXFAT FS worked out well and all event files are being archived (including newest event.mp4 that is short file from exact time of sentry event. However, it seems that fstrim does not work as indicated in log snippet below:
|
@cleanev if I remember correctly exfat fstrim support was added with Linux kernel 5.13. Are you using a kernel older than that? |
Thanks @marcone. I was under the impression that I was using bullseye image.
|
Oh man, I find myself in a situation where I really need the Saved video files and don't have them. I didn't realize I had this problem until I went to review the video from an incident. I don't see the files in the mounted directory. Am I correct in assuming they're not retrievable in any way? (I made the recording by pressing the camera button) |
Check the live, always running recording in recent, top of the list, it may still have the video. If so pull the pi out and hook it up to a computer to pull the files of it. |
It wasn't in Recents. I was on a two-week road trip and the event I'm interested in was a week ago. |
Describe the problem
Till February 23, all Sentry & Saved filed were synced using rclone. 2/23 at the end of the day updated to latest version 2024.2.7 and now every single day there are just 2 files named event.json and thumb.png files are the only 2 that gets uploaded. What else should I look into. Will check another car where 2024.2.7 version got updated few days later.
Today (March3 ) updated teslausb using self update and still cannot get older saved and sentry files are uploaded.
Tried to check to best of my understanding and found sentry_found_files file in tmp folder that has below logged
The text was updated successfully, but these errors were encountered: