mobstef 1 Posted August 8, 2023 Share Posted August 8, 2023 In short, executing: curl -v 'http://localhost:8096/emby/Items/337/Images/Primary?maxHeight=188&maxWidth=250&tag=b98cc27289a45fcbf1221e7cb04f8888&quality=90' * processing: http://localhost:8096/emby/Items/337/Images/Primary?maxHeight=188&maxWidth=250&tag=b98cc27289a45fcbf1221e7cb04f8888&quality=90 * Trying [::1]:8096... * Connected to localhost (::1) port 8096 > GET /emby/Items/337/Images/Primary?maxHeight=188&maxWidth=250&tag=b98cc27289a45fcbf1221e7cb04f8888&quality=90 HTTP/1.1 > Host: localhost:8096 > User-Agent: curl/8.2.1 > Accept: */* > * Empty reply from server * Closing connection curl: (52) Empty reply from server restarts emby server without any indication in the log (with debug enabled). The request itself is not logged there. Omitting query params produces the correct image: curl -v 'http://localhost:8096/emby/Items/337/Images/Primary' * processing: http://localhost:8096/emby/Items/337/Images/Primary * Trying [::1]:8096... * Connected to localhost (::1) port 8096 > GET /emby/Items/337/Images/Primary HTTP/1.1 > Host: localhost:8096 > User-Agent: curl/8.2.1 > Accept: */* > < HTTP/1.1 200 OK < Content-Length: 16547 < Content-Type: image/jpeg < Date: Tue, 08 Aug 2023 03:25:09 GMT < Server: UPnP/1.0 DLNADOC/1.50 < Accept-Ranges: bytes < Access-Control-Allow-Headers: Accept, Accept-Language, Authorization, Cache-Control, Content-Disposition, Content-Encoding, Content-Language, Content-Length, Content-MD5, Content-Range, Content-Type, Date, Host, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, Origin, OriginToken, Pragma, Range, Slug, Transfer-Encoding, Want-Digest, X-MediaBrowser-Token, X-Emby-Token, X-Emby-Client, X-Emby-Client-Version, X-Emby-Device-Id, X-Emby-Device-Name, X-Emby-Authorization < Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH, OPTIONS < Access-Control-Allow-Origin: * < Cache-Control: public < ETag: "b98cc27289a45fcbf1221e7cb04f8888" < Vary: Accept < Access-Control-Allow-Private-Network: true < transferMode.dlna.org: Interactive < realTimeInfo.dlna.org: DLNA.ORG_TLAG=* The OS is FreeBSD 13.2 amd64. Some suggested this is related to jpeg-turbo upgrade to 3.0.0 in but the issue is "solved" while being workaround only. I still need to verify the downgrade solution, but even then the issue should be tracked. Link to comment Share on other sites More sharing options...
mobstef 1 Posted August 8, 2023 Author Share Posted August 8, 2023 The Emby version seems to be irrelevant. Tried 4.7.11, 4.7.12, 4.7.13, 4.8.0.40. The 4.7.11 was working before the packages upgrade. Link to comment Share on other sites More sharing options...
Luke 37180 Posted August 11, 2023 Share Posted August 11, 2023 Hi @mobstefhow did you install Emby Server? Link to comment Share on other sites More sharing options...
mobstef 1 Posted August 11, 2023 Author Share Posted August 11, 2023 Using FreeBSD ports I've built package in Poudriere and installed using pkg. Link to comment Share on other sites More sharing options...
Luke 37180 Posted August 15, 2023 Share Posted August 15, 2023 HI, we are looking into this. Thanks. Link to comment Share on other sites More sharing options...
Luke 37180 Posted August 18, 2023 Share Posted August 18, 2023 If you're running the beta server, please let us know how 4.8.0.42 compares once it is available. It will now have libpeg embedded so that the version on your system doesn't matter. Once we get through the beta build, then we'll look at doing a 4.7.14 stable release to resolve the issue on the stable channel. Thanks guys. Link to comment Share on other sites More sharing options...
Luke 37180 Posted August 24, 2023 Share Posted August 24, 2023 HI, hopefully the issues should be resolved now using the following Emby Server versions: Stable: 4.7.14+ Beta: 4.8.0.42+ Please try it out and report your experience. Thanks ! Link to comment Share on other sites More sharing options...
mobstef 1 Posted August 25, 2023 Author Share Posted August 25, 2023 The mentioned versions are not yet in the official ports tree. However I've create the testing ports tree and bumped the versions. The build was successful for both versions. I've used data from backup of 4.7.12. I see no issues running 4.8.0.42. However, I cannot start 4.7.14 with the following error: 2023-08-25 16:55:49.537 Error Main: Error in appHost.Init *** Error Report *** Version: 4.7.14.0 Command line: /usr/local/lib/emby-server/system/EmbyServer.dll -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby -server/bin/ffprobe -programdata /var/db/emby-server Operating system: FreeBSD 13.2-RELEASE-p2 FreeBSD 13.2-RELEASE-p2 GENERIC Framework: .NET 6.0.21 OS/Process: x64/x64 Runtime: usr/local/lib/emby-server/system/System.Private.CoreLib.dll Processor count: 6 Data path: /var/db/emby-server Application path: /usr/local/lib/emby-server/system SQLitePCL.pretty.SQLiteException: Error: no such column: IsFolder - create index if not exists idx_MediaItems36 on MediaItems(SeriesPresentationUniqueKey,Type,IsFolder,IsVirtualItem) where SeriesPres entationUniqueKey not null;create index if not exists idx_MediaItems10 on MediaItems(Type,TopParentId,Id);create index if not exists idx_MediaItems11 on MediaItems(Type,TopParentId,PresentationUniqueKey);cre ate index if not exists idx_MediaItems46 on MediaItems(TopParentId,IsVirtualItem) where TopParentId not null;create index if not exists idx_MediaItems47 on MediaItems(TopParentId,Type,IsVirtualItem,Presentat ionUniqueKey,DateCreated) where TopParentId not null;create index if not exists idx_MediaItems48 on MediaItems(TopParentId,IsFolder,IsVirtualItem,PresentationUniqueKey,DateCreated) where TopParentId not null ;create index if not exists idx_MediaItems49 on MediaItems(TopParentId,MediaType,IsVirtualItem,PresentationUniqueKey) where TopParentId not null;create index if not exists idx_MediaItems50 on MediaItems(Type , TopParentId, AlbumId) where TopParentId not null;create index if not exists idx_MediaItems51 on MediaItems(Type,IsSeries) where Type=27;create index if not exists idxItemLinks_1 on ItemLinks(LinkedId, Type , ItemId) SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. at SQLitePCL.pretty.SQLiteDatabaseConnection.PrepareStatement(String sql, String& tail) at SQLitePCL.pretty.DatabaseConnection.PrepareAllEnumerator(IDatabaseConnection This, String sql)+MoveNext() at SQLitePCL.pretty.DatabaseConnection.ExecuteAll(IDatabaseConnection This, String sql) at Emby.Server.Implementations.Data.SqliteItemRepository.Initialize(SqliteUserDataRepository userDataRepo, IUserManager userManager) at Emby.Server.Implementations.ApplicationHost.InitDatabases() at Emby.Server.Implementations.ApplicationHost.Init() at EmbyServer.HostedService.StartAsync(CancellationToken cancellationToken) Source: SQLitePCL.pretty TargetSite: SQLitePCL.pretty.IStatement PrepareStatement(System.String, System.String ByRef) so I cannot check if the issue was fixed there. I may have messed up something when trying different versions. Link to comment Share on other sites More sharing options...
Luke 37180 Posted August 25, 2023 Share Posted August 25, 2023 1 hour ago, mobstef said: The mentioned versions are not yet in the official ports tree. However I've create the testing ports tree and bumped the versions. The build was successful for both versions. I've used data from backup of 4.7.12. I see no issues running 4.8.0.42. However, I cannot start 4.7.14 with the following error: 2023-08-25 16:55:49.537 Error Main: Error in appHost.Init *** Error Report *** Version: 4.7.14.0 Command line: /usr/local/lib/emby-server/system/EmbyServer.dll -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby -server/bin/ffprobe -programdata /var/db/emby-server Operating system: FreeBSD 13.2-RELEASE-p2 FreeBSD 13.2-RELEASE-p2 GENERIC Framework: .NET 6.0.21 OS/Process: x64/x64 Runtime: usr/local/lib/emby-server/system/System.Private.CoreLib.dll Processor count: 6 Data path: /var/db/emby-server Application path: /usr/local/lib/emby-server/system SQLitePCL.pretty.SQLiteException: Error: no such column: IsFolder - create index if not exists idx_MediaItems36 on MediaItems(SeriesPresentationUniqueKey,Type,IsFolder,IsVirtualItem) where SeriesPres entationUniqueKey not null;create index if not exists idx_MediaItems10 on MediaItems(Type,TopParentId,Id);create index if not exists idx_MediaItems11 on MediaItems(Type,TopParentId,PresentationUniqueKey);cre ate index if not exists idx_MediaItems46 on MediaItems(TopParentId,IsVirtualItem) where TopParentId not null;create index if not exists idx_MediaItems47 on MediaItems(TopParentId,Type,IsVirtualItem,Presentat ionUniqueKey,DateCreated) where TopParentId not null;create index if not exists idx_MediaItems48 on MediaItems(TopParentId,IsFolder,IsVirtualItem,PresentationUniqueKey,DateCreated) where TopParentId not null ;create index if not exists idx_MediaItems49 on MediaItems(TopParentId,MediaType,IsVirtualItem,PresentationUniqueKey) where TopParentId not null;create index if not exists idx_MediaItems50 on MediaItems(Type , TopParentId, AlbumId) where TopParentId not null;create index if not exists idx_MediaItems51 on MediaItems(Type,IsSeries) where Type=27;create index if not exists idxItemLinks_1 on ItemLinks(LinkedId, Type , ItemId) SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. at SQLitePCL.pretty.SQLiteDatabaseConnection.PrepareStatement(String sql, String& tail) at SQLitePCL.pretty.DatabaseConnection.PrepareAllEnumerator(IDatabaseConnection This, String sql)+MoveNext() at SQLitePCL.pretty.DatabaseConnection.ExecuteAll(IDatabaseConnection This, String sql) at Emby.Server.Implementations.Data.SqliteItemRepository.Initialize(SqliteUserDataRepository userDataRepo, IUserManager userManager) at Emby.Server.Implementations.ApplicationHost.InitDatabases() at Emby.Server.Implementations.ApplicationHost.Init() at EmbyServer.HostedService.StartAsync(CancellationToken cancellationToken) Source: SQLitePCL.pretty TargetSite: SQLitePCL.pretty.IStatement PrepareStatement(System.String, System.String ByRef) so I cannot check if the issue was fixed there. I may have messed up something when trying different versions. That looks like trying to start 4.7 using a 4.8 database, which won’t work. Link to comment Share on other sites More sharing options...
mobstef 1 Posted August 25, 2023 Author Share Posted August 25, 2023 You're probably right, but I also think the bug has also corrupted my metadata (I see a lot of conversion errors on 4.8.0.43). I did fresh install of 4.7.14 and brought back settings with server config restore. I'm waiting for metadata rebuild, but this will take ages. I will let you know the result when it's done. Link to comment Share on other sites More sharing options...
Luke 37180 Posted August 25, 2023 Share Posted August 25, 2023 Let us know how you get on. Thanks. Link to comment Share on other sites More sharing options...
mobstef 1 Posted August 26, 2023 Author Share Posted August 26, 2023 The original issue is solved in 4.7.14 too, but I've hit another bug related to images. The thing I've described previously as "a lot of conversion errors on 4.8.0.43". 2023-08-26 15:36:16.175 Error ImageProcessor: Error encoding image *** Error Report *** Version: 4.7.14.0 Command line: /usr/local/lib/emby-server/system/EmbyServer.dll -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby -server/bin/ffprobe -programdata /var/db/emby-server Operating system: FreeBSD 13.2-RELEASE-p2 FreeBSD 13.2-RELEASE-p2 GENERIC Framework: .NET 6.0.21 OS/Process: x64/x64 Runtime: usr/local/lib/emby-server/system/System.Private.CoreLib.dll Processor count: 6 Data path: /var/db/emby-server Application path: /usr/local/lib/emby-server/system System.Exception: System.Exception: SKCodec had an error reading /var/db/emby-server/metadata/library/c3/c331bca9a19adfdaebe75e731f26f2fc/poster.jpg at Emby.Drawing.Skia.SkiaEncoder.EncodeImage(String inputPath, String outputPath, Boolean autoOrient, Nullable`1 orientation, Int32 quality, ImageProcessingOptions options, ImageFormat selectedOut putFormat) at Emby.Drawing.ImageProcessor.ProcessImage(ImageProcessingOptions options, CancellationToken cancellationToken) Source: Emby.Drawing.Skia TargetSite: System.String EncodeImage(System.String, System.String, Boolean, System.Nullable`1[MediaBrowser.Model.Drawing.ImageOrientation], Int32, MediaBrowser.Controller.Drawing.ImageProcessingOpti ons, MediaBrowser.Model.Drawing.ImageFormat) Thumbnails/posters of most libraries are rendered black. Thumbnails/posters of some collections are rendered gray/transparent. The server crashes when I view the collections. I see no missing posters inside the libraries. Please remember this is freshly generated metadata by 4.7.14. Link to comment Share on other sites More sharing options...
Luke 37180 Posted August 26, 2023 Share Posted August 26, 2023 Did you upgrade libjpeg again? Link to comment Share on other sites More sharing options...
mobstef 1 Posted August 26, 2023 Author Share Posted August 26, 2023 No. It is still jpeg-turbo-3.0.0. Link to comment Share on other sites More sharing options...
Luke 37180 Posted August 26, 2023 Share Posted August 26, 2023 Does that file mentioned in the server log exist? Is it a valid image? Link to comment Share on other sites More sharing options...
mobstef 1 Posted August 26, 2023 Author Share Posted August 26, 2023 Yes. Yes. Â Link to comment Share on other sites More sharing options...
stardco 1 Posted August 29, 2023 Share Posted August 29, 2023 Hello, Thanks for your help. My two cents, I am sharing the new result if it can help : above : the old generation below : a generation with 4.7.14 As you can see, there is a difference Regards  Link to comment Share on other sites More sharing options...
Luke 37180 Posted August 29, 2023 Share Posted August 29, 2023 11 hours ago, stardco said: Hello, Thanks for your help. My two cents, I am sharing the new result if it can help : above : the old generation below : a generation with 4.7.14 As you can see, there is a difference Regards  HI, which do you prefer? Link to comment Share on other sites More sharing options...
stardco 1 Posted August 30, 2023 Share Posted August 30, 2023 Hi, I do not care , both are fine to me, it is just in case it is not "normal". But I confirm what Mobstef repoted, some pictures start to disappear... If you need log files or something, do not hesitate Link to comment Share on other sites More sharing options...
Luke 37180 Posted August 30, 2023 Share Posted August 30, 2023 2 hours ago, stardco said: Hi, I do not care , both are fine to me, it is just in case it is not "normal". But I confirm what Mobstef repoted, some pictures start to disappear... If you need log files or something, do not hesitate Try removing the cover art plugin, then restarting the server and seeing if that helps. Link to comment Share on other sites More sharing options...
stardco 1 Posted August 30, 2023 Share Posted August 30, 2023 4 hours ago, Luke said: ry removing the cover art plugin, then restarting the server and seeing if that helps. It works . But I guess the most important issue is here On 8/26/2023 at 3:49 PM, mobstef said: Thumbnails/posters of most libraries are rendered black. Â Link to comment Share on other sites More sharing options...
Luke 37180 Posted August 31, 2023 Share Posted August 31, 2023 6 hours ago, stardco said: It works . But I guess the most important issue is here  Can you show a screenshot example? Thanks. Link to comment Share on other sites More sharing options...
stardco 1 Posted August 31, 2023 Share Posted August 31, 2023 Hello, Some passed black, some not... but it is the same on web or android clientsall my clients Regards Link to comment Share on other sites More sharing options...
Luke 37180 Posted September 3, 2023 Share Posted September 3, 2023 On 8/31/2023 at 12:01 PM, stardco said: Hello, Some passed black, some not... but it is the same on web or android clientsall my clients Regards Hi, try using the image editor to manually delete the black ones, then run a library scan and see if that generates new images. If not, then please attach the emby server log: How to Report a Problem Thanks. Link to comment Share on other sites More sharing options...
stardco 1 Posted September 4, 2023 Share Posted September 4, 2023 Hi, It failed, I attached the log file. Thanks again for you help embyserver.txt Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now