I recently published the FidusWriter snap to the store. It works fine for me locally, but installing it on a VPN, I found two issues:
A) The configure hook needs the included mysql server in place for it to work. I used the same trick that the nextcloud snap uses: Let the hook wait for a file to be present that is being created by the mysql part:
from time import sleep ... timer = 0 # We wait for the password file to be created while timer < 10 and not os.path.isfile(PASSWORD_PATH): timer += 1 sleep(1) ...
This should only add a wait time of maximum 10 seconds, but somehow it seems to take much longer than that. Is there any way I can debug the installation process and get more verbose output? Also, it seems to not work the first time I attempt to install the snap - and I cannot tell why. The installation doesn’t succeed, and this part works the second time. Is there a way to reset it to behave the same it did the first time?
B) The second installation attempt seems to be working, but configure hook is killed after 5 minutes when it is still not done and so the installation is halted. Is there a way for me to increase that limit? And if not, is there a way to move some things I do during the configure hook that are needed to have the system up and running to another hook?