Jump to content

Question about file system permissions


crossfire13148

Recommended Posts

crossfire13148

Tuner works (sometimes the first minute will pay a few seconds, lag, then repeat but finally "balances out" and plays smooth)
Guide works
play from emby works

record does not.
on the tuner status page, it never shows emby using any tuners for recording
but does when i manually watch something.

searched forums, checked permissions of the recording folder i created, as well as leaving it blank for emby to use default

no idea what to do next.

Thank You

Link to comment
Share on other sites

Hi.  Please explain exactly what you've done and what is happening and provide a log from a time when a recording should have occurred.  How did you setup the recordings?

 

Link to comment
Share on other sites

crossfire13148

explained all what i have done
ill start a record event shortly, server currently processing files

i went to guide, opened show, clicked record series then waited, while refreshing the "tuner status" page on the tuner, nothing ever happened, and no files ever showed up in recordings

log will be posted shortly.

Link to comment
Share on other sites

24 minutes ago, crossfire13148 said:

i went to guide, opened show, clicked record series then waited,

Was an episode of that series playing at the time?

If you go to the Series recording screen for that series, does it show upcoming episodes that will be recorded?  Are those indicators red?

What options were selected for the series recording?

Link to comment
Share on other sites

crossfire13148

yes, i picked the news, it was prob about 10 minutes into it, with others following it

both indicators were red, and when i click scheduled, it showed all the episodes that week 

right now as a test i just picked  "grace"

starts 0930 EST. it is 0924EST now

all channels, all times. it is in scheduled, with other air times also

episodes are as follows for today
0930-1000
1000-1030
1030-1100

it isnt red for the episodes 0900-0930 that is currently playing right now

channel 9.4 WSYRDT4 - LAFF
from emby guide USA-OTA13148

Link to comment
Share on other sites

Do you have any episodes from this series already on your system?

Link to comment
Share on other sites

Hi, yes please go over a specific example and attach the corresponding emby server log. Thanks.

Link to comment
Share on other sites

crossfire13148

2021-08-05 12:59:59.999 Info LiveTV: Recording timer fired for Grace Under Fire.
2021-08-05 13:00:00.003 Info HttpClient: GET https://www.thetvdb.com/api/GetSeriesByRemoteID.php?zap2it=EP00083865&language=en
2021-08-05 13:00:00.196 Info HttpClient: GET https://www.thetvdb.com/api/B89CE93890E9419B/series/75035/all/en.zip
2021-08-05 13:00:00.676 Info App: MovieDbProvider: Finding id for item: Grace Under Fire
2021-08-05 13:00:00.676 Info HttpClient: GET https://api.themoviedb.org/3/search/tv?api_key=f6bd687ffa63cd282b6ff2c6877f2669&query=Grace+Under+Fire&language=en
2021-08-05 13:00:00.899 Info HttpClient: GET https://private.omdbapi.com?apikey=fe53f97e&plot=full&r=json&s=Grace+Under+Fire&type=series
2021-08-05 13:00:01.255 Info LiveTV: Getting media sources for recording from channel 17856 17856
2021-08-05 13:00:01.255 Info LiveTV: Opening live stream for recording from channel 17856 17856
2021-08-05 13:00:01.255 Info LiveTvManager: Opening channel stream from Emby, external channel Id: hdhr_9.4
2021-08-05 13:00:01.255 Info LiveTV: Streaming Channel hdhr_9.4
2021-08-05 13:00:01.256 Info HdHomerunHost: GetChannelStream: channel id: hdhr_9.4. stream id: native_4b17dc7f16230949399eeffd11c5fa6a_d017467bc2ace79ac208892dc3f49761 profile: native
2021-08-05 13:00:01.256 Info SharedHttpPipelineSource: Opening SharedHttpPipelineSource Live stream from http://10.100.100.50:5004/auto/v9.4
2021-08-05 13:00:01.256 Info HttpClient: GET http://10.100.100.50:5004/auto/v9.4
2021-08-05 13:00:01.676 Info HttpClient: Http response 200 from http://10.100.100.50:5004/auto/v9.4 after 421ms. HeadersServer=HDHomeRun/1.0, Connection=close, Cache-Control=no-cache, transferMode.dlna.org=Streaming, Date=Thu, 05 Aug 2021 13:00:03 GMT, X-HDHomeRun-Resource=tuner0
2021-08-05 13:00:01.677 Info SharedHttpPipelineSource: Beginning SharedHttpPipelineSource stream to /var/lib/emby/transcoding-temp/9a5971e17ff341258b88288df0d0d1d3.ts
2021-08-05 13:00:01.677 Info HdHomerunHost: Live stream opened after 421.1209ms
2021-08-05 13:00:01.677 Info LiveTV: Returning mediasource streamId native_4b17dc7f16230949399eeffd11c5fa6a_d017467bc2ace79ac208892dc3f49761, mediaSource.Id native_4b17dc7f16230949399eeffd11c5fa6a_d017467bc2ace79ac208892dc3f49761, mediaSource.LiveStreamId null
2021-08-05 13:00:01.678 Info MediaSourceManager: Live stream opened: {"Protocol":"Http","Id":"native_4b17dc7f16230949399eeffd11c5fa6a_d017467bc2ace79ac208892dc3f49761","Path":"http://127.0.0.1:8096/LiveTv/LiveStreamFiles/9a5971e17ff341258b88288df0d0d1d3/stream.ts","Type":"Default","Container":"mpegts","IsRemote":false,"ContainerStartTimeTicks":338824467890,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":false,"IsInfiniteStream":true,"RequiresOpening":true,"RequiresClosing":true,"LiveStreamId":"06044cf0e6f93cdae5f285c9ecfaaeb4_01413a525b3a9622ce6fdf19f7dde354_native_4b17dc7f16230949399eeffd11c5fa6a_d017467bc2ace79ac208892dc3f49761","RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"mpeg2video","StreamStartTimeTicks":338827761220,"TimeBase":"1/90000","CodecTimeBase":"1001/30000","VideoRange":"SDR","DisplayTitle":"480i MPEG2VIDEO","IsInterlaced":true,"BitRate":3000000,"BitDepth":8,"RefFrames":1,"IsDefault":false,"IsForced":false,"Height":480,"Width":704,"AverageFrameRate":29.97003,"RealFrameRate":29.97003,"Profile":"Main","Type":"Video","AspectRatio":"16:9","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p","Level":8,"IsAnamorphic":true},{"Codec":"ac3","StreamStartTimeTicks":338824467890,"TimeBase":"1/90000","CodecTimeBase":"1/48000","DisplayTitle":"Und AC3 stereo","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":96000,"Channels":2,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File"}],"Formats":[],"Bitrate":3096000,"RequiredHttpHeaders":{},"ReadAtNativeFramerate":false}
2021-08-05 13:00:01.678 Info LiveTV: Recording ensure file unique input: /home/crossfire/media/tuner/Grace Under Fire (1993)/Season 1/Grace Under Fire S01E13 Simply Grace.ts
2021-08-05 13:00:01.678 Info LiveTV: Recording ensure file unique result: /home/crossfire/media/tuner/Grace Under Fire (1993)/Season 1/Grace Under Fire S01E13 Simply Grace.ts
2021-08-05 13:00:01.678 Info LiveTV: Will record to /home/crossfire/media/tuner/Grace Under Fire (1993)/Season 1/Grace Under Fire S01E13 Simply Grace.ts for 29.972022716666668 minutes.
2021-08-05 13:00:01.681 Error LiveTV: Error recording to /home/crossfire/media/tuner/Grace Under Fire (1993)/Season 1/Grace Under Fire S01E13 Simply Grace.ts
    *** Error Report ***
    Version: 4.6.4.0
    Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
    Operating system: Linux version 5.4.0-80-generic (buildd@lcy01-amd64-030) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #90-Ubuntu SMP Fri Jul 9 22:49:44 UTC 2021
    Framework: .NET Core 3.1.13
    OS/Process: x64/x64
    Runtime: opt/emby-server/system/System.Private.CoreLib.dll
    Processor count: 32
    Data path: /var/lib/emby
    Application path: /opt/emby-server/system
    System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/home/crossfire/media/tuner/Grace Under Fire (1993)/Season 1' is denied.
     ---> System.IO.IOException: Permission denied
       --- End of inner exception stack trace ---
       at System.IO.FileSystem.CreateDirectory(String fullPath)
       at System.IO.Directory.CreateDirectory(String path)
       at Emby.Server.Implementations.IO.ManagedFileSystem.CreateDirectory(String path)
       at Emby.LiveTV.DirectRecorder.RecordFromDirectStreamProvider(IDirectStreamProvider directStreamProvider, String targetFile, TimeSpan duration, Action onStarted, CancellationToken cancellationToken)
       at Emby.LiveTV.EmbyTV.RecordStream(TimerInfo timer, DateTimeOffset recordingEndDate, ActiveRecordingInfo activeRecordingInfo)
    Source: System.IO.FileSystem
    TargetSite: Void CreateDirectory(System.String)
    InnerException: System.IO.IOException: Permission denied
    Source: 
    TargetSite: 
    

Link to comment
Share on other sites

Hi

Access to the path '/home/crossfire/media/tuner/Grace Under Fire (1993)/Season 1' is denied.

It looks like you have a permission problem not allowing Emby to write to that location.

Link to comment
Share on other sites

crossfire13148

ls -l output

drwxr-xr-x 29 crossfire crossfire 4096 Aug  4 09:28 movies
drwxr-xr-x 37 crossfire crossfire 4096 Aug  3 19:41 series
drwxr-xr-x  2 crossfire crossfire 4096 Aug  4 08:01 tuner

they are set for 755?

Link to comment
Share on other sites

crossfire13148

hmmm might also be why i am not finding NFO files.....

ok how to fix this?

have to be careful, so as not to break my ftp to the folder!

Link to comment
Share on other sites

Is the user running Emby Server the owner with write permission?

Link to comment
Share on other sites

crossfire13148

changing owner on tuner folder to emby:emby gets recording to work, but lose ability for me to write to that folder over ftp

for now though i am thinking i will leave it like that.

however, i need to be able to allow emby to write to the other media folders, without losing my ftp access to them....

so i am lost on how to do permissions

Link to comment
Share on other sites

This sounds like a permission/group issue in the FTP setup.

You need to make sure the user running the FTP server also has proper permissions to read/write to those directories if you use FTP to put files there.

Just curious but why are you using FTP vs file sharing?  Is this a remote server or local?

 

Link to comment
Share on other sites

crossfire13148

i had samba running, and the drives were there, then no access, then there, then no access. it was random

no access, reboot would have access for about 20 minutes, then nothing.

wiped server, started over, used ftp

 

i chowned the folderers as emby:crossfire, and now i have ftp and emby works, dont know if that is the right thing or not, but eh? lol

 

again, new to ubuntu

Link to comment
Share on other sites

Why did you change group owner ship to crossfire?

Any reason why you're trying to change ownership vs just giving the ftp user read/write access to the media?

File system access would be a lot easier to do than FTP for local use.  You just need to set it up properly.

Link to comment
Share on other sites

crossfire13148

why? simple, like i said before, new to ubuntu, and have no clue about those permissions!

in windows, i just set permissions to users,  ubuntu, i am not seeing those options anywhere!

and everything i read tells me to chown it, so emby can access it, but the files still belong to the crossfire group

and i have not found anything to allow me to add crossfire to the emby needed folders

Link to comment
Share on other sites

I don't want this to come across the wrong way but it probably will anyway. :)

It's imperative when running any type of unix/linux environment to completely understand how permissions work for users, user accounts and groups.
It's the one thing you really want to Google and read up on to fully understand if nothing else on these OSes.

 

  • Agree 1
Link to comment
Share on other sites

crossfire13148

kind of....

so i know it was a file permission issue.

the answer was don`t do it that way, and google how to do it....

seems to me the same as "it`s broken", and the response is "well fix it"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...