viofosync icon indicating copy to clipboard operation
viofosync copied to clipboard

Error: recordings path not writable

Open acheslow opened this issue 5 months ago • 4 comments

After upgrading from 2.1 to 2.2 the UI now shows "Error: recordings path not writable" in the top menu bar. However, I can exec into the container and manually write to the /recordings directory both as root and as the dashcam user.

I've tried nuking my config directory and starting over, and tried setting RECORDINGS_QUOTA_GB to 0 with no success.

Infra setup:

  • Docker running in proxmox LXC.
  • Synology NFS mounted in PVE host, mapped to LXC mountpoint, and bind mounted into container
  • Also passing in GPU for qsv encoding (not yet working but that's a separate issue)
  • Worked fine in versions 1.x and 2.1

Docker compose:

  viofosync:
    devices:
      - /dev/dri/renderD128:/dev/dri/renderD128
      - /dev/accel:/dev/accel
    environment:
      RECORDINGS_QUOTA_GB: 0
      PUID: 1026
      PGID: 100
      TZ: America/Los_Angeles
    image: robxyz/viofosync
    ports:
      - 8080:8080
    volumes:
      - ./config:/config
      - /mnt/nfs/media/dashcam/viofosync:/recordings:rw

docker exec -it viofosync-viofosync-1 /bin/sh

/recordings # id
uid=0(root) gid=0(root) groups=0(root),0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
/recordings # ls
1999-11-30  2026-02-10  2026-02-22  2026-03-06  2026-04-20  2026-05-25  2026-06-05
2005-06-30  2026-02-17  2026-02-26  2026-04-06  2026-04-21  2026-06-03  2026-06-06
2026-02-06  2026-02-20  2026-02-27  2026-04-07  2026-05-09  2026-06-04
/recordings # touch foo
/recordings # ls
1999-11-30  2026-02-10  2026-02-22  2026-03-06  2026-04-20  2026-05-25  2026-06-05
2005-06-30  2026-02-17  2026-02-26  2026-04-06  2026-04-21  2026-06-03  2026-06-06
2026-02-06  2026-02-20  2026-02-27  2026-04-07  2026-05-09  2026-06-04  foo
/recordings # rm foo
/recordings # ls
1999-11-30  2026-02-10  2026-02-22  2026-03-06  2026-04-20  2026-05-25  2026-06-05
2005-06-30  2026-02-17  2026-02-26  2026-04-06  2026-04-21  2026-06-03  2026-06-06
2026-02-06  2026-02-20  2026-02-27  2026-04-07  2026-05-09  2026-06-04
/recordings # su dashcam
/recordings $ id
uid=1026(dashcam) gid=100(users) groups=100(users)
/recordings $ ls
1999-11-30  2026-02-10  2026-02-22  2026-03-06  2026-04-20  2026-05-25  2026-06-05
2005-06-30  2026-02-17  2026-02-26  2026-04-06  2026-04-21  2026-06-03  2026-06-06
2026-02-06  2026-02-20  2026-02-27  2026-04-07  2026-05-09  2026-06-04
/recordings $ touch foo
/recordings $ ls
1999-11-30  2026-02-10  2026-02-22  2026-03-06  2026-04-20  2026-05-25  2026-06-05
2005-06-30  2026-02-17  2026-02-26  2026-04-06  2026-04-21  2026-06-03  2026-06-06
2026-02-06  2026-02-20  2026-02-27  2026-04-07  2026-05-09  2026-06-04  foo
/recordings $ rm foo
/recordings $ ls
1999-11-30  2026-02-10  2026-02-22  2026-03-06  2026-04-20  2026-05-25  2026-06-05
2005-06-30  2026-02-17  2026-02-26  2026-04-06  2026-04-21  2026-06-03  2026-06-06
2026-02-06  2026-02-20  2026-02-27  2026-04-07  2026-05-09  2026-06-04
/recordings $ 

docker logs:

06/07/2026
01:38:20 PM
INFO:     Started server process [1]
INFO:     Waiting for application startup.

06/07/2026
01:38:20 PM
2026-06-07 13:38:20,147 INFO viofosync.web: viofosync web UI ready on http://0.0.0.0:8080/
2026-06-07 13:38:20,147 INFO viofosync.web: archive root: /recordings | dashcam: viofo.lan
2026-06-07 13:38:20,148 INFO viofosync.web: initial archive scan: starting (/recordings)
2026-06-07 13:38:20,194 INFO viofosync.web: initial archive scan: 3 clips indexed

06/07/2026
01:38:51 PM
2026-06-07 13:38:51,178 INFO viofosync.exporter: encoder qsv is compiled in but failed runtime test — skipping (likely needs GPU passthrough or driver)
2026-06-07 13:38:51,178 INFO viofosync.web: export encoder available: software, vaapi
2026-06-07 13:38:51,179 INFO viofosync.sync_worker: sync worker started
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8080/ (Press CTRL+C to quit)

06/07/2026
01:38:54 PM
INFO:     192.168.1.60:45204 - "WebSocket /api/progress" [accepted]
INFO:     connection open

06/07/2026
01:39:06 PM
INFO:     192.168.1.60:53690 - "GET / HTTP/1.1" 200 OK
INFO:     192.168.1.60:53690 - "GET /api/auth/me HTTP/1.1" 200 OK
INFO:     192.168.1.60:53690 - "GET /api/auth/csrf HTTP/1.1" 200 OK
INFO:     192.168.1.60:53690 - "GET /api/settings HTTP/1.1" 200 OK
INFO:     192.168.1.60:53706 - "GET /api/sync/status HTTP/1.1" 200 OK
INFO:     192.168.1.60:53706 - "GET /api/archive/extract-gps/status HTTP/1.1" 200 OK
INFO:     connection closed
INFO:     192.168.1.60:53700 - "GET /api/archive/days?page=1&per_page=20&sort=desc&driving=true&parking=true&ro=true HTTP/1.1" 200 OK
INFO:     192.168.1.60:53690 - "GET /api/exports HTTP/1.1" 200 OK
INFO:     192.168.1.60:53714 - "WebSocket /api/progress" [accepted]
INFO:     connection open

Archive Retention: Current usage = 36.3% — 6.3 TiB of 17 TiB

acheslow avatar Jun 07 '26 20:06 acheslow

I think this is to do with the os.access check and NFS. I'm planning to release an update in the next couple of days so will replace that check with a real write and delete test

RobXYZ avatar Jun 07 '26 21:06 RobXYZ

Actually, I’ve just changed it on the dev version as I was working on it anyway. If you try pull robxyz/viofosync:dev it will hopefully work for you now

RobXYZ avatar Jun 07 '26 21:06 RobXYZ

It works! Thanks!

acheslow avatar Jun 07 '26 21:06 acheslow

The fix is now in v2.3 and the hardware encoding should also be working

RobXYZ avatar Jun 11 '26 10:06 RobXYZ