vinser / flibgolite Goto Github PK
View Code? Open in Web Editor NEWFLibGoLite is easy to use home library OPDS server you can install on your PC, NAS or server.
Home Page: https://vinser.github.io/flibgolite-docs/
License: MIT License
FLibGoLite is easy to use home library OPDS server you can install on your PC, NAS or server.
Home Page: https://vinser.github.io/flibgolite-docs/
License: MIT License
Integrated log rotation is a good option, but for some corner cases it would be good to have an option to disable it.
For example if you use /dev/stdout as your log file.
Right now I'm running a docker container with flibgolite, and logs are interrupted every 1-2 days. Restart helps. The only suspicion is log rotation.
Steps to reproduce:
<...>
INFO: 2022/07/11 17:23:29 file 550971.fb2 from f.fb2-550756-552903.zip has been added
INFO: 2022/07/11 17:23:30 file 186024.fb2 from f.fb2-185838-188548.zip has been added
INFO: 2022/07/11 17:23:31 Router --->URL: [/opds]
2022/07/11 17:23:33 database is locked (5) (SQLITE_BUSY)
panic: database is locked (5) (SQLITE_BUSY)
goroutine 24 [running]:
log.Panic({0xc000845ad8?, 0xba9070?, 0xc000028020?})
/usr/local/go/src/log/log.go:385 +0x65
github.com/vinser/flibgolite/pkg/database.(*DB).NewBook(0xc000010890, 0xc000845e60)
/flibgolite/pkg/database/database.go:50 +0x32b
github.com/vinser/flibgolite/pkg/stock.(*Handler).indexFB2Zip(0xc0003c9ec0, {0xc000292e40, 0x31})
/flibgolite/pkg/stock/stock.go:275 +0xc25
github.com/vinser/flibgolite/pkg/stock.(*Handler).ScanDir.func1()
/flibgolite/pkg/stock/stock.go:107 +0x45
created by github.com/vinser/flibgolite/pkg/stock.(*Handler).ScanDir
/flibgolite/pkg/stock/stock.go:106 +0x852
Restart helps
Got this:
INFO: 2022/07/23 09:41:38 Router --->URL: [/opds/genres?code=sf_action]
2022/07/23 09:41:38 sql: Scan error on column index 4, name "format": destination not a pointer
root@OpenWrt:/mnt/sda5/books$ ./flibgolite-linux-arm-6
I: 18:01:39 Service is running unix-systemv.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x5ffc38]
goroutine 20 [running]:
github.com/vinser/flibgolite/pkg/stock.(*Handler).indexFB2Zip(0x165b740, {0x159eaf0, 0x46})
/home/vinser/Dev/flibgolite/pkg/stock/stock.go:279 +0xa0c
github.com/vinser/flibgolite/pkg/stock.(*Handler).ScanDir.func1()
/home/vinser/Dev/flibgolite/pkg/stock/stock.go:109 +0x40
created by github.com/vinser/flibgolite/pkg/stock.(*Handler).ScanDir
/home/vinser/Dev/flibgolite/pkg/stock/stock.go:108 +0x9f0
INFO: 2022/10/19 17:59:07 file 524142.pdf from f.usr-524141-526015.zip has unsupported format ".pdf"
DEBUG: 2022/10/19 17:59:07 stock.go:273:
To test flibgolite on OS X I have no MAC hardware. I hope it will run good :)
Would be nice to have an official image on dockerhub or somewhere else, as it's one of the most convenient ways to deploy software.
/flibgolite # ./flibgolite -config
Default config file "./config/flibgolite.yml" was created for customization
/flibgolite # ls ./config/flibgolite.yml
ls: ./config/flibgolite.yml: No such file or directory
/flibgolite # ls config/
config.yml
It would be useful for the application to work with a single folder of the book stock
OpenSearch requests from tested clients like (fbreader and bookreader) can't be issued or don't processed
Doesn't find Ukrainian "Усмiшки" with search string "усмi*", but with "усм*" it does.
STOCK folder is created with not enough permissions
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.