CasaOS icon indicating copy to clipboard operation
CasaOS copied to clipboard

[Bug] Plex or SSH ls cmd cannot access files stored in already Merged 2nd SSD

Open BruceZac opened this issue 1 year ago • 0 comments
trafficstars

Describe the bug

Plex Media Server cannot scan files stored in another SSD which already has been successfully Merged into CasaOS HD. Either do the SSH ls command without the using sudo.

To Reproduce

Steps to reproduce the behavior:

  1. original SSD running CasaOS being full
  2. insert another SSD via USB, automatically mounted
  3. Merge the storages into a combined “CasaOS HD” and it’s working.
  4. In File explorer, manually upload a test file as /DATA/Media/Misc/TestVideo.mkv, which is successful.
  5. the physical location can also be viewed in /media/devmon/Media3/Media/Misc/TestVideo.mkv
  6. try SSH ls the Test.Video.mkv of the devmon directory, access denied
  7. try SSH ls the video of the /Data directory, it doesn’t appear.
  8. try Scan the /DATA/Media/Misc directory in Plex, the TestVideo doesn’t appear.
  9. try SSH sudo ls the video of above 2 directories, it appears.

Expected behavior

It should appear as expected using non-sudo SSH or in Plex.

Desktop (please complete the following information):

 - OS: linux
 - CasaOS Version: 0.4.13
 - Disk Total: 939050 
 - Disk Used: 881258 
 - System Info: [Debian GNU/Linux 12   \l Bit:64 Mem:7809M Core:4 Linux raspberrypi 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux ]
 - Remote Version: 0.4.13
 - Browser: Safari 
 - Version: 17.6

System Time

Run timedatectl and share the output

               Local time: Sun 2024-10-06 14:07:17 BST
           Universal time: Sun 2024-10-06 13:07:17 UTC
                 RTC time: n/a
                Time zone: Europe/London (BST, +0100)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

Logs

Run following command to collect corresponding logs:

░░ Subject: A start job for unit casaos-gateway.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit casaos-gateway.service has begun execution.
░░ 
░░ The job identifier is 139.
Oct 05 11:36:51 raspberrypi casaos-gateway[714]: v0.4.8
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: git commit: eeb28d78941cf2746e611c02b148e347c47501da
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: build date: 2024-07-18T08:16:38Z
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] PROVIDE        *service.State <= main.main.func4()
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] PROVIDE        *service.Management <= github.com/IceWhaleTech/CasaOS-Gateway/service.NewManagementService()
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] PROVIDE        *route.ManagementRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewManagementRoute()
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] PROVIDE        *route.GatewayRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewGatewayRoute()
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] PROVIDE        *route.StaticRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewStaticRoute()
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] PROVIDE        fx.Lifecycle <= go.uber.org/fx.New.func1()
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] PROVIDE        fx.Shutdowner <= go.uber.org/fx.(*App).shutdowner-fm()
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] PROVIDE        fx.DotGraph <= go.uber.org/fx.(*App).dotGraph-fm()
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] INVOKE                main.run()
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] RUN        provide: go.uber.org/fx.New.func1()
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] RUN        provide: main.main.func4()
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: 2024-10-05T11:36:51.211+0100        error        Failed to load routes        {"error": "open /var/run/casaos/routes.json: no such file or directory", "filepath": "/var/run/casaos/routes.json", "func": "service.NewManagementService", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/service/management.go", "line": 32}
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] RUN        provide: github.com/IceWhaleTech/CasaOS-Gateway/service.NewManagementService()
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] RUN        provide: github.com/IceWhaleTech/CasaOS-Gateway/route.NewManagementRoute()
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] RUN        provide: github.com/IceWhaleTech/CasaOS-Gateway/route.NewGatewayRoute()
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] RUN        provide: github.com/IceWhaleTech/CasaOS-Gateway/route.NewStaticRoute()
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] HOOK OnStart                main.run.func1() executing (caller: main.run)
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] HOOK OnStart                main.run.func1() called by main.run ran successfully in 32.423203ms
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] HOOK OnStart                main.run.func2() executing (caller: main.run)
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: 2024-10-05T11:36:51.272+0100        info        Checking if service at URL is running...        {"url": "http://[::]:80/ping", "retry": 10, "func": "main.checkURLWithRetry", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 382}
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: 2024-10-05T11:36:51.274+0100        info        Management service is listening...        {"address": "127.0.0.1:35807", "filepath": "/var/run/casaos/management.url", "func": "main.run.func1.1", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 206}
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: 2024-10-05T11:36:51.293+0100        info        New gateway is listening...        {"address": "[::]:80", "func": "main.reloadGateway", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 358}
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] HOOK OnStart                main.run.func2() called by main.run ran successfully in 21.857019ms
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: [Fx] HOOK OnStart                main.run.func3() executing (caller: main.run)
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: 2024-10-05T11:36:51.295+0100        info        Static web service is listening...        {"address": "127.0.0.1:42837", "filepath": "/var/run/casaos/static.url", "func": "main.run.func3", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 311}
Oct 05 11:36:51 raspberrypi casaos-gateway[737]: 2024-10-05T11:36:51.295+0100        info        Notified systemd that gateway is ready        {"func": "main.main.func3", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 157}
Oct 05 11:36:51 raspberrypi systemd[1]: Started casaos-gateway.service - CasaOS Gateway.
░░ Subject: A start job for unit casaos-gateway.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit casaos-gateway.service has finished successfully.
░░ 
░░ The job identifier is 139.


Additional context

BruceZac avatar Oct 06 '24 13:10 BruceZac