NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 11 12 13 14 15 … 34 Next »
Empty files when writing to samba share

 
  • 0 Vote(s) - 0 Average
Empty files when writing to samba share
aimaim
Offline

Junior Member

Deutschland
Posts: 6
Threads: 1
Joined: Jul 2022
#1
2022-07-05, 09:08 PM (This post was last modified: 2022-07-05, 09:15 PM by aimaim.)
Hi there,

I'm running NextPVR on Pi OS. Recording to a local usb thumb drive works, yet recording to my NAS' smb-share doesn't.

The folder 'Manual Recordings' as well as a ts- and a ts.map-file are created on the smb-share, yet the files have 0 bytes.
(I started the test recording for the attached log at 20:34:
.zip   logs.zip (Size: 101.56 KB / Downloads: 2) )
(When I switch user to nextpvr in the pi's shell, writing to the share mounted to '/home/nextpvr/shares/nas/' works flawlessly.)

When I try and play the running recording from the webif it doesn't work, since there hasn't been anything recorded. But trying to play the non existant recording somehow triggers it to actually start recording.
(20:37 in the log)

Then I cancelled the recording. (20:38 in the log)

Excerpt from the pi's '/etc/fstab':
Code:
#for nextpvr
/dev/sda1      /home/nextpvr/shares/flashdrive    exfat noauto,x-systemd.automount,x-systemd.idle-timeout=60,defaults,users,uid=nextpvr,gid=video 0 0
//192.168.187.143/stuff /home/nextpvr/shares/nas cifs noauto,defaults,username=***,password=***,uid=nextpvr,gid=video,x-systemd.automount,x-systemd.requires=network-online.ta>

Excerpt from the pi's shell:
Code:
nextpvr@raspberrypi:~$ cd /home/nextpvr/
nextpvr@raspberrypi:~$ ls -lt
drwxr-xr-x 4 nextpvr nextpvr 4096  5. Jul 18:56 shares
nextpvr@raspberrypi:~$ ls -lt shares/
drwxr-xr-x 3 nextpvr video 131072  5. Jul 22:58 flashdrive
drwxr-xr-x 2 nextpvr video      0 25. Jun 07:35 nas
nextpvr@raspberrypi:~$ ls -lt shares/nas/downloads/
drwxr-xr-x 2 nextpvr video      0  5. Jul 22:11 'Manual Recordings'
nextpvr@raspberrypi:~$ ls -lt shares/nas/downloads/Manual\ Recordings/
-rwxr-xr-x 1 nextpvr video        0  5. Jul 22:38 'DE - SKY SPORT 1 4K_20220705_22342334.xml'
-rwxr-xr-x 1 nextpvr video 40036820  5. Jul 22:11 'DE - SKY SPORT 1 4K_20220705_22342334.ts'

Please disregard
.zip   nrecord.zip (Size: 31.01 KB / Downloads: 1) . Somehow I couldn't successfully delete it. It does not contain the entire test case.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,828
Threads: 954
Joined: May 2006
#2
2022-07-05, 09:57 PM
First mounting shares in /home seems like you are asking for trouble with permission conflicts.

For the deb installer I have never tested for users who decide to create /home/nextpvr

I don't understand the noauto option you are using which will force you to mount the drive manually something you normally don't do with a PVR.

You specify a uid=nextpvr in fstab but does your server even support that uid?

Check dmesg for mount issues

Run getfacl on each folder

getfacl /home/nextpvr -R

Martin
aimaim
Offline

Junior Member

Deutschland
Posts: 6
Threads: 1
Joined: Jul 2022
#3
2022-07-05, 10:20 PM (This post was last modified: 2022-07-05, 10:40 PM by aimaim.)
Why would mounting shares in /home/... be a problem? Works for my tvheadend recording directory exactly like that.
I'm in bed already. Tomorrow I'll try and use /media/... But I'd be suprised if that made a difference.

The noauto option in combination with x-systemd.automount causes the share to be mounted, when it is accessed for the first time, instead of on boot. This is just a precaution to have the system boot without problems, should the share ever not be available.

The option 'uid=nextpvr' is client side. The user does not need to exist on the server side. The user on the server side is determined by the login given.

I'll try your other suggestions tomorrow, yet I don't think there's a mounting or permission issue. After all manually writing to the share as nextpvr does work.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,828
Threads: 954
Joined: May 2006
#4
2022-07-05, 10:31 PM
I didn't see using /home was a problem, just bad form and you must create things appropriately.

As I said this is not a NextPVR problem but good luck tomorrow. It now sure sounds like it is related to your automount choices.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Strange problem writing to CIFS share ehfortin 5 535 2024-12-27, 08:00 PM
Last Post: ehfortin
  NextPVR Server VOD Downloads Incomplete TS Video Files nonuoha 22 3,140 2023-03-26, 09:09 PM
Last Post: mvallevand
  Post Processing and moving files ballfam 16 2,485 2022-12-30, 06:59 PM
Last Post: ballfam
  Think all the script files must've disappeared mlp78758 13 1,580 2022-11-25, 05:34 PM
Last Post: mvallevand
  TV Show recording broken into multiple files markosjal 2 919 2022-07-09, 04:53 AM
Last Post: markosjal
  Debian NextPVR on Cifs share Oempa 7 1,472 2022-07-05, 09:03 PM
Last Post: sub
  Recording to remote samba share dlfergrd 13 3,104 2021-09-03, 08:05 PM
Last Post: dlfergrd
  Orphaned livetv buffer files snagglewest 6 1,479 2021-08-09, 04:23 PM
Last Post: mvallevand
  NextPVR creates empty TS files motocrossmann 11 3,376 2020-06-04, 03:32 PM
Last Post: motocrossmann
  Migrating from recording directory in user's home directory to NAS share rkulagow 3 1,693 2020-05-29, 08:54 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode