Jump to content

Search the Community

Showing results for tags 'permissions'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements
    • Emby Premiere Purchase/Subscription Support
    • Feature Requests
    • Tutorials and Guides
  • Emby Server
    • General/Windows
    • Android Server
    • Asustor
    • FreeBSD
    • Linux
    • NetGear ReadyNAS
    • MacOS
    • QNAP
    • Synology
    • TerraMaster NAS
    • Thecus
    • Western Digital
    • DLNA
    • Live TV
  • Emby Apps
    • Amazon Alexa
    • Android
    • Android TV / Fire TV
    • Windows & Xbox
    • Apple iOS / macOS
    • Apple TV
    • Kodi
    • LG Smart TV
    • Linux & Raspberry Pi
    • Roku
    • Samsung Smart TV
    • Sony PlayStation
    • Web App
    • Windows Media Center
    • Plugins
  • Language-specific support
    • Arabic
    • Dutch
    • French
    • German
    • Italian
    • Portuguese
    • Russian
    • Spanish
    • Swedish
  • Community Contributions
    • Ember for Emby
    • Fan Art & Videos
    • Tools and Utilities
    • Web App CSS
  • Testing Area
    • WMC UI (Beta)
  • Other
    • Non-Emby General Discussion
    • Developer API
    • Hardware
    • Media Clubs

Blogs

  • Emby Blog

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

  1. I am new to Emby, and trying to transition from Synology Video Station. I want to save Emby metadata in a shared folder on my NAS (DS718+), so I can back it up & restore it more easily as needed. I created a shared folder "EmbyServer", but I didn't see Emby among the users, so I couldn't give permission when creating it (of note, Plex created a user when it was installed). When I go to Emby Settings>Library>Advanced settings (1st screenshot), I see an option to enter a path for the metadata. I tried entering /VOLUME1/EmbyServer, but that didn't work (path not found). I tried \\192.168.1.153:8096 (from 2nd screenshot below). I at least got a spinning circle, but eventually got the error message "Emby Server requires write access to this folder. Please ensure write access and try again". If I don't see an Emby option among the users, how can I give permission? The 3rd screenshot displayed the current paths that the metadata, etc is stored under. I can't seem to find these folders anywhere on my NAS. I assume they must be somewhere on the NAS itself. How do I find them? I was using File Station, search all shared folders & search all homes, with search all subfolders active.
  2. bobhope2024

    Casaos

    Hi I have emby on casaos. I have been trying to get emby to read my hard drive but it will not see it. If I type in the pathway for movies for example it says no path known. Even if I use smb. I tried giving full 777 permission which was successful, suddenly casa would not graphically display my hard drive. I had to auto mount to get it back. But it still will not show up when trying to add it in emby. Any suggestions? Thanks
  3. I've upgraded Emby (big mistake, apparently) and spent about 2 hours hunting down forum threads to figure out how to restart the server (systemctl start emby-server did not do it, also had to chmod some Emby folder before the Home page would load. It would be really useful to add that to your documentation on the download page...) I went from 4.5.x to 4.8.3 I think. When I finally had Emby running on localhost again, it was showing the thumbnails of my 2 Libraries (TV and Movie), and the history of what I watched 2 hours earlier, but it suddenly can't see my external harddisk anymore. It saw that same harddisk and ask the files on it perfectly fine on the previous Emby version. And whatever I did trying to change permissions or add emby to some user group (?) , my Sonarr can't now see the external HDD anymore either. I can access the USB harddisk and play the files on it through Ubuntu's file manager without any issues. If I right-click and check permissions, it's owned by corien group corien. Adding emby to group corien did not help. If I try to chmod -R emby:emby /media/corien/diskname I get an Operation not permitted error. I've already restarted Ubuntu several times. Any suggestions before I give up and just reinstall Ubuntu (or some other Linux distro, suggestions welcome) and start fresh?
  4. This is a follow up to a previous thread i made, which seemed solved at the time, but the solution didn't survive a reboot for whatever reason. To recap, plus the current state of affairs: Created user/group emby:emby; uid=1005,gid=1005 Multiple internal HDDs. In this case, two for Movies and two for TV shows. Four total. Each HDD titled something obvious - Movies, Movies2, TV, TV2, and mounted to a corresponding location. Each mounted via fstab to a permanent home in /emby This folder, all subfolders, all future subfolders, and all files & future files owned by emby:emby with full rwx permission. Other users/groups also given access via setfacl command, and by adding them to the emby group. Emby can access the folders. Can scan them. Can build a library out of it all. But it absolutely will not, no matter what I do, delete a file if I so choose, always citing lack of write access to the media folder (picture). Interestingly, I have sickchill running as a service, and it is able to freely read/write/remove/replace files as a member of its group. Ditto for my normal user account. Terminal output: $ id emby uid=1005(emby) gid=1005(emby) groups=1005(emby),984(users),1004(media) $ id sickchill uid=959(sickchill) gid=959(sickchill) groups=959(sickchill),1004(media),1005(emby) $ ps aux | grep emby emby 89410 10.7 2.0 5278848 339104 ? Ssl 12:10 0:19 dotnet /usr/lib/emby-server/EmbyServer.dll -programdata /var/lib/emby -ffdetect /usr/bin/ffdetect-emby -ffmpeg /usr/bin/ffmpeg-emby -ffprobe /usr/bin/ffprobe-emby -restartexitcode 3 $ stat -c "%u %g" /proc/$pid/89410 1005 1005 $ pwd /emby/Videos $ ls -la total 148 drwxrwsrwx+ 6 emby emby 4096 Nov 27 15:52 . drwxrwsrwx+ 3 emby emby 4096 Nov 27 12:24 .. drwxrwsrwx+ 917 emby emby 73728 Dec 4 11:41 Movies drwxrwsrwx+ 349 emby emby 36864 Nov 18 13:34 Movies2 drwxrwsrwx+ 49 emby emby 4096 Nov 17 06:44 TV drwxrwsrwx+ 38 emby emby 4096 Nov 27 03:28 TV2 $ getfacl . # file: . # owner: emby # group: emby # flags: -s- user::rwx user:sickchill:rwx user:zero:rwx group::rwx group:sickchill:rwx group:zero:rwx group:media:rwx group:emby:rwx mask::rwx other::rwx default:user::rwx default:user:emby:rwx default:group::rwx default:mask::rwx default:other::rwx Anybody in the whole wide world should be able to waltz right into that folder and do as they please. Relevant section of embyserver.txt (with specific filename for this instance redacted): 2022-12-04 12:32:06.535 Info App: Removing item from database, Type: Movie, Name: NAME_OF_MOVIE, Path: /emby/Videos/Movies/NAME_OF_MOVIE/NAME_OF_MOVIE.mp4, Id: 142573 2022-12-04 12:32:06.535 Info App: Deleting directory /emby/Videos/Movies/NAME_OF_MOVIE 2022-12-04 12:32:06.538 Error Server: Error processing request *** Error Report *** Version: 4.7.9.0 Command line: /usr/lib/emby-server/EmbyServer.dll -programdata /var/lib/emby -ffdetect /usr/bin/ffdetect-emby -ffmpeg /usr/bin/ffmpeg-emby -ffprobe /usr/bin/ffprobe-emby -restartexitcode 3 Operating system: Linux version 5.15.78-1-MANJARO (builduser@fv-az296-38) (gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39.0) #1 SMP PREEMPT Thu Nov 10 20:50:09 UTC 2022 Framework: .NET 6.0.11 OS/Process: x64/x64 Runtime: usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.11/System.Private.CoreLib.dll Processor count: 6 Data path: /var/lib/emby Application path: /usr/lib/emby-server System.IO.IOException: System.IO.IOException: Access to the path '/emby/Videos/Movies/NAME_OF_MOVIE' is denied. at System.IO.FileSystem.RemoveDirectoryInternal(DirectoryInfo directory, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound) at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive) at System.IO.Directory.Delete(String path, Boolean recursive) at Emby.Server.Implementations.IO.ManagedFileSystem.DeleteDirectoryInternal(String path, Boolean recursive, Boolean sendToRecycleBin) at Emby.Server.Implementations.IO.ManagedFileSystem.DeleteDirectory(String path, Boolean recursive, Boolean sendToRecycleBin) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, Boolean notifyParentItem) at Emby.Api.Library.LibraryService.Any(DeleteItems request) at Emby.Api.Library.LibraryService.Any(DeleteItem request) at Emby.Server.Implementations.Services.ServiceController.<>c__DisplayClass6_0.<VoidActionDelegate>b__0(Object service, Object request) at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Void RemoveDirectoryInternal(System.IO.DirectoryInfo, Boolean, Boolean) Relevant fstab: /dev/disk/by-uuid/76d31525-0484-4678-a193-7846fa49eb8c /emby/Videos/TV ext4 auto,user,rw,sync,uid=1005,gid=1005 0 0 /dev/disk/by-uuid/900dfc5d-63cf-4ca7-bd9c-7108e23013b1 /emby/Videos/Movies2 ext4 auto,user,rw,sync,uid=1005,gid=1005 0 0 /dev/disk/by-uuid/1755aee9-6201-4627-a343-b293c7ce51e8 /emby/Videos/TV2 ext4 auto,user,rw,sync,uid=1005,gid=1005 0 0 /dev/disk/by-uuid/99734e42-5010-4603-b559-5cb414df920f /emby/Videos/Movies ext4 auto,user,rw,sync,uid=1005,gid=1005 0 0 The only thing I can think of as a possibility is that all these HDD mounts are also NFS exports, and bound to corresponding locations in /srv/nfs. But emby:emby also owns those and the facl is identical to what's posted above. Can somebody tell me what I'm doing wrong here? I just want to be able to delete something if I don't like it without having to SSH and/or RDP into the computer this is all running on.
  5. Hi, I'm running my Emby server on Manjaro Linux. The PC has a number of internal HDDs that are mounted at startup, and also shared via NFS. Each of the four HDDs contains one half of my Movies and TV libraries. I created a user and group 'media', and added my user, Emby, and one other service to the group. I set all the mount points to be owned by my user and the media group. Emby is able to read all the libraries, but can't delete something if I so choose. Interestingly, the other service has full rw permission. The folders are mounted in a folder /data, again owned by my user and the media group. I've used setfacl to allow my user, emby, and the other service to specifically create and delete files. Output of ls -l    /data  ls -l  ✔  zero@zero-desktop total 136 drwxrwsrwx+ 910 zero media 73728 Nov 15 15:50 Movies drwxrwsrwx+ 349 zero media 36864 Nov 18 13:34 Movies2 drwxrwsrwx+ 6 zero zero 4096 Nov 10 05:27 Storage drwxrwsrwx+ 49 zero media 4096 Nov 17 06:44 TV drwxrwsrwx+ 35 zero media 4096 Nov 13 17:22 TV2 Not sure what other info to provide. I've actually tried setting the owner as emby:emby, and it didn't make a difference. I've also tried other variations involving my user, my group, the 'media' user and group, the other service's user and group, each time followed by either restarting emby-server.service, or an outright system reboot. Still, when I try and delete a file from within the Emby interface, I get an error about not having write permission. How to I get Emby write access, despite the fact that it should already have it?
  6. Hi, When I add media to Emby it doesn't always automatically update the libraries. I can manually scan the libraries and new media will be added properly, but it doesn't always seem to do it automatically - sometimes it will eventually work and sometimes never. My media is stored across 4x 8TB drives (SATA, internal) formatted for ext4. I have mergerfs setup for the media drives, but emby is pointed to the drives individually (I wondered if there was a hangup using mergerfs instead of directly scanning the drives) and I have been adding new media to the drives directly, not through mergerfs. fstab looks like this: UUID=2137d70f-3027-4fc2-a7d4-08afd99d7c1f / ext4 defaults,noatime 0 1 tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 UUID=cde46ccb-bd05-4351-8fe7-acecaa465851 /home/craigjesslogan/.drivemounts/disk1 ext4 defaults 0 1 UUID=880d344e-1179-4ecd-9d2b-24b24abbf8ef /home/craigjesslogan/.drivemounts/disk2 ext4 defaults 0 1 UUID=ff5cce60-de39-4d4e-aceb-0ec8c2102ce6 /home/craigjesslogan/.drivemounts/disk3 ext4 defaults 0 1 UUID=80ab5b14-d8aa-4246-af4d-d7dd0d51cf0d /home/craigjesslogan/.drivemounts/disk4 ext4 defaults 0 1 /home/craigjesslogan/.drivemounts/disk* /home/craigjesslogan/Media fuse.mergerfs defaults,allow_other,cache.files=partial,use_ino,moveonenospc=true,minfreespace=10G,func.getattr=newest,fsname=mergerfsPool 0 0 Emby is part of the media group - there are no playback issues, and manual scans get everything every time. Here is the output of ls -l on all 4 drives showing that emby has read+write as part of the media group [craigjesslogan@craigjesslogan-x58aud3r ~]$ ls -l /home/craigjesslogan/.drivemounts/disk1 total 36 drwxrwsrwx+ 4 craigjesslogan media 4096 Aug 26 21:06 Backup drwxrwsrwx+ 2 craigjesslogan media 16384 Aug 19 13:32 lost+found drwxrwsrwx+ 2 craigjesslogan media 4096 Aug 29 14:39 MegaSync drwxrwsrwx+ 39 craigjesslogan media 4096 Aug 28 07:34 Movies drwxrwsr-x+ 2 craigjesslogan media 4096 Aug 29 03:50 The.Sims.4.Cottage.Living-CODEX drwxrwsrwx+ 31 craigjesslogan media 4096 Aug 26 13:08 TV [craigjesslogan@craigjesslogan-x58aud3r ~]$ ls -l /home/craigjesslogan/.drivemounts/disk2 total 24 drwxrwsrwx+ 2 craigjesslogan media 16384 Aug 21 19:31 lost+found drwxrwsrwx+ 18 craigjesslogan media 4096 Aug 29 14:32 Movies drwxrwsrwx+ 33 craigjesslogan media 4096 Aug 28 19:00 TV [craigjesslogan@craigjesslogan-x58aud3r ~]$ ls -l /home/craigjesslogan/.drivemounts/disk3 total 24 drwxrwsrwx+ 2 craigjesslogan media 16384 Aug 19 13:34 lost+found drwxrwsrwx+ 20 craigjesslogan media 4096 Aug 29 14:46 Movies drwxrwsrwx+ 33 craigjesslogan media 4096 Aug 29 10:48 TV [craigjesslogan@craigjesslogan-x58aud3r ~]$ ls -l /home/craigjesslogan/.drivemounts/disk4 total 24 drwxrwsrwx+ 2 craigjesslogan media 16384 Aug 19 13:35 lost+found drwxrwsr-x+ 22 craigjesslogan media 4096 Aug 29 18:25 Movies drwxrwsrwx+ 27 craigjesslogan media 4096 Aug 28 14:37 TV I've attached the usual logs that seem to be asked for. I noticed that I don't have any permission denied errors in this most recent log, but in the previous log generated today I did get this error: 2021-08-29 12:44:14.303 Info MediaProbeManager: ProcessRun 'ffprobe' Execute: /usr/bin/ffprobe-emby -i file:"/home/craigjesslogan/.drivemounts/disk2/Movies/Indiana.Jones.and.the.Raiders.of.the.Lost.Ark.1981.BluRay.1080p.TrueHD.Atmos.7.1.AVC.HYBRID.REMUX-FraMeSToR/Indiana.Jones.and.the.Raiders.of.the.Lost.Ark.1981.BluRay.1080p.TrueHD.Atmos.7.1.AVC.HYBRID.REMUX-FraMeSToR.mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data 2021-08-29 12:44:14.314 Info MediaProbeManager: ProcessRun 'ffprobe' Process exited with code 1 2021-08-29 12:44:14.317 Error App: Error in ffprobe *** Error Report *** Version: 4.6.4.0 Command line: /usr/lib/emby-server/EmbyServer.dll -programdata /var/lib/emby -ffdetect /usr/bin/ffdetect-emby -ffmpeg /usr/bin/ffmpeg-emby -ffprobe /usr/bin/ffprobe-emby -restartexitcode 3 Operating system: Linux version 5.13.11-1-MANJARO (builduser@fv-az39-548) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP PREEMPT Sun Aug 15 13:15:18 UTC 2021 Framework: .NET Core 3.1.17 OS/Process: x64/x64 Runtime: usr/share/dotnet/shared/Microsoft.NETCore.App/3.1.17/System.Private.CoreLib.dll Processor count: 12 Data path: /var/lib/emby Application path: /usr/lib/emby-server System.Exception: System.Exception: ffprobe failed for file:"/home/craigjesslogan/.drivemounts/disk2/Movies/Indiana.Jones.and.the.Raiders.of.the.Lost.Ark.1981.BluRay.1080p.TrueHD.Atmos.7.1.AVC.HYBRID.REMUX-FraMeSToR/Indiana.Jones.and.the.Raiders.of.the.Lost.Ark.1981.BluRay.1080p.TrueHD.Atmos.7.1.AVC.HYBRID.REMUX-FraMeSToR.mkv" - streams and format are both null: { } ffprobe version 4.3.0-emby__p__2021_02_27 Copyright (c) 2007-2021 the FFmpeg developers and softworkz for Emby LLC built with gcc 11.1.0 (GCC) file:/home/craigjesslogan/.drivemounts/disk2/Movies/Indiana.Jones.and.the.Raiders.of.the.Lost.Ark.1981.BluRay.1080p.TrueHD.Atmos.7.1.AVC.HYBRID.REMUX-FraMeSToR/Indiana.Jones.and.the.Raiders.of.the.Lost.Ark.1981.BluRay.1080p.TrueHD.Atmos.7.1.AVC.HYBRID.REMUX-FraMeSToR.mkv: Permission denied at Emby.Server.MediaEncoding.Probing.MediaProbeManager.GetMediaInfoInternal(String inputPath, String primaryPath, MediaProtocol protocol, String userAgent, Boolean extractChapters, String probeSizeArgument, Boolean isAudio, Boolean forceEnableLogging, CancellationToken cancellationToken) at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.ProbeVideo[T](MetadataResult`1 metadataResult, MetadataRefreshOptions options, LibraryOptions libraryOptions, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.RunCustomProvider(ICustomMetadataProvider`1 provider, MetadataResult`1 itemResult, String logName, MetadataRefreshOptions options, LibraryOptions libraryOptions, RefreshResult refreshResult, CancellationToken cancellationToken) Source: Emby.Server.MediaEncoding TargetSite: Void MoveNext() TL;DR - manual scans work 100% of the time, automatic scanning works when it wants to if it works at all. The ffprobe error only seems have happened once even though the file had permissions with the media group that emby is part of. embyserver.txt hardware_detection-63765848884.txt
  7. HawkXP71

    Missing media (Mostly TV Shows)

    I have recently moved from DS video to emby. The only issue im having, is for my TV shows as well as some of my movies, they are not showing up in the library even after the media scan has completed. Ive looked at both the regular linux permissions as well as the syno acl permissions, nothing "seems" wrong. I have switch user to the emby user, and I was able to ls and confirm readability of the known missing files. Any ideas on how to track this down?
  8. Hello Community, I was hoping someone else is having a similar problem and perhaps know the reason why after the second to last update of Emby, my collections vanished (both user created, and those generated by the box set plugin). At first I thought it had to be ownership/permissions had become muddled, but all other writes are allowed (updates to metadata, metadata refreshes on intervals, favourites) Here is a breakdown of my formerly working setup: Emby running on Docker - app folder in home directory to utilize the SSD benefit. OS: Fedora 33 - kept up to date daily Docker image is from Linuxserver.io (I chose that image to keep things in line with my other services, and ease of setup Permissions are defined in the docker-compose file for PGID:1000 (logged user) and GUID:973 (docker) however i've also tried chowning the permissions to 1000:1000 in both the .yaml file and filesystem in keeping with linuxserver.io's standard setups.. No joy as of yet.. I'm copying a backup of the emby appdata folder to backup in an attempt to start fresh, if that doesn't work i'll restore and hope that either emby, or the image provider figures it out. One thing worth noting, while I can't make a collection, the Boxset plugin CAN, and I can add and remove from them, if I try to create my own it circles out. I'd really prefer to keep my watched status. not so much for me, but my elderly parents (also my main reason for fighting with collections, so I can narrow down content for them) so I was wondering if the community can : 1) Diagnose what might have happened to either the config or the docker image (last two versions, first time lost all collections, I tried backing up the collections folder and starting new, no joy. or 2) If I create a new instance, which folders to keep so my 2 users keep their watched status. I don't mind rescanning metadata and tailoring the layout again. Any help would be appreciated, I hope I gave the community enough information, so as to not waste your time. Thank You, Ray.
  9. Hello! I recently moved emby to a dedicated server. I installed Kubuntu and added cifs-commons (sudo apt install cifs-commons). My media is on a Synology Diskstation DS918. The config of the library is set to store nfo files and pics alongside the movie in the corresponding movie-folder. In my understanding (after reading a lot of similar problems from other people) that emby is using the user "emby" for file-access. As mentioned from @Lukein different threads, in ubuntu the access to a smb-shares should be done via mounting the share and accessing the mount-point (because there all the user/passwd magic happens). The persmissions on the Diskstations are set to read/write allowed for a user called "media" So I added the following to my /etc/fstab (credentials are stored in the separate file /etc/samba/cred_media.txt): //DS918.HomeNet/Media /media/DS918_Media cifs uid=emby,gid=emby,vers=3.0,credentials=/etc/samba/cred_media.txt,file_mode=0770,dir_mode=0770 0 0 A quick look in the /media folder shows (right before mounting): drwxr-xr-x 2 root root 4096 Apr 13 22:28 DS918_Media/ After mounting (sudo mount /media/DS918_Media): drwxrwxrwx 2 emby emby 0 Apr 15 08:13 DS918_Media/ As current logged on user I can create and write/save files inside the folder structure of DS918_Media with no problems at all. I can also impersonate the emby user ( sudo su -s /bin/bash emby ) --> Also no problems in creating, writing and saving files: - I go into any subdirectory - try touch x.x --> OK - try nano x.x --> put in some stuff --> save and exit -rwxrwxrwx 1 emby emby 9 Apr 15 09:43 x.x* Voila - there is the file x.x with 9 Bytes in size. My problem is, that emby - during the media scan - creates .nfo files with 0 (zero) bytes filesize. The log-file states that there is no write access (for testing a added a new movie before the scan): 2021-04-15 08:43:19.748 Debug App: Running FFProbeProvider for /media/DS918_Media/Kinderfilme/Aladdin.1992/Aladdin.1992.mkv 2021-04-15 08:43:19.748 Info MediaProbeManager: ProcessRun 'ffprobe' Execute: /opt/emby-server/bin/ffprobe -i file:"/media/DS918_Media/Kinderfilme/Aladdin.1992/Aladdin.1992.mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data 2021-04-15 08:43:19.748 Debug MediaProbeManager: ProcessRun 'ffprobe' Started. 2021-04-15 08:43:19.827 Info MediaProbeManager: ProcessRun 'ffprobe' Process exited with code 0 2021-04-15 08:43:19.839 Debug App: Running MovieNfoProvider for /media/DS918_Media/Kinderfilme/Aladdin.1992/Aladdin.1992.mkv 2021-04-15 08:43:19.841 Debug App: MovieNfoProvider returned no metadata for /media/DS918_Media/Kinderfilme/Aladdin.1992/Aladdin.1992.mkv 2021-04-15 08:43:19.841 Debug App: Running MovieDbProvider for /media/DS918_Media/Kinderfilme/Aladdin.1992/Aladdin.1992.mkv 2021-04-15 08:43:19.841 Info App: MovieDbProvider: Finding id for item: Aladdin 2021-04-15 08:43:19.841 Info HttpClient: GET https://api.themoviedb.org/3/search/movie?api_key=f6bd687ffa63cd282b6ff2c6877f2669&query=Aladdin&language=de 2021-04-15 08:43:19.873 Debug App: Running OmdbItemProvider for /media/DS918_Media/Kinderfilme/Aladdin.1992/Aladdin.1992.mkv 2021-04-15 08:43:19.876 Debug App: Running MovieDbImageProvider for /media/DS918_Media/Kinderfilme/Aladdin.1992/Aladdin.1992.mkv 2021-04-15 08:43:19.881 Info HttpClient: GET https://image.tmdb.org/t/p/original/hQYPVTGdpYAVX325fflq41Z4o2X.jpg 2021-04-15 08:43:19.917 Debug ProviderManager: Saving image to /media/DS918_Media/Kinderfilme/Aladdin.1992/poster.jpg 2021-04-15 08:43:19.922 Error ProviderManager: UnauthorizedAccessException: Emby Server is being write access to /media/DS918_Media/Kinderfilme/Aladdin.1992/poster.jpg. Please check your file permissions. Will retry saving to /var/lib/emby/metadata/library/87/87c0cc44d9fb60d67aa9c336e1606c0d/poster.jpg 2021-04-15 08:43:19.922 Debug ProviderManager: Saving image to /var/lib/emby/metadata/library/87/87c0cc44d9fb60d67aa9c336e1606c0d/poster.jpg 2021-04-15 08:43:19.924 Info HttpClient: GET https://image.tmdb.org/t/p/original/5OeY4U2rzePxWq2rkqMajUx2gz7.jpg 2021-04-15 08:43:19.971 Debug ProviderManager: Saving image to /media/DS918_Media/Kinderfilme/Aladdin.1992/fanart.jpg 2021-04-15 08:43:19.977 Error ProviderManager: UnauthorizedAccessException: Emby Server is being write access to /media/DS918_Media/Kinderfilme/Aladdin.1992/fanart.jpg. Please check your file permissions. Will retry saving to /var/lib/emby/metadata/library/87/87c0cc44d9fb60d67aa9c336e1606c0d/backdrop.jpg 2021-04-15 08:43:19.978 Debug ProviderManager: Saving image to /var/lib/emby/metadata/library/87/87c0cc44d9fb60d67aa9c336e1606c0d/backdrop.jpg 2021-04-15 08:43:19.979 Debug App: Running FanartMovieImageProvider for /media/DS918_Media/Kinderfilme/Aladdin.1992/Aladdin.1992.mkv 2021-04-15 08:43:19.981 Info HttpClient: GET https://assets.fanart.tv/fanart/movies/812/hdmovielogo/aladdin-51eefdc189e15.png 2021-04-15 08:43:20.044 Debug ProviderManager: Saving image to /media/DS918_Media/Kinderfilme/Aladdin.1992/clearlogo.png 2021-04-15 08:43:20.049 Error ProviderManager: UnauthorizedAccessException: Emby Server is being write access to /media/DS918_Media/Kinderfilme/Aladdin.1992/clearlogo.png. Please check your file permissions. Will retry saving to /var/lib/emby/metadata/library/87/87c0cc44d9fb60d67aa9c336e1606c0d/clearlogo.png 2021-04-15 08:43:20.049 Debug ProviderManager: Saving image to /var/lib/emby/metadata/library/87/87c0cc44d9fb60d67aa9c336e1606c0d/clearlogo.png 2021-04-15 08:43:20.049 Info HttpClient: GET https://assets.fanart.tv/fanart/movies/812/moviethumb/aladdin-51b4a138b6a6e.jpg 2021-04-15 08:43:20.154 Debug ProviderManager: Saving image to /media/DS918_Media/Kinderfilme/Aladdin.1992/landscape.jpg 2021-04-15 08:43:20.160 Error ProviderManager: UnauthorizedAccessException: Emby Server is being write access to /media/DS918_Media/Kinderfilme/Aladdin.1992/landscape.jpg. Please check your file permissions. Will retry saving to /var/lib/emby/metadata/library/87/87c0cc44d9fb60d67aa9c336e1606c0d/landscape.jpg 2021-04-15 08:43:20.160 Debug ProviderManager: Saving image to /var/lib/emby/metadata/library/87/87c0cc44d9fb60d67aa9c336e1606c0d/landscape.jpg 2021-04-15 08:43:20.195 Debug ProviderManager: Saving /media/DS918_Media/Kinderfilme/Aladdin.1992/Aladdin.1992.mkv to Nfo. 2021-04-15 08:43:20.200 Error ProviderManager: Error in metadata saver *** Error Report *** Version: 4.5.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.8.0-49-generic (buildd@lcy01-amd64-026) (gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0, GNU ld (GNU Binutils for Ubuntu) 2.35.1) #55-Ubuntu SMP Framework: .NET Core 3.1.8 OS/Process: x64/x64 Runtime: opt/emby-server/system/System.Private.CoreLib.dll Processor count: 8 Data path: /var/lib/emby Application path: /opt/emby-server/system System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/media/DS918_Media/Kinderfilme/Aladdin.1992/Aladdin.1992.nfo' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- at System.IO.FileStream.WriteNative(ReadOnlySpan`1 source) at System.IO.FileStream.WriteSpan(ReadOnlySpan`1 source) at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count) at NfoMetadata.Savers.BaseNfoSaver.SaveToFile(Stream stream, String path) at NfoMetadata.Savers.BaseNfoSaver.Save(BaseItem item, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.ProviderManager.SaveMetadata(BaseItem item, LibraryOptions libraryOptions, ItemUpdateType updateType, IMetadataSaver[] savers, CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Void WriteNative(System.ReadOnlySpan`1[System.Byte]) InnerException: System.IO.IOException: Permission denied Source: TargetSite: Any idea what is going on and how to fix this would be highly appreciated Greetings Darky
  10. I've read through countless threads on this topic with similar situations and I cant find the solution. I have all my media on an external HD. When I'm setting up the server, I go to add a folder for the media, the file path doesn't show up. And when I manually type in the path I get; "The path could not be found. Please ensure the path is valid and try again.". How can I specifically grant emby:emby permissions to access my external? When I use; ls -l /path/to/media Every file is permissioned my username and my group. How can I change this? Thanks!
  11. binerf

    Sync to any device

    Hi all, I'm using Emby to share library to family but I was surprised when I discovered that a user can sync any file from its authorized libraries to any device previosuly connected to Emby even if this user has never logged this device (even if this device belongs to another guy). How is it possible to limit devices to user's devices only that Emby admin has no knowledge of ?
  12. al92780

    Permissions after editing photo

    Photos load correctly from library, external SSD and are viewable. When an edit is performed, they no longer load. Permission has been changed from (Pi:Pi -all,all,all to pi:pi - only owner, only owner, nobody. I can manually change back to all,all,all. Is there a configuration setting that would not require manual intervention. am logged in as pi@raspberrypi. thanks al
  13. Hi, I’m trying to setup Emby on my Intel NUC. I’m new to OpenSUSE Tumbleweed (though not to Linux) and I’m struggling to get this sorted out. I’ve had Emby running on Mint for sometime now. Goal: to setup & use Emby (Emby software apps is already installed and running) Hurdle: give Emby access to the media files (stored on external HDDs) I have external hard drives formatted as exFAT and NTFS (I’m working on switching them all over to exFAT but not there yet). I currently have my primary username set as the owner of the drives and the group is set to “users” (of which my user was the only member). I used YaST to create a new group called mediaservers and I added Emby, and my user to this group. I thought that way, I could give the Emby access to the media files but not necessarily to any/everything else that my user group could access, if other things were owned by the group “users”. I attempted to change the owner/user group of the HDD partitions to my newly created group, but it’s not working. On one drive, it appeared to work (when I changed it as my own user, not root - I didn’t get any error messages and it appeared to finish the job) but on other drives, I keep getting error messages saying that I don’t have the privileges to change some of the files. When I check the owner/group of those files, it’s showing that it’s owned by my normal user and group - so I don’t understand why I don’t have the privileges to change this or even what’s different about these files because the owner and group appear to be the same as all the other files on the drives. However, even the drive that appeared to work doesn’t actually “save” the new group - it switches right back to the original “Users” group. I even tried to change the group as root. One the drive that appeared to work previously but didn’t “save”, I ended up with the same outcome and got the same error (not enough privileges) on the drive that had that error. Basically, exact same outcome when changing these as root as when changing as my standard user. So, I decided to take a different approach, desperate for something to work and instead of switching everything over to a new group, I added the Emby group to my primary “Users” group that everything already belongs to. I’ve checked ls -l in the terminal to view all the drives and all users/groups/other are correct and all have full rwx status. But, I still have no ability for Emby to even see the media/HDDs. I also used the terminal to look at the groups and see if the Emby group was added to my user group. It was successfully added, as it should have been, but still have no access. I even granted one of the drives network access hoping I might be able to give Emby network access (I know, it’s not elegant or hardly even rational but I’m freaking desperate and nothing that I’ve done that should work, from what I can tell, is actually being successful). On a separate note, I currently have the drives mounted to the default location for external drives in oST/YaST (run/media/user/partition name). I looked into editing /etc/fstab and started by using YaST to do so (as was suggested by some other OpenSUSE users). However, when use YaST to do this, nothing actually changes in the fstab file (I’ve viewed it before/after to check and didn’t leave it opened while doing the edits in YaST to be sure that it was writable). Still no changes. Also, rebooting makes no difference on any of this either. Please know, I’ve searched, I’ve read man pages and blog posts, and wikis etc. I’m just lost & so frustrated. I’m not usually this inept at figuring stuff out. But it’s not even making sense to me now why it’s not working. I’ve added the right groups to the group and the drives are owned by this group that has full access. So, I’m wondering if it’s because of how the disks are are mounted - though admittedly, that doesn’t make much sense either. I’m just desperate. I’ve spent several days on this now and I can’t figure it out. I don’t want to go back to Mint/Ubuntu and the like. But I don’t know why I’m having so many issues and why YaST doesn’t actually seem to be making any of the changes I’m trying to make. It’s the same with the user/group changes. It’s almost like I wasn’t using sudo in YaST but it definitely asked for my password. Please let me know what other info/data you need. Please help. I’m not unwilling to put in the work. I just don’t even know what that work should be at this point since these things that I thought should be successful aren’t. Thanks so much in advance. Sorry for the wall of text. I just wanted to accurately cover what I’ve tried, what I’m attempting to do, and what hasn’t worked.
  14. Hello, I am now running Emby on windows 10 and wondering what user account does Emby use ? I know for linux its Emby user and Ebmy group. I am needing to mount my SMB share drive to windows for Emby to use. What credentials do I need to make available to Emby? Can I run Emby server as a service and specify my own user account / password for the service to run under?
  15. Miljol Dedy

    Bug Report: Group Permissions

    I think I have found a bug in Emby 4.3.1.0 on Synology. On my NAS I have groups instead of direct permissions. So ONLY the group has direct permissions. When I added the Emby user to the group of the folder for the library, I was not able to choose the folder. When selecting it just disappeared (just like when you have no permission). So, when giving the user direct permission it worked like a charm. I guest this is not as it supposed to be...
  16. xsteacy

    Windows sofware raid on linux

    Hi, I need emby to access a Windows formatted raid in linux. I mounted the raid with the ldmtool but I cannot access the files with emby. I gave emby access to the drive with chown but with no luck. I saw lots of posts in Google and here about that but for normal drive... I use Elementary OS 5.1(bases on Ubuntu 18.04) Thank you for any help, all is welcome.
  17. Hi All, Firstly, thank you for any help you are able to provide. I've been trying to get this working for 4 days and it's driving me crazy. I'm new to Linux so please bear with me. I have a AWS instance running Ubuntu 18 and a virtual Google Drive mounted to /gdrive using rclone which works fine. I can navigate through the files in the /gdrive folder using the Linux terminal as expected, great. The issue I'm facing is when I navigate to http://localhost:8096 and chose the "Add media library" option, it cannot see the folder /gdrive. If I then un-mount my google drive from the gdrive folder, emby library can now see the folder and adds it to the library. So in a nutshell, emby can't see the folder /gdrive when rclone is mounted inside it. I have used the following commands to ensure the folder is readable by everyone, and changed to owner to the emby user, but still no luck. chown -R emby:emby /gdrive chown emby /gdrive chmod 777 /gdrive ls -la shows the following drwxrwxrwx 2 emby emby 4096 Dec 6 15:42 gdrive. It must be a permission issue, but I can't think what it could be. If anyone could help, I would be so grateful. Thanks, Kelvin
  18. riothamus

    Fixed my NFS issue

    Background: I hate CIFS/Samba (just kidding, I loathe that technology) so my setup consists of a CentOS server that also acts as an NFS server containing all of my media. Emby runs on a separate Debian server, and it mounts the NFS shares via autofs. I have been wondering why my metadata was not getting saved back to the media directories on my NFS exports. So I got off my lazy arse and actually started to do some real troubleshooting. Initially, my /etc/exports consisted of shares configured like so: /srv/nfs/media 192.168.100.0/24(rw,async,no_root_squash) And on my Debian server running Emby, my autofs setup is something like this: auto.misc movies -fstype=nfs,rw NFSSERVER:/srv/nfs/media/Movies tv -fstype=nfs,rw NFSSERVER:/srv/nfs/media/TV Emby never had issues mounting these directories when needed, and reading data from them. But it could not write any metadata back to the shares (.nfo files, posters, etc.). Instead, it would give me "permission denied" messages in the logs, and instead write the metadata files into the /var/lib/emby structure on the Debian server. So first I looked into the UID and GID that Emby was using. On my Debian installation, the ID mappings look like this: uid=998 gid=998 However, I once had Emby running on a separate CentOS installation, and the mappings were different: uid=988 gid=988 No idea as to why, that's just how it was. Initially, I thought that maybe I just needed to add an 'emby' account to my CentOS host, using the same uid/gid pair. But I couldn't do that, as 998 on CentOS was reserved for the 'irc' service, at least on my installation. No big deal, the 'video' group exists on both installations, so I'll make Emby a member of that group on the CentOS installation, as it is already a member of that group under my Debian host. So I set up an 'emby' user on my CentOS server: useradd -s /sbin/nologin -u 998 -G video -M -r emby Neato. Now I go and attempt to "Refresh Metadata" on a movie, and check the share. No metadata is written. Well, damn. I look at the logs, and it still says "permission denied". I double check the uid and gid on both systems. Well, there was a mismatch (because god-forbid we should have our Linux distributions agree on some things). The GID for 'video' was different between both installations: Centos: video gid = 49 Debian: video gid = 44 No worries, I'll change the GID on my CentOS install (making sure that the number would not conflict with another group): sudo groupmod -g 49 video Another attempt at refreshing metadata.... permission denied. Ok, well the GID now matches between both hosts, so let's set up the exports so that the group has ownership of anything written to that directory. This is the typical approach that would be taken under such circumstances, and is typically the final solution to such a problem. sudo chmod g+s /srv/nfs/media Ok, so now things look like this: drwxrwsr-x emby video /srv/nfs/media Another attempt to refresh metadata. Another failure. What the hell? Emby is in the correct group, it has full write access to that location, and the group has ownership of that directory! Just for grins and giggles, I went nuclear: sudo chmod -R 777 /srv/media After another "Refresh Metadata" round, still no dice. How on Earth is this still not working? I started to mess around with ACL's to try and fine-tune the permissions more, even changing the mask value for this export. Nothing was working. I even tried doing a SUID on the directory, but the Linux kernel (smart for security, anyway) will typically ignore such requests. Then I got smarter. I went and looked at man(5) exports. Instead of doing a 'no_root_squash', I could instead do a 'all_squash'. This forces all new entries written via NFS to effectively use the UID and GID of 65534 (known as the anonymous UID and GID). But, I can force the anonymous UID and GID to match the UID and GID for the 'emby' account on my CentOS server. I changed the export to: /srv/nfs/media 192.168.100.0/24(rw,async,all_squash,anonuid=998,anongid=49) Re-exported the share: sudo exportfs -a Ran another metadata refresh... SUCCESS! In summary, even though the GID matched, the Emby service was still unable to write to the share as I'm guessing either the Emby service or the NFS service needed the UID to be the effective owner of the directory of where the data was going to be written to. Anyways, maybe this will help someone else out or whatever, but I thought that I would share my experience on this fun exercise in permissions.
  19. kmed27

    Help needed with permissions

    Hi I am trying to get Emby to add my cameras videos automatically but seem to be struggling with permissions. I have created a folder on my nas for my cctv camera and it creates the mp4 files in it via NFS. I have ended up giving full permission to everything and everyone in the synology folder but I keep getting xxxxxx.mp4: Permission denied I have given Embysvr custom permissions with everything ticked take ownership, change permissions etc. I have tried setting the NFS to map users to admin and then tried map to guest. It appears that ffmpeg/ffprobe still don't have permissions? 2019-09-14 09:28:51.145 Info App: [LinuxMount] Checking we can attempt to mount [/volume1/general/Camera/EF00000000018190/motion/20190914/084129-av-1.mp4], Extension = [.mp4], Operating System = [Linux], Executables Available = [True]. 2019-09-14 09:28:51.145 Info App: [LinuxMount] Checking we can attempt to mount [/volume1/general/Camera/EF00000000018190/motion/20190914/084129-av-1.mp4], Extension = [.mp4], Operating System = [Linux], Executables Available = [True]. 2019-09-14 09:28:51.145 Info MediaEncoder: ProcessRun 'extract-image' Execute: /var/packages/EmbyServer/target/ffmpeg/bin/ffmpeg -ss 00:00:10.000 -i file:"/volume1/general/Camera/EF00000000018190/motion/20190914/084129-av-1.mp4" -an -sn -threads 0 -vframes 1 -vf "scale=600:trunc(ow/a/2)*2,thumbnail=24" -f image2 "/var/packages/EmbyServer/target/var/cache/temp/a686c478-2973-4adb-8692-0a65dd9bd0c9.jpg" 2019-09-14 09:28:51.181 Info MediaEncoder: ProcessRun 'extract-image' Started. 2019-09-14 09:28:51.198 Info MediaEncoder: ProcessRun 'extract-image' Process exited with code 1 2019-09-14 09:28:51.682 Error MediaEncoder: ffmpeg image extraction failed for file:"/volume1/general/Camera/EF00000000018190/motion/20190914/084129-av-1.mp4" (output file not found) 2019-09-14 09:28:51.682 Error MediaEncoder: Thumbnail-Filter extraction failed, will attempt standard way. Input: file:"/volume1/general/Camera/EF00000000018190/motion/20190914/084129-av-1.mp4" 2019-09-14 09:28:51.682 Info MediaEncoder: ProcessRun 'extract-image' Execute: /var/packages/EmbyServer/target/ffmpeg/bin/ffmpeg -ss 00:00:10.000 -i file:"/volume1/general/Camera/EF00000000018190/motion/20190914/084129-av-1.mp4" -an -sn -threads 0 -vframes 1 -vf "scale=600:trunc(ow/a/2)*2" -f image2 "/var/packages/EmbyServer/target/var/cache/temp/37c5be2c-b402-41cb-8934-22bc45bf83ae.jpg" 2019-09-14 09:28:51.718 Info MediaEncoder: ProcessRun 'extract-image' Started. 2019-09-14 09:28:51.734 Info MediaEncoder: ProcessRun 'extract-image' Process exited with code 1 2019-09-14 09:28:52.218 Error MediaEncoder: ffmpeg image extraction failed for file:"/volume1/general/Camera/EF00000000018190/motion/20190914/084129-av-1.mp4" (output file not found) 2019-09-14 09:28:52.221 Error App: Error in Screen Grabber *** Error Report *** Version: 4.2.1.0 Command line: /volume1/@appstore/EmbyServer/releases/4.2.1.0/EmbyServer.dll -package synology -programdata /var/packages/EmbyServer/target/var -ffmpeg /var/packages/EmbyServer/target/ffmpeg/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/ffmpeg/bin/ffprobe -ffdetect /var/packages/EmbyServer/target/ffmpeg/bin/ffdetect -restartexitcode 121 Operating system: Unix 4.4.59.0 64-Bit OS: True 64-Bit Process: True User Interactive: True Runtime: file:///volume1/@appstore/EmbyServer/3rdparty/netcore/2.2.1/runtime/System.Private.CoreLib.dll Processor count: 4 Program data path: /var/packages/EmbyServer/target/var Application directory: /volume1/@appstore/EmbyServer/releases/4.2.1.0 System.Exception: System.Exception: ffmpeg image extraction failed for file:"/volume1/general/Camera/EF00000000018190/motion/20190914/084129-av-1.mp4" (output file not found) at Emby.Server.MediaEncoding.Encoder.MediaEncoder.ExtractImageInternal(ReadOnlyMemory`1 inputPath, ReadOnlyMemory`1 container, MediaStream videoStream, Nullable`1 streamIndex, Nullable`1 threedFormat, Nullable`1 offset, Boolean useThumbNailFilter, CancellationToken cancellationToken) at Emby.Server.MediaEncoding.Encoder.MediaEncoder.ExtractImage(ReadOnlyMemory`1 inputPath, ReadOnlyMemory`1 container, MediaStream videoStream, Nullable`1 streamIndex, MediaProtocol protocol, Boolean isAudio, Nullable`1 threedFormat, Nullable`1 offset, CancellationToken cancellationToken) at MediaBrowser.Providers.MediaInfo.VideoImageProvider.GetVideoImage(Video item, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.ItemImageProvider.RefreshFromProvider(BaseItem item, IDynamicImageProvider provider, ImageRefreshOptions refreshOptions, TypeOptions savedOptions, LibraryOptions libraryOptions, ICollection`1 downloadedImages, RefreshResult result, CancellationToken cancellationToken) Source: Emby.Server.MediaEncoding TargetSite: Void MoveNext() I can type the ffprobe/ffmpeg from a dos prompt in windows and it works. The only way I can get it to work in emby server is by selecting the folder in synology and RE-applying the permissions to subfolders. After that I can do a re-scan in emby and it adds the file and thumbnail. I have been messing about with permissions etc for days now but not getting anywhere. Can anyone help or give advice on what else to try please. Thanks
  20. rubenmf92

    Emby permissions problem

    Hi @@mastrmind11, @@Q-Droid, I think a have a permissions problem with emby. I´m trying to see two different external hard drives, but I only manage to see one of them. The permissions and owner of the one I can properly see is: drw------- 4 root root 4096 sep 19 19:29 mnt drwxr-xr-x 3 root root 4096 jun 30 11:30 mntSubfolder1 drwxr-sr-x 4 root root 4096 sep 17 20:07 mntSubfolder2 drwxr-sr-x 4 userftp sftponly 4096 ago 25 19:50 Movies As you can see, I'm able to see the files even when emby does not belong to the group or owner. On the contrary, I´m not able to see the files insede the next path: drwxrwxrwx+ 3 user user 4096 sep 21 17:47 media drwxr-xrwx+ 3 user user 4096 sep 21 18:12 user drwxrwxrwx 1 user user 12288 jul 26 16:57 MyBook Any tips about how could I solve the problem?
  21. Hello all. I apologize in advance if this is long and sound nuts. I have just about lost my mind as I have spent last 5 days on Google and these forums trying desperately to get Emby to work. (by the way I have seen the software work on a friend at work and was blown away so I immediately signed up for premiere account. So I know it is possible and will be great once I get it going. Only difference is I want to use Linux and not windows like my friend. Major Kudos to the developer for this awesome software.) To my problem, as stated in title, I'm running Emby on a (at first) headless Ubuntu server 18.04.3 and now due to difficulties I have installed the LXDE desktop environment to help trouble shoot. The install and Emby setup went fine and appears to be working. I can go to a Windows Host and access the Emby control panel and default user screen. The setup I want Emby on this Ubuntu Server ( 4GBs RAM, 250GB SSD) to be able to access and show my library that is going to be hosted (for now) on a Synology NAS (DS713+ 4TBs with latest updates). So far I have only uploaded about 3 movie MKV files to the share on the Synology. This share is "Videos". I was able to add it as a library in the EMby control panel and set up. I believe the issue has to do with permissions and access to the Synology share. (I also tried setting up a temp share on a windows client as well and cannot get Emby to scan that library either, so I am double convinced it is something I am doing wrong on the Linux side of things. Which can be seen in the attached Embylog.txt) On the Synology I have shared the Videos folder and given just about everyone read/write access to it, including an account I created called "emby" with NO password. It is not locked down and access should be wide open. I believe I need to mount this shared folder on the Ubuntu server so the emby account/service running there can access the folder and scan library. I am able to successfully mount the Synology Share folder "Videos" to either the / directory or within my users /home directory. BUT it seems that "ROOT" is always the owner of the mounted directory (both user and group). I cannot seem to find a way to change this? Also when I tried mounting it in the "/home" directory it says emby is owner and emby group, but still no access when I try to read/scan the library from Emby control panel. For example for the Home Mount I did: sudo mount -t cifs -0 username=emby,password=,uid=999,gid=999 //10.76.1.79/Videos ~/mnt/share Which does mount the directory of the Synology share and allows me to browse it. But when I try scanning my this library from Emby control panel it fails. (the log txt shows //JAYNAS which is the same as IP of 10.76.1.79) Here is another example I tried testing a mount to windows share: sudo mount.cifs //10.76.1.16/Video /windows-share -o user=emby This too worked and from linux side I can browse the share, but Emby server cannot scan library. (Here I do see owner as root and group as root so that is probably why, but I don't know how to fix this as "chown" fails on a mount and will not change permissions.) So if you have read this far: Is there any guide or install help that explains when running Emby from a Linux server how to get it to read a library from another Device (like NAS) or computer? Does it need to be a permanent mount in "/etc/fstab" and if so what account or permissions need to be assigned? Is this something specific to Synology Shares? (I dont think so as my Windows efforts have failed as well.) I'm going nuts as I feel there HAS to be a way to do this on Linux and it is probably simple, and I'm missing it. But the mounting of shares and permissions is killing me. ( I do not want to run this on Windows. Seems like there is a lot of windows help online and would be easier, but no. I love Linux and Open source too much and don't wish to go back unless there was no other way. I just currently suck at Linux administration obviously.) Thanks in advance whoever can read all this and possibly help. (Heck if a clear solution is found or commands in Linux that works, I'll go and write up a guide to help the next person here on the forums if allowed.) EmbyLog.txt
  22. I am unable to run 4.2.1.0 on NixOS. Last known running version is 4.0.1.0. I am getting the following error: Aug 14 18:42:31 nixos systemd[1]: Started Emby Media Server. Aug 14 18:42:31 nixos emby[13309]: Unhandled Exception: System.IO.IOException: Read-only file system Aug 14 18:42:31 nixos emby[13309]: at System.IO.FileSystem.CreateDirectory(String fullPath) Aug 14 18:42:31 nixos emby[13309]: at System.IO.Directory.CreateDirectory(String path) Aug 14 18:42:31 nixos emby[13309]: at EmbyServer.Support.ApplicationPathProvider.GetProgramDataPath(String applicationPath, IEnvironmentInfo environment) Aug 14 18:42:31 nixos emby[13309]: at EmbyServer.Support.ApplicationPathProvider.CreateApplicationPaths(String applicationPath, String programDataPath, IEnvironmentInfo environment) Aug 14 18:42:31 nixos emby[13309]: at EmbyServer.Program.Main(String[] args) Aug 14 18:42:31 nixos systemd[1]: emby.service: Main process exited, code=killed, status=6/ABRT Aug 14 18:42:31 nixos systemd[1]: emby.service: Failed with result 'signal'. Aug 14 18:42:31 nixos systemd[1]: emby.service: Service RestartSec=100ms expired, scheduling restart. Aug 14 18:42:31 nixos systemd[1]: emby.service: Scheduled restart job, restart counter is at 4. Aug 14 18:42:31 nixos systemd[1]: Stopped Emby Media Server. Has Emby started requiring write permissions in any other directory than the "-programdata"-directory?
  23. Ok.. I have been able to compile and install a custom ffmpeg with OMX (hardware encoding enabled) https://emby.media/community/index.php?/topic/36227-h264-omx-instead-of-x264/page-2 But when enabled in the Emby server.. it silently fails.. HOWEVER... When I copy/paste the command (for example): ffmpeg -i file:"/media/usb0/TV Shows/SpongeBob SquarePants (1999-2015) [480p] [720p] [HEVC] [x265]/Season 01/[pseudo] S01E02 Reef Blower [480p] [h.265].mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_omx -b:v 2211644 -maxrate 2211644 -bufsize 4423288 -force_key_frames "expr:gte(t,n_forced*3)" -vf "scale=trunc(min(max(iw\,ih*dar)\,1280)/2)*2:trunc(ow/dar/2)*2" -copyts -vsync -1 -codec:a:0 aac -strict experimental -ac 2 -ab 192000 -f segment -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -segment_time 3 -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "/tmp/transcoding-temp/e438c53f7db6725b084b892f6c3028cf.m3u8" -y "/tmp/transcoding-temp/e438c53f7db6725b084b892f6c3028cf%d.ts" and sudo as ROOT ... it DOES work. I am really confused.. tried changing the temp folder... and properly installing the ffmpeg (instead of running it from its source folder where I compiled it). so.. the fact that ROOT can run it.. leads me to think it is a permissions issue.. the funny thing is that without ANY other changes.. by simply switching OMX off in the Emby config.. it WORKS. It is as if the omx extension inside ffmpeg is trying to do something... like accessing hardware or another path.. that user emby does not have access to. It is a near silent failure... (since error 255 really does not mean anything). " 2017-04-25 04:22:01.7063 Info HttpServer: HTTP Response 500 to 192.168.50.74. Time: 28122ms (slow). http://192.168.50.60:8096/emby/videos/74d91a1ee63cfcb5cdc99751ba1b5c68/hls1/main/0.ts?DeviceId=4b23de016b5225894d6e76c8edb8536321d8b37b&MediaSourceId=74d91a1ee63cfcb5cdc99751ba1b5c68&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&VideoBitrate=193747394&AudioBitrate=192000&Level=51&Profile=high&PlaySessionId=52bf6796426d495ab39c16770487c4cf&CopyTimestamps=false&TranscodingMaxAudioChannels=6&EnableSubtitlesInManifest=false&Tag=24a43aa38dd13e58d36422fbc16ced9c&RequireAvc=true&RequireNonAnamorphic=false&DeInterlace=false&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=False 2017-04-25 04:22:01.7081 Info App: ffmpeg -i file:"/media/usb0/TV Shows/SpongeBob SquarePants (1999-2015) [480p] [720p] [HEVC] [x265]/Season 01/[pseudo] S01E03 Tea at the Treedome [480p] [h.265].mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_omx -b:v 1122230 -maxrate 1122230 -bufsize 2244460 -force_key_frames "expr:gte(t,n_forced*3)" -vf "scale=trunc(min(max(iw\,ih*dar)\,1280)/2)*2:trunc(ow/dar/2)*2" -copyts -vsync -1 -codec:a:0 aac -strict experimental -ac 2 -ab 192000 -f segment -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -segment_time 3 -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "/var/tmp/transcoding-temp/transcoding-temp/aa6d990b7ad85df3cb9e9a131f4da08d.m3u8" -y "/var/tmp/transcoding-temp/transcoding-temp/aa6d990b7ad85df3cb9e9a131f4da08d%d.ts" 2017-04-25 04:22:02.1496 Info App: FFMpeg exited with code 255 2017-04-25 04:22:02.1643 Info App: returning /var/tmp/transcoding-temp/transcoding-temp/aa6d990b7ad85df3cb9e9a131f4da08d0.ts " And again.. if I take that line to my prompt and run it with sudo.. it WORKS: root@avcenter:/tmp# ffmpeg -i file:"/media/usb0/TV Shows/SpongeBob SquarePants (1999-2015) [480p] [720p] [HEVC] [x265]/Season 01/[pseudo] S01E03 Tea at the Treedome [480p] [h.265].mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_omx -b:v 1122230 -maxrate 1122230 -bufsize 2244460 -force_key_frames "expr:gte(t,n_forced*3)" -vf "scale=trunc(min(max(iw\,ih*dar)\,1280)/2)*2:trunc(ow/dar/2)*2" -copyts -vsync -1 -codec:a:0 aac -strict experimental -ac 2 -ab 192000 -f segment -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -segment_time 3 -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "/var/tmp/transcoding-temp/transcoding-temp/aa6d990b7ad85df3cb9e9a131f4da08d.m3u8" -y "/var/tmp/transcoding-temp/transcoding-temp/aa6d990b7ad85df3cb9e9a131f4da08d%d.ts" ffmpeg version N-85641-gdd49eff Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.9.2 (Raspbian 4.9.2-10) configuration: --enable-gpl --enable-nonfree --enable-mmal --enable-omx --enable-omx-rpi --enable-libmp3lame --enable-libx264 --enable-libvorbis libavutil 55. 61.100 / 55. 61.100 libavcodec 57. 93.100 / 57. 93.100 libavformat 57. 72.101 / 57. 72.101 libavdevice 57. 7.100 / 57. 7.100 libavfilter 6. 86.100 / 6. 86.100 libswscale 4. 7.101 / 4. 7.101 libswresample 2. 8.100 / 2. 8.100 libpostproc 54. 6.100 / 54. 6.100 Input #0, matroska,webm, from 'file:/media/usb0/TV Shows/SpongeBob SquarePants (1999-2015) [480p] [720p] [HEVC] [x265]/Season 01/[pseudo] S01E03 Tea at the Treedome [480p] [h.265].mkv': Metadata: encoder : libebml v1.3.1 + libmatroska v1.4.2 creation_time : 2016-02-06T18:59:27.000000Z Duration: 00:11:03.73, start: 0.000000, bitrate: 561 kb/s Stream #0:0: Video: hevc (Main), yuv420p(tv), 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 1k tbn, 29.97 tbc (default) Metadata: BPS : 469945 BPS-eng : 469945 DURATION : 00:11:03.729000000 DURATION-eng : 00:11:03.729000000 NUMBER_OF_FRAMES: 19892 NUMBER_OF_FRAMES-eng: 19892 NUMBER_OF_BYTES : 38989538 NUMBER_OF_BYTES-eng: 38989538 _STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 64bit _STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to fly') 64bit _STATISTICS_WRITING_DATE_UTC: 2016-02-06 18:59:27 _STATISTICS_WRITING_DATE_UTC-eng: 2016-02-06 18:59:27 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:1(eng): Audio: aac (LC), 48000 Hz, stereo, fltp (default) Metadata: BPS : 88626 BPS-eng : 88626 DURATION : 00:11:03.701000000 DURATION-eng : 00:11:03.701000000 NUMBER_OF_FRAMES: 31111 NUMBER_OF_FRAMES-eng: 31111 NUMBER_OF_BYTES : 7352727 NUMBER_OF_BYTES-eng: 7352727 _STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 64bit _STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to fly') 64bit _STATISTICS_WRITING_DATE_UTC: 2016-02-06 18:59:27 _STATISTICS_WRITING_DATE_UTC-eng: 2016-02-06 18:59:27 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream mapping: Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_omx)) Stream #0:1 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help [h264_omx @ 0x1d336a0] Using OMX.broadcom.video_encode Output #0, segment, to '/var/tmp/transcoding-temp/transcoding-temp/aa6d990b7ad85df3cb9e9a131f4da08d%d.ts': Metadata: encoder : Lavf57.72.101 Stream #0:0: Video: h264 (h264_omx), yuv420p, 704x528 [SAR 1:1 DAR 4:3], q=2-31, 1122 kb/s, 29.97 fps, 90k tbn, 29.97 tbc (default) Metadata: encoder : Lavc57.93.100 h264_omx Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, 192 kb/s (default) Metadata: encoder : Lavc57.93.100 aac frame= 7342 fps= 24 q=-0.0 Lsize=N/A time=00:04:05.16 bitrate=N/A speed=0.793x video:34589kB audio:5817kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown [aac @ 0x1d34aa0] Qavg: 1460.591 Exiting normally, received signal 2. I tried once changing the emby default user to root.. but it did nothing. ANY help would be greatly appreciated.. I feel like I survived the desert to die at the water fountain with a broken handle. TTFN
  24. (I searched for the permissions problem but didn't see it. Sorry if I'm repeating other posts here...) I set up the Emby Theater app on Windows for my mother and was careful to not let her do any admin-type stuff, but she is able to cancel my recordings (any recording - movie, show episode or series)! I double-checked the permissions and double-checked them again. As it stands, she doesn't have permission to make her own recordings, or to delete shows or movies, but she can cancel my recordings. I've asked her to be careful not to do that. Also, if you use the large-format icons for the libraries in My Media, the app only shows about 5 of them across and you can't get to the rest of them (no scroll-bar or scroll button). I thought about using the smaller icons, but they're not as descriptive or appealing, so I just rearranged them so the 5 most common ones I think she would use will appear first... The app version is 1.1.248.0, and she's running Windows 10 Home (with all the latest patches) Thanks for your help...
  25. I have a couple of directories that are hidden trash folders, as in the output below: 2018-07-30 16:05:29.895 Error LibraryMonitor: Error in Directory watcher for: /misc/movies3 *** Error Report *** Version: 3.5.1.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-rpm_{version}_x86_64.rpm Operating system: Unix 4.17.9.200 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 4 Program data path: /var/lib/emby Application directory: /opt/emby-server/system System.UnauthorizedAccessException: Access to the path '/misc/movies3/.Trash-1000' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- System.UnauthorizedAccessException No Stack Trace Available InnerException: System.IO.IOException System.IO.IOException: Permission denied Will the LibraryMonitor just stop or does it continue on? It's no big deal for me to remove these directories, but I'm curious if this would cause a problem or if the LibraryMonitor will just keep on running even if it runs into issues such as this.
×
×
  • Create New...