JellyBookOrg / JellyBook

A nice way to read books and comics from Jellyfin
MIT License
498 stars 14 forks source link

Could not open the database #71

Closed killo3967 closed 1 year ago

killo3967 commented 1 year ago

Hi.

I use a Samsung Galaxy Tab S7 with your APK. The installation was without any problem and the program start correctly. I have Jellyfin in a Windows 10 and could connect from this tablet and play movies, open books and comics, etc. So the firewall was correctly config.

But when i try to connect with your app, i have this message "Please wait while we fetch content from the database" and after a lot of time, 5 minites or so, appears a message (in red) on the screen:

Error: NoSuchMethodError: The getter 'data' was called on null. Receiver: null Tried calling: data

Then i check Jellyfin log and saw this:

[2023-05-23 23:15:25.677 +02:00] [INF] [70] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "XXXXXXXX" has succeeded. [2023-05-23 23:15:25.678 +02:00] [INF] [70] Emby.Server.Implementations.Session.SessionManager: Current/Max sessions for user "XXXXXXXX": 2/0 [2023-05-23 23:15:25.686 +02:00] [INF] [70] Emby.Server.Implementations.Session.SessionManager: Reissuing access token: "697c1d75f6d64f029d61fd8603db4ffc" [2023-05-23 23:24:16.421 +02:00] [WRN] [70] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://192.168.1.50:8096/Users/9db5e6d910f44080a3a86ed302fe37ab/Items?startIndex=0&recursive=true&sortOrder=Ascending&parentId=db210ad90190f39eb5bb39a021bf5c7e&fields=PrimaryImageAspectRatio&fields=SortName&fields=Path&fields=ChildCount&fields=MediaSourceCount&fields=Tags&fields=Overview&fields=ParentId&sortBy=IsFolder&sortBy=SortName&imageTypeLimit=1&enableTotalRecordCount=true&enableImages=true" to "192.168.1.53" in 0:08:50.3469716 with Status Code 200

Kara-Zor-El commented 1 year ago

Hi,

I would love to help but I would need a bit more information. Please provide the version code of your jellyfin + any additional details. If you are using a reverse proxy, please say which one and what modifications you've made from the original configuration. also, could you perhaps provide a couple screenshots of what your library looks like. Have you tried reloading the app or any other troubleshooting steps? If so, what?

Thanks, Kara

killo3967 commented 1 year ago

Hi Kara.

I'm using Jellyfin version 10.8.9 under Windows 10 Pro 22H2. The instalation is in the C: drive with the database/cache/config/logs/etc in D: drive. Mi internal network is 192.168.1.0/24 without reverse proxy. So i couldn't connect from internet. I tried to connect from my table (192.168.1.132) to the server (192.168.1.50) and also from other phones (all samsung's). I also tried to disabled the windows firewall, but the same problem.

chrome_5BDP1inxPW chrome_9okDqPkmWN chrome_qUWd22Qwqv chrome_uOfieheXFE

Kara-Zor-El commented 1 year ago

Hi, I just had a thought as to why this may be happening. Can you open up developer tools on your web browser, navigate to the network tab, filter by XHR (that makes it easier to find) find the one labeled "Views", go to the response tab and then send the response here? it should look something like this:

{
    "Items": [
        {
            "Name": "Books",
            "ServerId": "19ec2541bb5a40638c8992fa75d05871",
            "Id": "4e985111ed7f570b595204d82adb02f3",
            "Etag": "f822e6a6f77c121bc82155611f041a48",
            "DateCreated": "2022-07-17T13:29:49.0123392Z",
            "CanDelete": false,
            "CanDownload": false,
            "SortName": "books",
            "ExternalUrls": [],
            "Path": "/var/lib/jellyfin/root/default/Books",
            "EnableMediaSourceDisplay": true,
            "ChannelId": null,
            "Taglines": [],
            "Genres": [],
            "PlayAccess": "Full",
            "RemoteTrailers": [],
            "ProviderIds": {},
            "IsFolder": true,
            "ParentId": "e9d5075a555c1cbc394eec4cef295274",
            "Type": "CollectionFolder",
            "People": [],
            "Studios": [],
            "GenreItems": [],
            "LocalTrailerCount": 0,
            "UserData": {
                "PlaybackPositionTicks": 0,
                "PlayCount": 0,
                "IsFavorite": false,
                "Played": false,
                "Key": "4e985111-ed7f-570b-5952-04d82adb02f3"
            },
            "ChildCount": 3,
            "SpecialFeatureCount": 0,
            "DisplayPreferencesId": "4e985111ed7f570b595204d82adb02f3",
            "Tags": [],
            "PrimaryImageAspectRatio": 1.7777777777777777,
            "CollectionType": "books",
            "ImageTags": {
                "Primary": "795595144c6d560070a0be4b296721b8"
            },
            "BackdropImageTags": [],
            "ImageBlurHashes": {
                "Primary": {
                    "795595144c6d560070a0be4b296721b8": "WDD8,%ITVXjFwJbJaMOFM{bbsloy8wx[-;WpS4Rji^axtRs:WXWB"
                }
            },
            "LocationType": "FileSystem",
            "LockedFields": [],
            "LockData": false
        },
        {
            "Name": "Collections",
            "ServerId": "19ec2541bb5a40638c8992fa75d05871",
            "Id": "9d7ad6afe9afa2dab1a2f6e00ad28fa6",
            "Etag": "bfca5a5af2f91615d26a1ae58bdaf9f5",
            "DateCreated": "2022-07-17T01:12:22.4038962Z",
            "CanDelete": false,
            "CanDownload": false,
            "SortName": "collections",
            "ExternalUrls": [],
            "Path": "/var/lib/jellyfin/root/default/Collections",
            "EnableMediaSourceDisplay": true,
            "ChannelId": null,
            "Taglines": [],
            "Genres": [],
            "PlayAccess": "Full",
            "RemoteTrailers": [],
            "ProviderIds": {},
            "IsFolder": true,
            "ParentId": "e9d5075a555c1cbc394eec4cef295274",
            "Type": "CollectionFolder",
            "People": [],
            "Studios": [],
            "GenreItems": [],
            "LocalTrailerCount": 0,
            "UserData": {
                "PlaybackPositionTicks": 0,
                "PlayCount": 0,
                "IsFavorite": false,
                "Played": false,
                "Key": "9d7ad6af-e9af-a2da-b1a2-f6e00ad28fa6"
            },
            "ChildCount": 9,
            "SpecialFeatureCount": 0,
            "DisplayPreferencesId": "9d7ad6afe9afa2dab1a2f6e00ad28fa6",
            "Tags": [],
            "PrimaryImageAspectRatio": 1.7777777777777777,
            "CollectionType": "boxsets",
            "ImageTags": {
                "Primary": "023903cb0280641e8ce701a70be04c04"
            },
            "BackdropImageTags": [],
            "ImageBlurHashes": {
                "Primary": {
                    "023903cb0280641e8ce701a70be04c04": "WDAmh?kC4.V[9FkC~Wa#M{WBM{bH4nWB%Mj[%LWBRjWBs:a|xaay"
                }
            },
            "LocationType": "FileSystem",
            "LockedFields": [],
            "LockData": false
        },
        {
            "Name": "Comics",
            "ServerId": "19ec2541bb5a40638c8992fa75d05871",
            "Id": "2912d51b5fccd138129c54cce1e8bbc6",
            "Etag": "c5b1cf39604178ffe74760de48bc5da9",
            "DateCreated": "2022-08-11T16:12:34.9332958Z",
            "CanDelete": false,
            "CanDownload": false,
            "SortName": "comics",
            "ExternalUrls": [],
            "Path": "/var/lib/jellyfin/root/default/Comics",
            "EnableMediaSourceDisplay": true,
            "ChannelId": null,
            "Taglines": [],
            "Genres": [],
            "PlayAccess": "Full",
            "RemoteTrailers": [],
            "ProviderIds": {},
            "IsFolder": true,
            "ParentId": "e9d5075a555c1cbc394eec4cef295274",
            "Type": "CollectionFolder",
            "People": [],
            "Studios": [],
            "GenreItems": [],
            "LocalTrailerCount": 0,
            "UserData": {
                "PlaybackPositionTicks": 0,
                "PlayCount": 0,
                "IsFavorite": false,
                "Played": false,
                "Key": "2912d51b-5fcc-d138-129c-54cce1e8bbc6"
            },
            "ChildCount": 7,
            "SpecialFeatureCount": 0,
            "DisplayPreferencesId": "2912d51b5fccd138129c54cce1e8bbc6",
            "Tags": [],
            "PrimaryImageAspectRatio": 1.7777777777777777,
            "CollectionType": "books",
            "ImageTags": {
                "Primary": "fc9e033446996c42ef2c70af5f0d9f42"
            },
            "BackdropImageTags": [],
            "ImageBlurHashes": {
                "Primary": {
                    "fc9e033446996c42ef2c70af5f0d9f42": "W9AJ+kW;01M~IX9vBos.IWo3r@xZ4njF^+JARkxZ-mjFR,bvW;WB"
                }
            },
            "LocationType": "FileSystem",
            "LockedFields": [],
            "LockData": false
        },
        {
            "Name": "Movies",
            "ServerId": "19ec2541bb5a40638c8992fa75d05871",
            "Id": "f137a2dd21bbc1b99aa5c0f6bf02a805",
            "Etag": "a193e186913e5036e1eaa1b0e38a658d",
            "DateCreated": "2022-07-11T19:11:43.3758795Z",
            "CanDelete": false,
            "CanDownload": false,
            "SortName": "movies",
            "ExternalUrls": [],
            "Path": "/var/lib/jellyfin/root/default/Movies",
            "EnableMediaSourceDisplay": true,
            "ChannelId": null,
            "Taglines": [],
            "Genres": [],
            "PlayAccess": "Full",
            "RemoteTrailers": [],
            "ProviderIds": {},
            "IsFolder": true,
            "ParentId": "e9d5075a555c1cbc394eec4cef295274",
            "Type": "CollectionFolder",
            "People": [],
            "Studios": [],
            "GenreItems": [],
            "LocalTrailerCount": 0,
            "UserData": {
                "PlaybackPositionTicks": 0,
                "PlayCount": 0,
                "IsFavorite": false,
                "Played": false,
                "Key": "f137a2dd-21bb-c1b9-9aa5-c0f6bf02a805"
            },
            "ChildCount": 7,
            "SpecialFeatureCount": 0,
            "DisplayPreferencesId": "f137a2dd21bbc1b99aa5c0f6bf02a805",
            "Tags": [],
            "PrimaryImageAspectRatio": 1.7777777777777777,
            "CollectionType": "movies",
            "ImageTags": {
                "Primary": "620acdc2d618481e1278aecbc289133f"
            },
            "BackdropImageTags": [],
            "ImageBlurHashes": {
                "Primary": {
                    "620acdc2d618481e1278aecbc289133f": "W9A^Ue4:00xsxtWY9H%gofV@RjWY9GM{?bs;kCj?ozM_t7ozofe-"
                }
            },
            "LocationType": "FileSystem",
            "LockedFields": [],
            "LockData": false
        },
        {
            "Name": "Shows",
            "ServerId": "19ec2541bb5a40638c8992fa75d05871",
            "Id": "a656b907eb3a73532e40e44b968d0225",
            "Etag": "8f2902934483ebc0c5b98d97551bbf41",
            "DateCreated": "2022-07-11T19:10:52.2682766Z",
            "CanDelete": false,
            "CanDownload": false,
            "SortName": "shows",
            "ExternalUrls": [],
            "Path": "/var/lib/jellyfin/root/default/Shows",
            "EnableMediaSourceDisplay": true,
            "ChannelId": null,
            "Taglines": [],
            "Genres": [],
            "PlayAccess": "Full",
            "RemoteTrailers": [],
            "ProviderIds": {},
            "IsFolder": true,
            "ParentId": "e9d5075a555c1cbc394eec4cef295274",
            "Type": "CollectionFolder",
            "People": [],
            "Studios": [],
            "GenreItems": [],
            "LocalTrailerCount": 0,
            "UserData": {
                "PlaybackPositionTicks": 0,
                "PlayCount": 0,
                "IsFavorite": false,
                "Played": false,
                "Key": "a656b907-eb3a-7353-2e40-e44b968d0225"
            },
            "ChildCount": 3,
            "SpecialFeatureCount": 0,
            "DisplayPreferencesId": "a656b907eb3a73532e40e44b968d0225",
            "Tags": [],
            "PrimaryImageAspectRatio": 1.7777777777777777,
            "CollectionType": "tvshows",
            "ImageTags": {
                "Primary": "e82e574a6b5786a8e40bcf2c51725368"
            },
            "BackdropImageTags": [],
            "ImageBlurHashes": {
                "Primary": {
                    "e82e574a6b5786a8e40bcf2c51725368": "WC8g$[V?9ZRPxuw]jEjEW=V@xaoL4Toz-;ozRiWXI=X9smt7WAj@"
                }
            },
            "LocationType": "FileSystem",
            "LockedFields": [],
            "LockData": false
        }
    ],
    "TotalRecordCount": 5,
    "StartIndex": 0
}
killo3967 commented 1 year ago

I think this is what you want.

response.txt

Kara-Zor-El commented 1 year ago

Hi, that is a empty text file

killo3967 commented 1 year ago

Hi, sorry for the problem. I think i have now. response.txt

Kara-Zor-El commented 1 year ago

Hi, sorry for the so late reply. Is it working in the latest update?

Kara-Zor-El commented 1 year ago

Closing due to inactivity