-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Additional explanations in "Cannot add zim X to the library" error #572
Comments
Sounds a good idea indeed. |
Hello, However, understanding what is causing the specific issue requires It will be possible to check for all of the pointers presented above on why the function might fail, by trying to call the file using FILE pointers, however, I was wondering if that is the recommended method, since it doesn't truly account for other potential reasons why that might occur. Thank you so much :) |
@veloman-yunkan maybe you can help here? I would do a function which checks all what should be checked given a file path and call it only if the addBookFromPath() fails so the user gets the appropriate hint. |
Would it be fine if I made such a function, and the made a pull request based on how I think you would check for the issue? |
I would make Then, the client |
@kelson42 I can only concur with @mgautierfr's comment above. |
well- im setting up my raspi and have the zim files on an extfs usb stick and tried running the kiwik docker image tools- not matter what i do i get that same error that it cant add the zim and / or doesn't see it in /data when i try to run it direct via the server:
i was looking for a -v -vv or anything to help me troubleshoot but this is making it difficult to troubleshoot- i assume it has something to do with the filesystem- ive been noticing some issues with permissions while trying to run containers with extfs- seems to not be playing nice :-). -D |
ok - i was able to get it running on my laptop running:
it seems to be crashing on my raspi though- still testing! :-) -D |
ok good news- i think i really don't know what im doing with this :-) im more comfortable with docker-compose files tbh-
i was using * which also grabbed a file i was still transferring to the same directory- i think it crashed because of that - when i excluded the partial file - its seems to have come up great on my raspi3 on an extfs usb thumbdrive - this is cool- ready for the internet to be cut now friends! i'm grateful for this solution- seriously! thank you! -D |
The kiwix-manage
add
command is difficult to debug when failures happen. Multiple different scenarios produce the same error message, so it is unclear what is the problem.I understand that there are multiple reasons why the
add
command might fail, ex:Steps to reproduce
Actual Behavior
The error message "Cannot add zim to the library." appears with no additional detail.
Expected Behavior
The error message "Cannot add zim to the library." appears with additional detail about why the failure happened. If it is not possible to detect the reasons for the failure, perhaps guidance about common issues could be displayed.
Environment
kiwix-serve:latest in Docker/k8s. /data volume is an NFS mount
The text was updated successfully, but these errors were encountered: