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

I don't know why this file can only display one or two pages #934

Open
fatecyx opened this issue Dec 30, 2023 · 4 comments
Open

I don't know why this file can only display one or two pages #934

fatecyx opened this issue Dec 30, 2023 · 4 comments

Comments

@fatecyx
Copy link

fatecyx commented Dec 30, 2023

LRR Version and OS
docker: difegue/lanraragi:nightly

Bug Details
It seems normal in the logs, but I don't know why the error occurred. this file can only display one or two pages

Docker Logs

[2023-12-30 04:12:14.70693] [23558] [trace] [Fzw-i-rz0XtQ] GET "/api/shinobu"
[2023-12-30 04:12:14.70809] [23558] [trace] [Fzw-i-rz0XtQ] Routing to controller "LANraragi::Controller::Login" and action "logged_in_api"
[2023-12-30 04:12:14.71338] [23558] [trace] [Fzw-i-rz0XtQ] Routing to controller "LANraragi::Controller::Api::Shinobu" and action "shinobu_status"
[2023-12-30 04:12:14.71481] [23558] [trace] [Fzw-i-rz0XtQ] 200 OK (0.007841s, 127.535/s)
[2023-12-30 04:12:17.94872] [23558] [trace] Inactivity timeout (see FAQ for more)
[2023-12-30 04:12:17.95736] [23558] [trace] [6aNe25-16e5G] GET "/api/archives/7880785addc660397fccbb13f58ef5e32b7fecd0/page"
[2023-12-30 04:12:17.95920] [23558] [trace] [6aNe25-16e5G] Routing to controller "LANraragi::Controller::Api::Archive" and action "serve_page"
[File Serving] [debug] Path to requested file is /home/koyomi/lanraragi/public/temp/7880785addc660397fccbb13f58ef5e32b7fecd0/(C78) [��������� (����)] ��������� ��編��� (���女�������)/zhxz_0008.jpg
[File Serving] [debug] Page /7880785addc660397fccbb13f58ef5e32b7fecd0/(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0008.jpg was requested
[File Serving] [debug] Waiting for file to be fully written (152845, previously 0)
[File Serving] [debug] Path to requested file is /home/koyomi/lanraragi/public/temp/7880785addc660397fccbb13f58ef5e32b7fecd0/(C78) [��������� (����)] ��������� ��編��� (���女�������)/zhxz_0008.jpg
[2023-12-30 04:12:17.98090] [23558] [error] Cannot read file [/home/koyomi/lanraragi/public/temp/7880785addc660397fccbb13f58ef5e32b7fecd0/(C78) [��������� (����)] ��������� ��編��� (���女�������)/zhxz_0008.jpg]. error []
[2023-12-30 04:12:17.98313] [23558] [debug] Template "api/archive/serve_page.html.tt2" not found
[2023-12-30 04:12:17.98402] [23558] [trace] [6aNe25-16e5G] Nothing has been rendered, expecting delayed response (see FAQ for more)
[2023-12-30 04:12:19.71338] [23558] [trace] [cz5JWklkucAo] GET "/api/shinobu"

Application Logs
[2023-12-30 04:08:46] [Categories] [debug] Finding categories containing 7880785addc660397fccbb13f58ef5e32b7fecd0
[2023-12-30 04:08:47] [LANraragi] [debug] Files found in archive (encoding might be incorrect):
$VAR1 = '(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0001.jpg';
$VAR2 = '(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0002.jpg';
$VAR3 = '(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0003.jpg';
$VAR4 = '(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0004.jpg';
$VAR5 = '(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0005.jpg';
$VAR6 = '(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0006.jpg';
......
[2023-12-30 04:08:46] [Categories] [debug] Finding categories containing 7880785addc660397fccbb13f58ef5e32b7fecd0
[2023-12-30 04:08:47] [LANraragi] [debug] Files found in archive (encoding might be incorrect):
$VAR1 = '(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0001.jpg';
$VAR2 = '(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0002.jpg';
$VAR3 = '(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0003.jpg';
$VAR4 = '(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0004.jpg';
$VAR5 = '(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0005.jpg';
$VAR6 = '(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0006.jpg';
......
[2023-12-30 04:10:47] [File Serving] [debug] Waiting for file to be fully written (152845, previously 0)
[2023-12-30 04:10:47] [File Serving] [debug] Path to requested file is /home/koyomi/lanraragi/public/temp/7880785addc660397fccbb13f58ef5e32b7fecd0/(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0008.jpg
[2023-12-30 04:11:17] [File Serving] [debug] Page /7880785addc660397fccbb13f58ef5e32b7fecd0/(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0008.jpg was requested
[2023-12-30 04:11:17] [File Serving] [debug] Waiting for file to be fully written (152845, previously 0)
[2023-12-30 04:11:17] [File Serving] [debug] Path to requested file is /home/koyomi/lanraragi/public/temp/7880785addc660397fccbb13f58ef5e32b7fecd0/(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0008.jpg
[2023-12-30 04:11:47] [File Serving] [debug] Page /7880785addc660397fccbb13f58ef5e32b7fecd0/(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0008.jpg was requested
[2023-12-30 04:11:47] [File Serving] [debug] Waiting for file to be fully written (152845, previously 0)
[2023-12-30 04:11:47] [File Serving] [debug] Path to requested file is /home/koyomi/lanraragi/public/temp/7880785addc660397fccbb13f58ef5e32b7fecd0/(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは)/zhxz_0008.jpg

File
(C78) [スタジオ☆ひまわり (日向恭介)] ヴィータさんと一緒 総集編プラス (魔法少女リリカルなのは).zip

@fatecyx
Copy link
Author

fatecyx commented Dec 30, 2023

another error file Logs: (Permission denied, why? only a few books have this error)
[2023-12-30 04:45:41.69825] [16242] [trace] [cKasthitzk4y] Routing to controller "LANraragi::Controller::Api::Archive" and action "serve_page"
[Archive] [debug] Output for single file extraction: /home/koyomi/lanraragi/c9006da55fbdba6d3c46fed1cb1a39606bd0ecd1/[えち絵克服アカ (ものた)] 1週間の間100回絶頂したらこれから付くバステが一生解除できなくなる呪いのお話 [零食汉化]/00000044.jpg
[Archive] [debug] Found file [えち絵克服アカ (ものた)] 1週間の間100回絶頂したらこれから付くバステが一生解除できなくなる呪いのお話 [零食汉化]/00000044.jpg in archive /home/koyomi/lanraragi/content/2019_2022_comics/å�¶ä»�/[ã��ã�¡çµµå��æ��ã�¢ã�« (ã��ã�®ã��)] 1é�±é��ã�®é��100å��絶é �ã��ã��ã��ã��ã��ã��ã��ä»�ã��ã��ã�¹ã��ã��ä¸�ç��解é�¤ã�§ã��ã�ªã��ã�ªã��å�ªã��ã�®ã��話 [é�¶é£�æ±�å��].zip
[2023-12-30 04:45:41.70935] [16201] [trace] [shHTEK7C7hT-] GET "/api/archives/c9006da55fbdba6d3c46fed1cb1a39606bd0ecd1/thumbnail"
[2023-12-30 04:45:41.71084] [16201] [trace] [shHTEK7C7hT-] Routing to controller "LANraragi::Controller::Api::Archive" and action "serve_thumbnail"
[2023-12-30 04:45:41.72910] [16201] [trace] [shHTEK7C7hT-] 200 OK (0.019644s, 50.906/s)
[2023-12-30 04:45:41.73399] [16248] [error] [Kc75W8gnwHYb] Could not open file '/home/koyomi/lanraragi/public/temp/c9006da55fbdba6d3c46fed1cb1a39606bd0ecd1/[��絵���� (���)] 1����100�絶����������������解�����������話 [����]/00000045.jpg' Permission denied at /home/koyomi/lanraragi/script/../lib/LANraragi/Utils/Archive.pm line 344.

[2023-12-30 04:45:41.73890] [16248] [debug] Template "exception.development.html.tt2" not found
[2023-12-30 04:45:41.74388] [16248] [debug] Template "exception.html.tt2" not found
[2023-12-30 04:45:41.74678] [16248] [trace] [Kc75W8gnwHYb] Rendering cached template "mojo/debug.html.ep"
[2023-12-30 04:45:41.76511] [16201] [trace] [h_9ubmoroagH] GET "/api/archives/c9006da55fbdba6d3c46fed1cb1a39606bd0ecd1/thumbnail"
[2023-12-30 04:45:41.76679] [16201] [trace] [h_9ubmoroagH] Routing to controller "LANraragi::Controller::Api::Archive" and action "serve_thumbnail"
[2023-12-30 04:45:41.77658] [16201] [trace] [h_9ubmoroagH] 200 OK (0.011414s, 87.612/s)
[2023-12-30 04:45:41.79832] [16201] [trace] [yFXXJmlzF8h9] GET "/api/archives/c9006da55fbdba6d3c46fed1cb1a39606bd0ecd1/thumbnail"
[2023-12-30 04:45:41.79994] [16201] [trace] [yFXXJmlzF8h9] Routing to controller "LANraragi::Controller::Api::Archive" and action "serve_thumbnail"
[2023-12-30 04:45:41.80117] [16248] [trace] [Kc75W8gnwHYb] 500 Internal Server Error (0.593363s, 1.685/s)
[2023-12-30 04:45:41.80306] [16242] [error] [cKasthitzk4y] Could not open file '/home/koyomi/lanraragi/public/temp/c9006da55fbdba6d3c46fed1cb1a39606bd0ecd1/[��絵���� (���)] 1����100�絶����������������解�����������話 [����]/00000047.png' Permission denied at /home/koyomi/lanraragi/script/../lib/LANraragi/Utils/Archive.pm line 344.

[2023-12-30 04:45:41.80554] [16242] [debug] Template "exception.development.html.tt2" not found
[2023-12-30 04:45:41.80821] [16242] [debug] Template "exception.html.tt2" not found
[2023-12-30 04:45:41.80954] [16242] [trace] [cKasthitzk4y] Rendering cached template "mojo/debug.html.ep"
[2023-12-30 04:45:41.81085] [16254] [error] [PHy3h09hIFV6] Could not open file '/home/koyomi/lanraragi/public/temp/c9006da55fbdba6d3c46fed1cb1a39606bd0ecd1/[��絵���� (���)] 1����100�絶����������������解�����������話 [����]/00000042.jpg' Permission denied at /home/koyomi/lanraragi/script/../lib/LANraragi/Utils/Archive.pm line 344.

[2023-12-30 04:45:41.81374] [16254] [debug] Template "exception.development.html.tt2" not found
[2023-12-30 04:45:41.81672] [16254] [debug] Template "exception.html.tt2" not found

@Difegue
Copy link
Owner

Difegue commented Dec 30, 2023

image
works fine here. I'm not sure why you're getting permission errors -- Maybe just try cleaning the archive cache so it re-extracts the file.

@fatecyx
Copy link
Author

fatecyx commented Jan 1, 2024

I rebuilt the docker container and tried again. It will become unloadable after about 3 to 4 page turns. Even refreshing the page at this time has no effect. But at this time, I went to the settings and clicked the "clean temporary folder" button, returned to the page again, refreshed it, and could continue reading. But problems still occur

@fatecyx
Copy link
Author

fatecyx commented Jan 1, 2024

I got it. When I looked at the files in the temp directory in docker, I found that there was a problem with the file permissions.
These files are all newly created
---------- 1 koyomi koyomi 171300 Apr 20 2015 zhxz_0001.jpg
---------- 1 koyomi koyomi 178401 Apr 20 2015 zhxz_0002.jpg
---------- 1 koyomi koyomi 134791 Apr 20 2015 zhxz_0003.jpg
---------- 1 koyomi koyomi 150922 Apr 20 2015 zhxz_0004.jpg
---------- 1 koyomi koyomi 162620 Apr 20 2015 zhxz_0005.jpg
---------- 1 koyomi koyomi 158201 Apr 20 2015 zhxz_0006.jpg
---------- 1 koyomi koyomi 154664 Apr 20 2015 zhxz_0007.jpg
---------- 1 koyomi koyomi 152845 Apr 20 2015 zhxz_0008.jpg
---------- 1 koyomi koyomi 148340 Apr 20 2015 zhxz_0009.jpg
---------- 1 koyomi koyomi 103358 Apr 20 2015 zhxz_0010.jpg
---------- 1 koyomi koyomi 177511 Apr 20 2015 zhxz_0011.jpg
---------- 1 koyomi koyomi 176501 Apr 20 2015 zhxz_0012.jpg
---------- 1 koyomi koyomi 159049 Apr 20 2015 zhxz_0013.jpg
---------- 1 koyomi koyomi 204129 Apr 20 2015 zhxz_0014.jpg
---------- 1 koyomi koyomi 158750 Apr 20 2015 zhxz_0015.jpg
---------- 1 koyomi koyomi 147429 Apr 20 2015 zhxz_0016.jpg
---------- 1 koyomi koyomi 140333 Apr 20 2015 zhxz_0017.jpg
---------- 1 koyomi koyomi 128584 Apr 20 2015 zhxz_0018.jpg
---------- 1 koyomi koyomi 155440 Apr 20 2015 zhxz_0019.jpg
---------- 1 koyomi koyomi 142133 Apr 20 2015 zhxz_0020.jpg
---------- 1 koyomi koyomi 129791 Apr 20 2015 zhxz_0021.jpg
---------- 1 koyomi koyomi 151750 Apr 20 2015 zhxz_0022.jpg
---------- 1 koyomi koyomi 131443 Apr 20 2015 zhxz_0023.jpg
---------- 1 koyomi koyomi 142060 Apr 20 2015 zhxz_0024.jpg
---------- 1 koyomi koyomi 251615 Apr 20 2015 zhxz_0025.jpg
---------- 1 koyomi koyomi 139552 Apr 20 2015 zhxz_0026.jpg
---------- 1 koyomi koyomi 109041 Apr 20 2015 zhxz_0027.jpg
---------- 1 koyomi koyomi 140630 Apr 20 2015 zhxz_0028.jpg
---------- 1 koyomi koyomi 127862 Apr 20 2015 zhxz_0029.jpg
---------- 1 koyomi koyomi 134512 Apr 20 2015 zhxz_0030.jpg
---------- 1 koyomi koyomi 151595 Apr 20 2015 zhxz_0031.jpg
---------- 1 koyomi koyomi 149950 Apr 20 2015 zhxz_0032.jpg
-rw-r--r-- 1 koyomi koyomi 116058 Jan 1 06:24 zhxz_0033.jpg
-rw-r--r-- 1 koyomi koyomi 216040 Jan 1 06:24 zhxz_0034.jpg
-rw-r--r-- 1 koyomi koyomi 180300 Jan 1 06:24 zhxz_0035.jpg
---------- 1 koyomi koyomi 171374 Apr 20 2015 zhxz_0036.jpg

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

2 participants