Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERR_CONNECTION_REFUSED Post Install #121

Open
SDpyro opened this issue Dec 6, 2024 · 15 comments
Open

ERR_CONNECTION_REFUSED Post Install #121

SDpyro opened this issue Dec 6, 2024 · 15 comments

Comments

@SDpyro
Copy link

SDpyro commented Dec 6, 2024

+1 with this issue
nas.local refused to connect.
ERR_CONNECTION_REFUSED

Model: TVS-761
I rechecked after an hour just in case there was some housekeeping needed in the background.

@Oednerich
Copy link

what port are you using? 8920 (https) or 8096 (http)?

I just checked and the shortcut on my qnap automatically tries https now and fails with connection refused, because https is not automatically active on jellyfin server, so the reaction is normal.
if thats the case for you too, try http

@pdulvp
Copy link
Owner

pdulvp commented Dec 6, 2024

what port are you using? 8920 (https) or 8096 (http)?

I just checked and the shortcut on my qnap automatically tries https now and fails with connection refused, because https is not automatically active on jellyfin server, so the reaction is normal.
if thats the case for you too, try http

oh, didnt notice that. will try to see if possible to make it fixed

@SDpyro
Copy link
Author

SDpyro commented Dec 7, 2024 via email

@Oednerich
Copy link

you have to use http with 8096, like http://nas.local:8096

@pdulvp
Copy link
Owner

pdulvp commented Dec 8, 2024

FYI,
If you connect to the NAS Control panel using http (8080), button on jellyfin "open" will open http like http://nas.local:8096/
If you connect to the NAS Control panel using https, it will open the https (like http://nas.local:8920/) even if the https is not enabled/configured in jellyfin.

@yahyavi
Copy link

yahyavi commented Dec 8, 2024

Have a similar problem. Fresh install on TS464. Did the initial setup by manually going to nas:8096 (setup admin/password) and 1 folder. Cannot connect anymore. From my understanding there should be a config to allow remote access but I cannot login to the admin page. How to fix that?

image

@pdulvp
Copy link
Owner

pdulvp commented Dec 10, 2024

Have a similar problem. Fresh install on TS464. Did the initial setup by manually going to nas:8096 (setup admin/password) and 1 folder. Cannot connect anymore. From my understanding there should be a config to allow remote access but I cannot login to the admin page. How to fix that?

image

and even if you reopen the root page?
http://192.168.1.50:8096/web/ (sometimes sub pages fails but the root make it work?)

did you configure more stuff in jellyfin (like https?)

in the nas installation folder (something like /share/CACHEDEV1_DATA/.qpkg/jellyfin) there shall have a log folder with hopefully more info to dig up)

@SDpyro
Copy link
Author

SDpyro commented Dec 10, 2024 via email

@yahyavi
Copy link

yahyavi commented Dec 10, 2024

So I got the email about your comments and clicked on my phone on the link @pdulvp posted and in iphone safari it loaded and I was able to login. Then I tried again on my desktop chrome and still kept getting the same error with refreshes, etc.

I decided to clean the site data in chrome and refreshed and that forced another login and it started working.
I guess, for whatever reason the cookie that was getting set during the initial setup was breaking something.

image

Thanks for the help.

@OutOfThisPlanet
Copy link

OutOfThisPlanet commented Dec 14, 2024

I also have this issue (TS-253A).

Installed over the top of an existing jellyfin, and I can't connect.
Logs (timestamps) seem to show that the server is running in the background.

There does not appear to be anything listening on those ports, however:

image

Will dig into it more, however I will first back up some files (I mapped the .qpkg directory to a share).
I believe these are the pertinent ones:

image

@OutOfThisPlanet
Copy link

I ended up uninstalling the original jellyfin app on QNAP, and installed the new one.
Works fine after this.
Now transferring the backups back to the server.

Seems that this jellyfin opkg cannot be installed over the top of a jellyfin install that came from somewhere else.

@OutOfThisPlanet
Copy link

OutOfThisPlanet commented Dec 14, 2024

After copying over the backup files, it no longer works.
Seems I had a malformed database.
I imagine it was borked while being copied, or it is a different schema.

Fun times.

I guess I will just rebuild it then....

@OutOfThisPlanet
Copy link

OutOfThisPlanet commented Dec 14, 2024

Rebuilt it, and did some config, added some plugins, and restarted the server.

It never came back online.

I SSH'd into the box to start the server....

[user@NAS jellyfin]$ ./jellyfin.sh start ln: /opt/jellyfin/jellyfin: File exists error: failed to initialize display [07:55:33] [INF] [1] Main: Jellyfin version: 10.10.3 [07:55:33] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, /share/CACHEDEV1_DATA/.qpkg/jellyfin/logs]"] [07:55:33] [INF] [1] Main: Arguments: ["/share/CACHEDEV1_DATA/.qpkg/jellyfin/jellyfin/bin/jellyfin.dll", "--datadir=/share/CACHEDEV1_DATA/.qpkg/jellyfin/database", "--cachedir=/share/CACHEDEV1_DATA/.qpkg/jellyfin/cache", "--webdir=/share/CACHEDEV1_DATA/.qpkg/jellyfin/jellyfin-web", "--configdir=/share/CACHEDEV1_DATA/.qpkg/jellyfin/conf", "--logdir=/share/CACHEDEV1_DATA/.qpkg/jellyfin/logs", "--ffmpeg=/share/CACHEDEV1_DATA/.qpkg/jellyfin/jellyfin-ffmpeg/ffmpeg", "--package-name=pdulvp"] [07:55:33] [INF] [1] Main: Operating system: QTS 5.2.2 (20241114) [07:55:33] [INF] [1] Main: Architecture: X64 [07:55:33] [INF] [1] Main: 64-Bit Process: True [07:55:33] [INF] [1] Main: User Interactive: True [07:55:33] [INF] [1] Main: Processor count: 4 [07:55:33] [INF] [1] Main: Program data path: /share/CACHEDEV1_DATA/.qpkg/jellyfin/database [07:55:33] [INF] [1] Main: Log directory path: /share/CACHEDEV1_DATA/.qpkg/jellyfin/logs [07:55:33] [INF] [1] Main: Config directory path: /share/CACHEDEV1_DATA/.qpkg/jellyfin/conf [07:55:33] [INF] [1] Main: Cache path: /share/CACHEDEV1_DATA/.qpkg/jellyfin/cache [07:55:33] [INF] [1] Main: Temp directory path: /share/CACHEDEV1_DATA/.qpkg/jellyfin/cache/tmp/jellyfin [07:55:33] [INF] [1] Main: Web resources path: /share/CACHEDEV1_DATA/.qpkg/jellyfin/jellyfin-web [07:55:33] [INF] [1] Main: Application directory: /share/CACHEDEV1_DATA/.qpkg/jellyfin/jellyfin/bin/ [07:55:34] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /share/CACHEDEV1_DATA/.qpkg/jellyfin/cache [07:55:34] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies [07:55:34] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.Dlna.Playback, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null from /share/CACHEDEV1_DATA/.qpkg/jellyfin/database/plugins/DLNA_5.0.0.0/Jellyfin.Plugin.Dlna.Playback.dll [07:55:34] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.Dlna.Model, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null from /share/CACHEDEV1_DATA/.qpkg/jellyfin/database/plugins/DLNA_5.0.0.0/Jellyfin.Plugin.Dlna.Model.dll [07:55:34] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Rssdp, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null from /share/CACHEDEV1_DATA/.qpkg/jellyfin/database/plugins/DLNA_5.0.0.0/Rssdp.dll [07:55:34] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.Dlna, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null from /share/CACHEDEV1_DATA/.qpkg/jellyfin/database/plugins/DLNA_5.0.0.0/Jellyfin.Plugin.Dlna.dll [07:55:34] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.PlaybackReporting, Version=15.0.0.0, Culture=neutral, PublicKeyToken=null from /share/CACHEDEV1_DATA/.qpkg/jellyfin/database/plugins/Playback Reporting_15.0.0.0/Jellyfin.Plugin.PlaybackReporting.dll [07:55:34] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly SQLitePCL.pretty, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from /share/CACHEDEV1_DATA/.qpkg/jellyfin/database/plugins/Playback Reporting_15.0.0.0/SQLitePCL.pretty.dll [07:55:34] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.QnapConfiguration, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null from /share/CACHEDEV1_DATA/.qpkg/jellyfin/database/plugins/Jellyfin.Plugin.QnapConfiguration/Jellyfin.Plugin.QnapConfiguration.dll [07:55:35] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly DocumentFormat.OpenXml, Version=2.16.0.0, Culture=neutral, PublicKeyToken=8fb06cb64d019a17 from /share/CACHEDEV1_DATA/.qpkg/jellyfin/database/plugins/Reports_17.0.0.0/DocumentFormat.OpenXml.dll [07:55:35] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly ExcelNumberFormat, Version=1.1.0.0, Culture=neutral, PublicKeyToken=23c6f5d73be07eca from /share/CACHEDEV1_DATA/.qpkg/jellyfin/database/plugins/Reports_17.0.0.0/ExcelNumberFormat.dll [07:55:35] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly System.IO.Packaging, Version=4.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a from /share/CACHEDEV1_DATA/.qpkg/jellyfin/database/plugins/Reports_17.0.0.0/System.IO.Packaging.dll [07:55:35] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly SixLabors.Fonts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13 from /share/CACHEDEV1_DATA/.qpkg/jellyfin/database/plugins/Reports_17.0.0.0/SixLabors.Fonts.dll [07:55:35] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly ClosedXML, Version=0.97.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b from /share/CACHEDEV1_DATA/.qpkg/jellyfin/database/plugins/Reports_17.0.0.0/ClosedXML.dll [07:55:35] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.Reports, Version=17.0.0.0, Culture=neutral, PublicKeyToken=null from /share/CACHEDEV1_DATA/.qpkg/jellyfin/database/plugins/Reports_17.0.0.0/Jellyfin.Plugin.Reports.dll [07:55:35] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.SessionCleaner, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null from /share/CACHEDEV1_DATA/.qpkg/jellyfin/database/plugins/Session Cleaner_4.0.0.0/Jellyfin.Plugin.SessionCleaner.dll [07:55:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"] [07:55:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: [] [07:55:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Used LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"] [07:55:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: ["127.0.0.1", "172.29.0.1", "172.29.8.1", "172.29.12.1", "172.29.4.1", "10.0.5.1", "10.0.3.1", "10.0.7.1", "192.168.222.253"] [07:55:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses ["0.0.0.0"] [07:55:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is Allowlist [07:55:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: [] Fontconfig error: Cannot load default config file [07:55:40] [FTL] [1] Main: Error while starting server Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 8: 'attempt to write a readonly database'. at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery() at Emby.Server.Implementations.Data.SqliteExtensions.Execute(SqliteConnection sqliteConnection, String commandText) at Emby.Server.Implementations.Data.ManagedConnection.Execute(String commandText) at Emby.Server.Implementations.Data.BaseSqliteRepository.Initialize() at Emby.Server.Implementations.Data.SqliteItemRepository.Initialize() at Emby.Server.Implementations.ApplicationHost.InitializeServices() at Jellyfin.Server.Program.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig) [07:55:40] [INF] [1] Main: Running query planner optimizations in the database... This might take a while [07:55:41] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost [07:55:41] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing PluginManager

It then dropped back to shell.

Seems that the issue is:

Error while starting server Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 8: 'attempt to write a readonly database'

Fontconfig error: Cannot load default config file [07:55:40] [FTL] [1] Main: Error while starting server

Time to rebuild again.

@OutOfThisPlanet
Copy link

OutOfThisPlanet commented Dec 14, 2024

Rebuilt it.
Watched stuff for a while, and went to sleep.

Woke up, and it was having issues (80mb single log file - I thought these got split up?).

Restarted server, and.....

Nothing.

It never came back up again.

Starting the server manually with ./jellyfin.sh showed that the database is read only again.

Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 8: 'attempt to write a readonly database'.

WHY?

@OutOfThisPlanet
Copy link

OutOfThisPlanet commented Dec 14, 2024

Will create a new issue for this.

#122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants