NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 … 21 22 23 24 25 … 43 Next »
NextPVR on Raspberry PI 4 having issues with mycloud

 
  • 0 Vote(s) - 0 Average
NextPVR on Raspberry PI 4 having issues with mycloud
DavidD
Offline

Junior Member

Canada
Posts: 24
Threads: 5
Joined: Jun 2020
#1
2021-06-08, 12:00 AM (This post was last modified: 2021-06-08, 12:34 AM by DavidD.)
Hi there,

I am using the latest version of Raspberry OS 32 bit and the latest version of NextPVR. I am trying to record and watch tv using my WD Mycloud as a recording storage/mycloud. I have successfully mounted a wd mycloud share using the following line on my fstab file -


//192.168.0.118/NextPVR /home/pi/wdmycloud cifs username=pi,password=*******,workgroup=WORKGROUP,file_mode=0777,dir_mode=0777,uid=pi,gid=pi,forceuid,forcegid 0 0

This is a public share.

It works fine as I can write to the share no problem from the raspberry pi. When I try to watch a channel though I get a Failed to start requested them error.  Here is the error that shows up in the log.

021-06-07 19:26:31.761 [ERROR][24] Unexpected error creating TSWriter map: System.UnauthorizedAccessException: Access to the path '/live-CBOT-DT-603-1.ts.map' is denied. 
---> System.IO.IOException: Permission denied
  --- End of inner exception stack trace ---
  at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
  at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
  at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
  at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
  at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
  at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes)
  at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
  at NShared.Writer.OutputSink..ctor(String filename)

I cannot record anything either.

I also tried in accordance to another thread that I saw on the NextPVR blog to change the credentials under which the service runs from user nextpvr to user pi group pi - but that never worked. I got some kind of internal error on the screen and here is the type of error I received in the log.

...startup]
2021-06-07 17:11:30.555 [INFO][1] See LICENSE.txt for license information
2021-06-07 17:11:30.559 [DEBUG][1] No /var/opt/nextpvr/scripts/PreStartup.sh
2021-06-07 17:11:30.584 [DEBUG][1] Checking if upgrade required
2021-06-07 17:11:30.590 [DEBUG][1] master file is /opt/nextpvr/system/data/Config-master-dont-edit.xml
2021-06-07 17:11:30.596 [DEBUG][1] Doing database updates
2021-06-07 17:11:30.598 [DEBUG][1] Database: /var/opt/nextpvr/npvr.db3
2021-06-07 17:11:30.984 [INFO][1] Version 5.1.2.210603
2021-06-07 17:11:31.408 [DEBUG][1] CaptureSource.LoadAll()
2021-06-07 17:11:31.684 [WARN][1] Error discovering HDHR devices: Resource temporarily unavailable Resource temporarily unavailable
2021-06-07 17:11:32.726 [WARN][1] Error discovering HDHR devices: Resource temporarily unavailable Resource temporarily unavailable
2021-06-07 17:11:33.772 [WARN][1] Error discovering HDHR devices: Resource temporarily unavailable Resource temporarily unavailable
2021-06-07 17:11:34.824 [WARN][1] Error discovering HDHR devices: Resource temporarily unavailable Resource temporarily unavailable
2021-06-07 17:11:35.847 [WARN][1] Error discovering HDHR devices: Resource temporarily unavailable Resource temporarily unavailable
2021-06-07 17:11:36.891 [WARN][1] Error discovering HDHR devices: Resource temporarily unavailable Resource temporarily unavailable
2021-06-07 17:11:37.940 [WARN][1] Error discovering HDHR devices: Resource temporarily unavailable Resource temporarily unavailable
2021-06-07 17:11:39.212 [DEBUG][1]

If I do not use the wd mycloud to record/watch tv, NextPVR performs fine. I even tried unmounting the wd mycloud from the pi and tried to write to the same directory to which the wd mycloud was mounted and it worked.


I am far from an expert in Linux. I have spent way too many hours on this issue and am just about ready to give up on it. Anyways, any help you can give me would be greatly appreciated. Thanks.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,947
Threads: 956
Joined: May 2006
#2
2021-06-08, 12:06 AM
It feels like your live buffer folder is incorrect, possibly set just to / Please upload you zipped logs and I can have a look.

Martin
DavidD
Offline

Junior Member

Canada
Posts: 24
Threads: 5
Joined: Jun 2020
#3
2021-06-08, 11:06 PM
Thank you for your quick response

I could not record to / . I got some kind of transcode error. So, I unmounted my wdmycloud and tried to record to the directory to which I normally mount the wdmycloud. This worked except I could not watch tv and record at the same time which could be because I am on a low powered Raspberry PI 4. I can live with that. I am afraid I cannot attach a zip file. Everytime I drag and drop the file, the browser would like to open the file for some strange reason. I have tried the latest version of Chrome, Edge and Internet Explorer. Is there an alternative way to send you a log or do you know what I am doing wrong.

Thanks,
Dave.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,947
Threads: 956
Joined: May 2006
#4
2021-06-08, 11:48 PM
Instead of dragging and dropping click that region of the forum and you will get a dialog to attach a zip file. Failing that use cloud storage (Dropbox, Goggle Drive, and OneDrive)

You shouldn't be able to record to / on linux,

Don't expect to watch anything in the web browser using the RPi, you would need a direct play client for that. That would be Kodi, or dedicated apps for Apple, Android or Roku.

Martin
DavidD
Offline

Junior Member

Canada
Posts: 24
Threads: 5
Joined: Jun 2020
#5
2021-06-09, 01:04 AM
Thank you once again. Here is my log.


Attached Files
.zip   nrecord.zip (Size: 86.7 KB / Downloads: 2)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,947
Threads: 956
Joined: May 2006
#6
2021-06-09, 01:26 AM
That's not really what I wanted. I asked for the zipped logs which you get from the Settings page as explained on the wiki for support.

However I can see another issue, it doesn't look like CBOT (I live in Ottawa BTW) was mapped to any available tuners perhaps because of the failed attempt to write to / so that would have been on problem for a while. I figure tuner1 was locked and you would have needed to restart the server to free it.

As expected transcoding is bad. 1/3 real time for CBOT and CJOH will be worse. You need a direct play client.

2021-06-08 17:34:52.652 [DEBUG][42] [FFMPEG]: frame= 1806 fps= 19 q=26.0 size=N/A time=00:00:30.48 bitrate=N/A speed=0.317x

AFAIK you should be able to recording to a properly mounted share. I suspect if you find the gid for the video group and use that in your fstab you will be ok.

getent group video

Martin
DavidD
Offline

Junior Member

Canada
Posts: 24
Threads: 5
Joined: Jun 2020
#7
2021-06-09, 08:50 PM
Ohhhh, another Ottawanian - good to hear. Thank you again for your response.

Here is my zipped file again. I am not sure if it has what you want to look at though because I deleted some of the .1 and .2 logs just to try and simplify what you were looking at because I had been trying so many different combination of things.

How do I go about finding the gid for the video group and are you talking about finding the gid on the pi or the wdmycloud? Do I replace it the gid=pi in the /etc/fstab file. The directory that I am using in the WD mycloud is designated as Public.

I had this same setup working (at least I thought it was the same) on a previous version of NextPVR without the video gid. I know I did have it working without the video gid. Unfortunately, I do not know what version it was.

Thanks,
Dave.


Attached Files
.zip   logs-20210609-1632.zip (Size: 29.83 KB / Downloads: 2)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,947
Threads: 956
Joined: May 2006
#8
2021-06-09, 09:09 PM
I was only throwing that out there (with the example command to find it) if it worked before it will work again, the file system has nothing to do NextPVR. In fact I have a policy about not support users with Linux and I've already gone further then I should. The RPi is a learning device for a reason.

Also I have yet to see a log where you actually used that folder with a share or used direct play client (Kodi on Raspbian is not great BTW) so I think my work here is done.

Martin
DavidD
Offline

Junior Member

Canada
Posts: 24
Threads: 5
Joined: Jun 2020
#9
2021-06-10, 11:54 PM
Hi,

Thanks for your help anyways. I have spent many thought this might be out of a lot of people's domain of responsibility. But I was kind of desperate. As I said, I have spent several hours trying to save this issues.

I did not send you the logs with me trying to share the drive because I had tried so many different things and thought it would be confusing to troubleshoot. So, I was only giving you what I thought you were asking for. I thought you wanted to troubleshoot one step at a time by just trying one simple operation at a time and then looking at the log.

But I do not blame you for spending more time on this case as I have already wasted way too much time. I am thinking of just buying a drive to attach directly to the pi to simplify things instead of recording to a NAS.

Thanks again for attempting to help,
Dave.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,947
Threads: 956
Joined: May 2006
#10
2021-06-11, 12:34 AM
Maybe I'm confused since I thought the only issue now recording to the share.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  DVB-S2 & DVB-T on Docker, Nextpvr sees both but only scans DVB-S2 seapoint 16 586 2025-05-30, 09:36 AM
Last Post: seapoint
  Controlling the nextpvr server from Jellyfin (via the nextpvr plugin) (no recording) kfmf 2 348 2025-05-04, 02:21 PM
Last Post: mvallevand
  I'm using nextpvr with jellyfin which I share with family. Besse1953 1 281 2025-04-18, 01:01 PM
Last Post: mvallevand
  Successful import from MythTV DB to NextPVR Allan 0 258 2025-02-10, 09:51 PM
Last Post: Allan
  Kodi playback issues - Stupid Android TV? aTF6i 33 2,315 2024-11-18, 02:54 PM
Last Post: mvallevand
  Connection Timeout Issue When Selecting Channels in Kodi with NextPVR Paul92 9 1,202 2024-11-02, 11:40 PM
Last Post: mvallevand
  Can NextPVR work well under docker on oldish hardware? ramiroelliot 1 370 2024-10-29, 11:36 PM
Last Post: sub
  Looking at NextPVR to possibly replace my SageTV implimentation BigBillSD 4 582 2024-10-10, 09:00 PM
Last Post: BigBillSD
  Help Automating M3U Channel Refresh NextPVR on Unraid (AMD64) mcs_94 5 660 2024-10-06, 08:29 PM
Last Post: sub
  NextPVR Deleted All My Important Files on SSD yngsadstn 4 763 2024-09-15, 08:38 AM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode