getmango / Mango

Mango is a self-hosted manga server and web reader
https://getmango.app
MIT License
1.68k stars 118 forks source link

[Question] How should the library path be set in WSL2? #346

Open Zebartin opened 1 year ago

Zebartin commented 1 year ago

First of all, thank Mango developers very much.

I am using Mango binary, downloaded from latest release, in WSL2, and it works well when I set the library path to a directory inside Linux file system. But it fails to work if I set it to a path referring to somewhere inside Windows file system, like /mnt/d/comic/ in WSL2, which means D:\comic\ in Windows. Mango did scan some entries once or twice, but not complete. And I did chmod recursively the library path to prevent permission issues.

Here is the log:

Mango - Manga Server and Web Reader. Version 0.27.0

[DEBUG]   2023/03/08 10:36:24 | Current version: 12
[DEBUG]   2023/03/08 10:36:24 | Target version: 12
[DEBUG]   2023/03/08 10:36:24 | Nothing to be done
[DEBUG]   2023/03/08 10:36:24 | Loading cached library from /home/zebartin/mango/library-e.yml.gz
[DEBUG]   2023/03/08 10:36:24 | Library cache loaded
[DEBUG]   2023/03/08 10:36:24 | We are in release mode. Using embedded static files.
[DEBUG]   2023/03/08 10:36:24 | Starting Kemal server
[DEBUG]   2023/03/08 10:36:24 | Current version: 12
[DEBUG]   2023/03/08 10:36:24 | Target version: 12
[DEBUG]   2023/03/08 10:36:24 | Nothing to be done
[DEBUG]   2023/03/08 10:36:25 | 200 GET /api/admin/thumbnail_progress 27.36ms
[DEBUG]   2023/03/08 10:36:30 | 200 GET /api/admin/thumbnail_progress 10.1ms
[DEBUG]   2023/03/08 10:36:35 | 200 GET /api/admin/thumbnail_progress 14.07ms
[DEBUG]   2023/03/08 10:36:41 | 200 GET /api/admin/thumbnail_progress 15.3ms
[INFO]    2023/03/08 10:36:46 | Scanned 0 titles in 21343.920114ms
[DEBUG]   2023/03/08 10:36:46 | Library initialized in 21345.576614ms
[DEBUG]   2023/03/08 10:36:46 | Caching library to /home/zebartin/mango/library-e.yml.gz
[DEBUG]   2023/03/08 10:36:46 | 200 GET /api/admin/thumbnail_progress 2.77ms
[DEBUG]   2023/03/08 10:36:49 | 200 GET /api/admin/thumbnail_progress 847.8µs
[DEBUG]   2023/03/08 10:36:54 | 200 GET /api/admin/thumbnail_progress 1.04ms
[DEBUG]   2023/03/08 10:36:59 | 200 GET /api/admin/thumbnail_progress 1.08ms
[DEBUG]   2023/03/08 10:37:04 | 200 GET /api/admin/thumbnail_progress 1.03ms
[DEBUG]   2023/03/08 10:37:09 | 200 GET /api/admin/thumbnail_progress 863.9µs
[DEBUG]   2023/03/08 10:37:14 | 200 GET /api/admin/thumbnail_progress 896.9µs
[DEBUG]   2023/03/08 10:37:19 | 200 GET /api/admin/thumbnail_progress 1.37ms
[INFO]    2023/03/08 10:37:24 | Starting thumbnail generation
[INFO]    2023/03/08 10:37:24 | Thumbnail generation finished
[DEBUG]   2023/03/08 10:37:24 | 200 GET /api/admin/thumbnail_progress 1.17ms
mrford3rd commented 11 months ago

my work around for wsl2 was to delete the mango/library folder and then symlink the windows directory e.g. rmdir mango/library ln -s /mnt/d/comic/ /home/zebartin/mango/library