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

Support Library auto reload for Kiwix #6242

Open
1 task done
corvus-ch opened this issue Sep 27, 2024 · 0 comments
Open
1 task done

Support Library auto reload for Kiwix #6242

corvus-ch opened this issue Sep 27, 2024 · 0 comments
Assignees
Labels

Comments

@corvus-ch
Copy link

Is this a new Bug?

  • I checked that the bug hasn't been reported before

Package Name

Kiwix

Package Version

3.7.0-6

Device Model

DS1618+

Device Architecture

x86_64

Firmware Version

7.2.2-72806

What happened?

Following the instructions on https://github.com/SynoCommunity/spksrc/wiki/Kiwix. I added ZIM archives to the library XML. They not show up when refreshing the Kiwix page. Only when I restart Kiwix, they show up.

Looking at the available options for kiwix-serve there is one called -M, --monitorLibrary described as "Monitor the XML library file and reload it automatically". I understand that setting this option would reload kiwix-server when ever there is an update to the library XML. This option is not set for the process running on my system.

sudo ps aux | grep kiwix
sc-kiwix 32710  0.0  0.2 384784  8236 ?        Sl   12:29   0:00 /volume1/@appstore/kiwix/bin/kiwix-serve --port=8092 --library /volume1/kiwix/library.xml

Reproduction steps

  1. Download ZIM
  2. Run kiwix-manage add
  3. Refresh Kiwix HTTP page

Install Log

2024/09/27 11:41:46	install kiwix 3.7.0-6 Begin preinst
2024/09/27 11:41:46	SHARE_PATH from share [], variable [wizard_data_folder=kiwix]
2024/09/27 11:41:46	Begin initialize_variables
2024/09/27 11:41:46	End initialize_variables
2024/09/27 11:41:46	===> Step preinst. STATUS=INSTALL USER=kiwix GROUP= SHARE_PATH=
2024/09/27 11:41:46	install kiwix 3.7.0-6 End preinst ret=[0]
2024/09/27 11:41:47	install kiwix 3.7.0-6 Begin /bin/mkdir -p /volume1/@appstore/kiwix -m 755
2024/09/27 11:41:47	install kiwix 3.7.0-6 End /bin/mkdir -p /volume1/@appstore/kiwix -m 755 ret=[0]
2024/09/27 11:41:47	install kiwix 3.7.0-6 Begin /bin/rm -rf /volume1/@appstore/kiwix
2024/09/27 11:41:47	install kiwix 3.7.0-6 End /bin/rm -rf /volume1/@appstore/kiwix ret=[0]
2024/09/27 11:41:47	install kiwix 3.7.0-6 Begin /bin/mv -f /volume1/@tmp/synopkg/install.MENGCa/package /volume1/@appstore/kiwix
2024/09/27 11:41:47	install kiwix 3.7.0-6 End /bin/mv -f /volume1/@tmp/synopkg/install.MENGCa/package /volume1/@appstore/kiwix ret=[0]
2024/09/27 11:41:47	install kiwix 3.7.0-6 Begin /bin/rm -rf /var/packages/kiwix
2024/09/27 11:41:47	install kiwix 3.7.0-6 End /bin/rm -rf /var/packages/kiwix ret=[0]
2024/09/27 11:41:47	install kiwix 3.7.0-6 Begin /bin/mkdir -p /var/packages/kiwix -m 755
2024/09/27 11:41:47	install kiwix 3.7.0-6 End /bin/mkdir -p /var/packages/kiwix -m 755 ret=[0]
2024/09/27 11:41:47	install kiwix 3.7.0-6 Begin /bin/touch /var/packages/kiwix/installing
2024/09/27 11:41:47	install kiwix 3.7.0-6 End /bin/touch /var/packages/kiwix/installing ret=[0]
2024/09/27 11:41:47	install kiwix 3.7.0-6 Begin /bin/mv -f /volume1/@tmp/synopkg/install.MENGCa/INFO /var/packages/kiwix/INFO
2024/09/27 11:41:47	install kiwix 3.7.0-6 End /bin/mv -f /volume1/@tmp/synopkg/install.MENGCa/INFO /var/packages/kiwix/INFO ret=[0]
2024/09/27 11:41:47	install kiwix 3.7.0-6 Begin /bin/rm -rf /var/packages/kiwix/scripts
2024/09/27 11:41:47	install kiwix 3.7.0-6 End /bin/rm -rf /var/packages/kiwix/scripts ret=[0]
2024/09/27 11:41:47	install kiwix 3.7.0-6 Begin /bin/mv -f /volume1/@tmp/synopkg/install.MENGCa/scripts /var/packages/kiwix/scripts
2024/09/27 11:41:47	install kiwix 3.7.0-6 End /bin/mv -f /volume1/@tmp/synopkg/install.MENGCa/scripts /var/packages/kiwix/scripts ret=[0]
2024/09/27 11:41:47	install kiwix 3.7.0-6 Begin /bin/rm -rf /var/packages/kiwix/WIZARD_UIFILES
2024/09/27 11:41:47	install kiwix 3.7.0-6 End /bin/rm -rf /var/packages/kiwix/WIZARD_UIFILES ret=[0]
2024/09/27 11:41:47	install kiwix 3.7.0-6 Begin /bin/mv -f /volume1/@tmp/synopkg/install.MENGCa/WIZARD_UIFILES /var/packages/kiwix/WIZARD_UIFILES
2024/09/27 11:41:47	install kiwix 3.7.0-6 End /bin/mv -f /volume1/@tmp/synopkg/install.MENGCa/WIZARD_UIFILES /var/packages/kiwix/WIZARD_UIFILES ret=[0]
2024/09/27 11:41:47	install kiwix 3.7.0-6 Begin /bin/rm -rf /var/packages/kiwix/conf
2024/09/27 11:41:47	install kiwix 3.7.0-6 End /bin/rm -rf /var/packages/kiwix/conf ret=[0]
2024/09/27 11:41:47	install kiwix 3.7.0-6 Begin /bin/mv -f /volume1/@tmp/synopkg/install.MENGCa/conf /var/packages/kiwix/conf
2024/09/27 11:41:47	install kiwix 3.7.0-6 End /bin/mv -f /volume1/@tmp/synopkg/install.MENGCa/conf /var/packages/kiwix/conf ret=[0]
2024/09/27 11:41:49	install kiwix 3.7.0-6 Begin postinst
2024/09/27 11:41:49	SHARE_PATH from share [/volume1/kiwix], variable [wizard_data_folder=kiwix]
2024/09/27 11:41:49	Begin initialize_variables
2024/09/27 11:41:49	Shared folder configured with SHARE_NAME [kiwix] and SHARE_PATH [/volume1/kiwix]
2024/09/27 11:41:49	End initialize_variables
2024/09/27 11:41:49	===> Step postinst. STATUS=INSTALL USER=kiwix GROUP= SHARE_PATH=/volume1/kiwix
2024/09/27 11:41:49	Begin save_wizard_variables
2024/09/27 11:41:49	End save_wizard_variables
2024/09/27 11:41:49	Begin syno_sync_var_folder
2024/09/27 11:41:49	Install files from var folder
2024/09/27 11:41:49	/bin/rsync -avh --ignore-existing --remove-source-files /volume1/@appstore/kiwix/var/ /volume1/@appdata/kiwix
2024/09/27 11:41:49	sending incremental file list
2024/09/27 11:41:49	./
2024/09/27 11:41:49	empty_library.xml
2024/09/27 11:41:49	kiwix.cfg
2024/09/27 11:41:49	sent 280 bytes  received 73 bytes  706.00 bytes/sec
2024/09/27 11:41:49	total size is 85  speedup is 0.24
2024/09/27 11:41:49	/bin/rsync -avh --remove-source-files /volume1/@appstore/kiwix/var/ /volume1/@appdata/kiwix
2024/09/27 11:41:49	sending incremental file list
2024/09/27 11:41:49	./
2024/09/27 11:41:49	sent 74 bytes  received 19 bytes  186.00 bytes/sec
2024/09/27 11:41:49	total size is 0  speedup is 0.00
2024/09/27 11:41:49	End syno_sync_var_folder
2024/09/27 11:41:49	Begin service_postinst
2024/09/27 11:41:49	End service_postinst
2024/09/27 11:41:49	install kiwix 3.7.0-6 End postinst ret=[0]
2024/09/27 11:41:50	install kiwix 3.7.0-6 Begin start-stop-status start
2024/09/27 11:41:50	install kiwix 3.7.0-6 End start-stop-status start ret=[0]
2024/09/27 11:49:24	stop kiwix 3.7.0-6 Begin start-stop-status stop
2024/09/27 11:49:25	stop kiwix 3.7.0-6 End start-stop-status stop ret=[0]
2024/09/27 11:49:28	start kiwix 3.7.0-6 Begin start-stop-status start
2024/09/27 11:49:28	start kiwix 3.7.0-6 End start-stop-status start ret=[0]
2024/09/27 12:07:30	stop kiwix 3.7.0-6 Begin start-stop-status stop
2024/09/27 12:07:32	stop kiwix 3.7.0-6 End start-stop-status stop ret=[0]
2024/09/27 12:07:43	start kiwix 3.7.0-6 Begin start-stop-status start
2024/09/27 12:07:43	start kiwix 3.7.0-6 End start-stop-status start ret=[0]
2024/09/27 12:28:58	stop kiwix 3.7.0-6 Begin start-stop-status stop
2024/09/27 12:28:59	stop kiwix 3.7.0-6 End start-stop-status stop ret=[0]
2024/09/27 12:29:15	start kiwix 3.7.0-6 Begin start-stop-status start
2024/09/27 12:29:15	start kiwix 3.7.0-6 End start-stop-status start ret=[0]

Service Log

No response

Other Logs

No response

@corvus-ch corvus-ch added the bug label Sep 27, 2024
@hgy59 hgy59 self-assigned this Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants