HclX/WyzeHacks

Directory permission issue with firmware 4.9.6.241

unomar opened this issue · 9 comments

I'm curious if others are seeing this, but since upgrading my V2's to 4.9.6.241 (with v0.5.04 wyzehacks) any new directories created under the record dir have 644 permissions instead of 755. This then prevents the creation of anything below it as the camera doesn't have the ability to execute on directories. I tried re-flashing the stock firmware and re-applying WyzeHacks, but no luck. Reverting to 4.9.6.199 restored the functionality (directories 755, files 644).

4.9.6.241

$ ls -al
total 16
drwxr-xr-x.   4 nobody nobody 4096 Mar 18 15:00 .
drwxr-xr-x. 145 nobody nobody 4096 Mar 18 00:00 ..
drw-r--r--.   2 nobody nobody 4096 Mar 18 14:20 14
drw-r--r--.   2 nobody nobody 4096 Mar 18 15:00 15
$ ls -al 15
total 0                                                                                                                                                                                                                                                                                                                       
d????????? ? ? ? ?            ? .                                                                                                                                                                                                                                                                                             
d????????? ? ? ? ?            ? ..

4.9.6.199

$ ls -al
total 12
drwxr-xr-x.   3 nobody nobody 4096 Mar 18 15:18 .
drwxr-xr-x. 145 nobody nobody 4096 Mar 18 15:18 ..
drwxr-xr-x.   2 nobody nobody 4096 Mar 18 15:28 15
HclX commented

I don't have this problem but I remember I did something on the server side to do "user mapping" , can't recall any details though.

Interesting. Out of curiosity I flashed one of my cams to stock 6.241 and let it record to the actual SD card. That worked as expected creating directories with the correct permissions. So some combination of that firmware with this mod and my NFS server just isn't happy.

Previously I had been running wyzehacks v 0.4.04 and everything worked great until the 6.241 firmware update which forced me to upgrade my wyzehacks to 0.5.04.

I'll look into NFS user mapping, but I might also dig around in the code to see if I can figure out why it suddenly broke.

HclX commented

The lastest version hack should also work with older version firmware. Can you try different combinations to isolate the issue?

Permissions are correct with 0.5.04 and 4.9.6.199.

I'll test 4.9.6.218 tomorrow. Also, I just noticed that 6.241 has this note on the download page
This firmware update has been paused while we investigate the cause of an issue that may be related to this update. If we find that the update is not the cause, we will resume the rollout.

HclX commented

Good call on the FAT32 permissions. I didn't even consider that. It's unfortunate as it means they might not care to fix it since it wouldn't affect normal SD card users. The chatter on the Wyze Forums seems to indicate the reason the firmware rollout was paused is due to sound sensitivity which doesn't seem related to my issue.

Permissions are correct with 0.5.04 and 4.9.6.218.

So it does appear to be something injected in the 241 firmware that is incompatible with my NFS settings.

Closing as this appears to be caused by Wyze firmware & local NFS configuration.

I'm seeing exactly this issue using NFSv3 (rw,sync,no_subtree_check,all_squash,anonuid=1000,anongid=1000) on a ZFS backed NFS. I'm also using the latest (4.9.6.241) firmware and am thus, without changing directory permissions manually, unable to save recordings to my server.

Downgrading to 4.9.6.218 is enough to resolve the permission issues.