Admin Console Init Failed #3706
Replies: 17 comments 6 replies
-
Admin Console can be fooled by unexpected partition schemes in conjunction with external drives. I was expecting GET-EXTDEV-INFO to fail, but your screen shot and cmdsrv output do not show any errors. So probably the problem is on the front end. If you go into the browser javascript console (F12 on windows) do you see any errors (apart from missing icon file)? Admin Console tries to decide where your primary install is and whether you have a secondary drive that might be a source of content for copying. You have an external drive that is primary, so it may get confused. Let me know what you find. |
Beta Was this translation helpful? Give feedback.
-
Not seeing any errors but I do have 3 warnings. Edit: Here is the full java console output. |
Beta Was this translation helpful? Give feedback.
-
We support /library on its own partition, but everything that belongs in library should be there. And /library must be mounted on /library, not USB0 or something. where did your zims come from? did you run iiab-make-kiwix-lib after moving everything? init is failing to load some catalogs and process them into javascript objects used for display. in the js console you could try displaying the vars: kiwixCatalog, oer2goCatalog, langCodes, zimGroups, zimCategories, installedZimCatalog, externalZimCatalog |
Beta Was this translation helpful? Give feedback.
-
just to be clear zims are in /library/zims/content. (case sensitive) If you are trying to get more content storage, I would boot from the sd card as before and mount sda4 on /library in fstab |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Just noticed something I should point out. All of the zim files in /library/zims/content have root as both user and group. Might this be the issue? |
Beta Was this translation helpful? Give feedback.
-
Hi Tim, Ok, so I moved all of the zims out of the content folder and ran iiab-make-kiwix-lib. It rebuilt the file by removing all the zims from the file and completed successfully. I was then able to log in to the admin-console. So, I then moved one zim file "3dprinting.stackexchange.com_en_all_2023-07.zim" back into the content folder and ran iiab-make-kiwix-lib again. It built the file, no issues and I was able to re-login to the Admin-Console, no issues. I'm wondering if I have a corrupt zim file. The odd thing about that is on my old server I can run kiwix-manage and rebuild the library with the exact same zim files. Thoughts? |
Beta Was this translation helpful? Give feedback.
-
Hi Tim, Solved it! I started moving the zims back to the /content folder one by one and when I got to "gutenberg...zim", iiab-make-kiwix-lib failed to build. I removed gutenberg and took a chance by moving all of the remainder back into /content and iiab-make-kiwix-lib worked just fine. I'm able to log into Admin-Console, no issues. Thanks so much for all your help in pointing me in the right direction. Much appreciated. Mike |
Beta Was this translation helpful? Give feedback.
-
Just and fyi, I don't think it's a corrupt zim file. I just noticed I had downloaded the Multi language version of it. That might explain the error I was receiving with iiab-make-kiwix-lib: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Well the Home button is not there by design as I prefer IIAB navigation to Kiwix. I wish I could make the target of Home our top page. |
Beta Was this translation helpful? Give feedback.
-
@mikepaxton I added a patch for the case where a zim has more than one language iiab/iiab-admin-console#562, now merged could you possibly test it with your gutenberg...zim? |
Beta Was this translation helpful? Give feedback.
-
This is turning out to be more and more complicated. Kiwix used to just give language code as 'mul' for things that had sections in more than one language, but now someone has decided to provide a list of 30 or more for Phet and Gutenberg. I'm inclined not to support this as I don't think such content is very useful when the specific languages desired are available, are smaller, will have their own menu items, and will return search results that don't have cognates. I can remove these from the catalog, but I'm not sure how to handle the case where someone downloads them manually. |
Beta Was this translation helpful? Give feedback.
-
@rgaudin thanks for letting me know. So far the zims that have multiple languages are a combination of other zims that exist for separate languages. Is this likely to remain the case? So if I put the Gutenberg multi under English, will I have two there? |
Beta Was this translation helpful? Give feedback.
-
Is there any way we could have multi as a tag, like we have for _ftindex, etc.? |
Beta Was this translation helpful? Give feedback.
-
No. At the moment only phets and gutenberg are indeed using this but this will change. If the content targets multiple languages, it gets (or will get) multiple codes in
yes.
What would a multi be? If you mean I imagine you want to know whether said ZIM is a multilingual collection of content that is also offered as per-language ZIM files in the Library. That's an interesting information that is library-level. I summon @kelson42 for this. |
Beta Was this translation helpful? Give feedback.
-
Out of curiosity would the order be eng,rus or rus,eng in your example?
I'm not asking for this, though I agree it would be useful. |
Beta Was this translation helpful? Give feedback.
-
I've run into an issue where suddenly whenever I try to log into the Admin Console I get an error saying Init Failed.
I found a couple previous issues/discussions listed in github that focus on this issue but none of them panned out.
The first time (or two) I installed iiab it was installed on the SD card of the Pi3B+ and then moved to along with the rest of the rootfs to the external USB drive. I noted once I moved iiab to the external drive I would get the init failed error. So, on the next attempt I installed moved the rootfs from the SD to USB drive, then installed iiab. Same result though, init failed.
The layout of this build:
Raspberry Pi3b+
External 5TB WD HDD
Booting off of external HD: /sda1 - boot, /sda2 - rootfs, /sda3 - home, /sda4 - /library
So, my steps have been this.
I've run ./iiab-cmdsrv3.py manually and have captured the output into file i'm including with the diagnostic file. I also ran across this with iiab-summary, i'm not sure if it's saying iiab is looking for zims on /sda2 which would be wrong. They are on /sda4.
iiab-summery
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 29G 8.1G 20G 30% / ZIMs: 89 OER2Go: 1 Apps2B: 1
I think that covers most of what I've found, brain is starting to turn to mush. I've posted the diag. to pastebin with ....initFailed_mdpaxton as the file. http://sprunge.us/hDf7Rk
Beta Was this translation helpful? Give feedback.
All reactions