5rahim / seanime

Open-source media server for anime and manga that includes library scanning, downloading, transcoding, torrent & debrid streaming, and more.
https://seanime.rahim.app
MIT License
362 stars 27 forks source link

sendfile: file ./web/.html not found Issue #18

Closed MDWASEEM1995 closed 8 months ago

MDWASEEM1995 commented 8 months ago

Describe the bug Program doesn't start properly when accessing 'http://127.0.0.1:43211/' after running the server Its not always happening but like 8 times out of 10.

To Reproduce Startup Seanime server Go to http://127.0.0.1:43211/ See error

Expected behavior Seanime should start.

2024-02-22 23:25:02 INF app: Loaded config from "C:\Users\user\AppData\Roaming\Seanime" 2024-02-22 23:25:03 INF db: Database instantiated 2024-02-22 23:25:03 INF app: Connected to database "seanime.db" 2024-02-22 23:25:03 INF watcher: Watching directory: "C:/Users/user/Downloads/Anime" 2024-02-22 23:25:08 INF app: Fetched Anilist collection 2024-02-22 23:25:08 INF app: Initialized modules 2024-02-22 23:25:08 INF Seanime started at http://127.0.0.1:43211

Windows 11 Floorp, Firefox, Edge

image

5rahim commented 8 months ago

I think I found the issue. Should be fixed in the next release.

MDWASEEM1995 commented 8 months ago

After updating to 0.4.0, facing below issue

sendfile: file ./web/index.html not found

                ⦿ SEANIME 0.4.0

2024-02-24 14:04:15 INF app: Loaded config from "C:\Users\user\AppData\Roaming\Seanime" 2024-02-24 14:04:15 INF db: Database instantiated 2024-02-24 14:04:15 INF app: Connected to database "seanime.db" 2024-02-24 14:04:15 INF watcher: Watching directory: "C:/Users/user/Downloads/Anime" 2024-02-24 14:04:25 INF app: Fetched Anilist collection 2024-02-24 14:04:25 INF app: Initialized modules 2024-02-24 14:04:25 INF Seanime started at http://127.0.0.1:43211 2024-02-24 14:04:28 INF autodownloader: Module started 2024-02-24 14:04:28 DBG autodownloader: Auto Downloader started 2024-02-24 14:04:28 TRC autodownloader: Checking for new episodes from AnimeTosho

5rahim commented 8 months ago

@MDWASEEM1995

MDWASEEM1995 commented 8 months ago

sendfile: file ./web/schedule.html not found

5rahim commented 8 months ago

@MDWASEEM1995

What does your folder look like Have you tried emptying the cache

& Check that the folder is in the right place. Can't reproduce and can't troubleshoot without more info

MDWASEEM1995 commented 8 months ago

Directory of C:\Users\user\Downloads\seanime-0.4.0_Windows_x86_64

02/24/2024 12:54 AM

. 02/24/2024 04:44 PM .. 02/24/2024 12:23 AM 1,062 LICENSE 02/24/2024 01:29 AM logs 02/24/2024 12:26 AM 26,171,904 seanime.exe 02/24/2024 12:54 AM web 2 File(s) 26,172,966 bytes 4 Dir(s) 565,345,390,592 bytes free

MDWASEEM1995 commented 8 months ago

Directory of C:\Users\user\Downloads\seanime-0.4.0_Windows_x86_64\web

02/24/2024 12:54 AM

. 02/24/2024 12:54 AM .. 02/24/2024 12:23 AM 10,171 404.html 02/24/2024 12:23 AM 14,991 anilist.html 02/24/2024 12:23 AM 7,348 anilist.txt 02/24/2024 12:23 AM 1,963 anilist.txt.fiber.gz 02/24/2024 12:50 AM auth 02/24/2024 12:23 AM 14,927 auto-downloader.html 02/24/2024 12:23 AM 7,384 auto-downloader.txt 02/24/2024 12:23 AM 1,945 auto-downloader.txt.fiber.gz 02/24/2024 12:23 AM 14,998 discover.html 02/24/2024 12:23 AM 7,353 discover.txt 02/24/2024 12:23 AM 1,964 discover.txt.fiber.gz 02/24/2024 12:23 AM 15,173 entry.html 02/24/2024 12:23 AM 7,444 entry.txt 02/24/2024 12:23 AM 1,988 entry.txt.fiber.gz 02/24/2024 12:50 AM icons 02/24/2024 12:23 AM 15,311 index.html 02/24/2024 12:23 AM 4,026 index.html.fiber.gz 02/24/2024 12:23 AM 7,505 index.txt 02/24/2024 12:23 AM 2,008 index.txt.fiber.gz 02/24/2024 12:23 AM 258,912 landscape-beach.jpg 02/24/2024 12:23 AM 218,191 landscape-one-piece-01.jpg 02/24/2024 12:23 AM 299,776 landscape-tenki-no-ko.jpg 02/24/2024 12:23 AM 298,149 landscape-tenki-no-ko.jpg.fiber.gz 02/24/2024 12:23 AM 14,811 list-sync.html 02/24/2024 12:23 AM 7,320 list-sync.txt 02/24/2024 12:23 AM 1,940 list-sync.txt.fiber.gz 02/24/2024 12:23 AM 61,666 logo.png 02/24/2024 12:23 AM 153,677 luffy-01.png 02/24/2024 12:50 AM mal 02/24/2024 12:23 AM 13,901 mal.html 02/24/2024 12:23 AM 6,716 mal.txt 02/24/2024 12:23 AM 5,559 pattern-1.svg 02/24/2024 12:23 AM 7,080 pattern-2.svg 02/24/2024 12:23 AM 3,439 pattern-2.svg.fiber.gz 02/24/2024 12:23 AM 673 pattern-3.svg 02/24/2024 12:23 AM 13,786 qbittorrent.html 02/24/2024 12:23 AM 6,597 qbittorrent.txt 02/24/2024 12:23 AM 14,507 scan-summaries.html 02/24/2024 12:23 AM 7,104 scan-summaries.txt 02/24/2024 12:23 AM 1,917 scan-summaries.txt.fiber.gz 02/24/2024 12:23 AM 14,641 schedule.html 02/24/2024 12:23 AM 7,020 schedule.txt 02/24/2024 12:23 AM 1,959 schedule.txt.fiber.gz 02/24/2024 12:23 AM 14,986 search.html 02/24/2024 12:23 AM 7,345 search.txt 02/24/2024 12:23 AM 14,639 settings.html 02/24/2024 12:23 AM 7,163 settings.txt 02/24/2024 12:23 AM 1,931 settings.txt.fiber.gz 02/24/2024 12:23 AM 14,147 torrent-list.html 02/24/2024 12:23 AM 6,889 torrent-list.txt 02/24/2024 12:23 AM 1,890 torrent-list.txt.fiber.gz 02/24/2024 12:50 AM _next 48 File(s) 1,624,830 bytes 6 Dir(s) 565,349,953,536 bytes free

MDWASEEM1995 commented 8 months ago

Cleared the %TEMP% folder if that means clearing the cache.

5rahim commented 8 months ago

Try clearing the browser cache, if that doesn't work try another browser like Chrome.

MDWASEEM1995 commented 8 months ago

Same issue in edge and firefox.

I deleted the previous version folder and unzipped the new version at the same place. It worked as well at the start. Auto downloader is also working well.

MDWASEEM1995 commented 8 months ago

I redownloaded the 0.4.0 version and its started working again. At the start it works fine but suddenly same issue start popping up.

5rahim commented 8 months ago

Can't really tell, try unzipping the files somewhere else than the "Downloads" folder.

MDWASEEM1995 commented 8 months ago

Okay. Its same issue as what I have shared the issue for at the start of ticket. At the start it works fine but suddenly this issue happens. Same thing was happening in original issue as well. It will work fine but suddenly the issue will start happening.

MDWASEEM1995 commented 8 months ago

For now after redownload it is working fine. In case issue happens again I will unzip in other folder and update.

MDWASEEM1995 commented 8 months ago

After changing the folder to Documents, still the same issue is happening today.

MDWASEEM1995 commented 8 months ago

At the start it works but after some time issue starts happening.

5rahim commented 8 months ago

@MDWASEEM1995 Try using Chrome or launching seanime.exe from the terminal

MDWASEEM1995 commented 8 months ago

Launching seanime.exe from terminal worked. But I think this will also stop working in some time. I will update in case issue occurs. I don't really use chrome or edge so it would be really good if it works with floorp or firefox.

5rahim commented 8 months ago

It probably has nothing to do with the browser or even the code for that matter. It appears seanime.exe is being launched from another working directory somehow or denied access to the web folder. Launching it from the terminal should ensure the working directory stays the same but if it happens again it's definitely OS related.

MDWASEEM1995 commented 8 months ago

I have not encountered any issue using this method. Though if possible it would be great if the Path is properly updated and there is no need to open the terminal in exact folder and then run the application. Thanks for the help.

5rahim commented 8 months ago

@MDWASEEM1995 The new version will use absolute paths for serving files. I can't control how the web framework serves file internally besides that. It will also print out the working dir when the app launches for debugging purposes. If the issue persists then it won't be something I can solve unfortunately.