AllskyTeam / allsky-modules

User modules for allsky
MIT License
18 stars 17 forks source link

No modules listed in module manager after installation of extra Allsky modules #80

Closed OmniversePhotography closed 6 months ago

OmniversePhotography commented 6 months ago

Describe the bug On a fresh setup of Allsky the default modules are all present in the module manager. After following the installation instructions and installing the extra modules via https://github.com/AllskyTeam/allsky-modules.git I get an empty list of modules in the module manager in the web UI. All python files are still found in both /opt/allsky/modules and /home/pi/allsky/scripts/modules/.

To Reproduce Steps to reproduce the behaviour:

  1. git clone https://github.com/AllskyTeam/allsky-modules.git to home directory on pi.
  2. cd into cloned allsky-modules directory
  3. run ./install.sh
  4. after python venv starts navigate to "Install/Remove Modules"
  5. Select all and press enter. Wait for install to finish
  6. Restart Pi
  7. Go to module manager on webUI and the list is now empty.

Expected behaviour Expected to see additional modules listed alongside original default modules in the webUi manager.

Screenshots I Module Manager Screenshot 2024-02-02 220708 Screenshot 2024-02-02 220751

Allsky Information:

Additional context This was all done on a fresh installation of Raspberry Pi OS. As a test i wiped the SD card and ran through the setup again with the same outcome.

OmniversePhotography commented 6 months ago

I will also add that I found someone else had posted this problem on this discussions page and it was recommended to delete /opt/allsky/modules/allsky_test.py. Before deleting the file i looked at the contents but it was empty. I proceeded to delete the file but unfortunately it didn't fix the problem.

OmniversePhotography commented 6 months ago

Just an update. I wiped my Pi again and began reinstallation. This time when selecting which extra modules I wanted to install, I only selected the two I'm currently using (Dew Heater Module and Open Weather Map). Everything is working now as it should, so the problem could be related to the installation of any of the other modules.

Alex-developer commented 6 months ago

Thanks for the report. I dont suppose you kept a copy of the logs files from the installation installation?

OmniversePhotography commented 6 months ago

Thanks for the report. I don't suppose you kept a copy of the logs files from the installation installation?

Sadly it slipped my mind to save the log before wiping. That would have been good to check, sorry bout that.

Alex-developer commented 6 months ago

Thanks for the report. I don't suppose you kept a copy of the logs files from the installation installation?

Sadly it slipped my mind to save the log before wiping. That would have been good to check, sorry bout that.

No problem :-)

cgmiller76 commented 6 months ago

@Alex-developer - I am having this same issue - so I didn't know if I should add a comment here or start a new thread. I still have my log - so I'll add it here. When I installed, I selected all the modules EXCEPT allsky_test, but it appears it still installed it. I tried removing just the /home/pi/allsky-modules/allsky_test folder (it had been installed with the allsky_test.py within).

moduleinstalldebug.log

Alex-developer commented 6 months ago

I have added a few fixes and tested installing all modules - All seems good now.

Please let me know how you get on

Cheers

Alex

cgmiller76 commented 6 months ago

I removed the allsky-modules directory and reinstalled without issue. All modules are now visible. Thanks!