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

Error - Allsky not installed #1

Closed
Jonk2 opened this issue Feb 18, 2023 · 14 comments
Closed

Error - Allsky not installed #1

Jonk2 opened this issue Feb 18, 2023 · 14 comments

Comments

@Jonk2
Copy link

Jonk2 commented Feb 18, 2023

Hi Alex, I've installed a fresh Dev branch of allsky and have come here to fetch the extra modules.

The clone has worked, chmod'd the install script and ran it.

I get the error message:

AllSky does not seem to be installed. The /opt/allsky directory does not exist. Please install AllSky before installing the modules

Allsky is installed, so what do I need to check?

image

@Jonk2
Copy link
Author

Jonk2 commented Feb 18, 2023

Also, I'm not sure if this is related, but I've just noticed this, and I have no overlays showing...

image

@Alex-developer
Copy link
Collaborator

@Jonk2

I have moved all of the modules to /opt/allsky/modules You can just move the folder from /etc to /opt

You are getting the error because the /opt/allsky folder isnt there

@Jonk2
Copy link
Author

Jonk2 commented Feb 19, 2023

Ok, I've jumped through some hoops (ftp with root) and copied etc/allsky.... to opt/allsky

I've run the install script again, and it's stopped with this error:

Installing allsky_pistatus
==========================
INFO: Installing dependencies
INFO: Installing allsky_pistatus module
cp: cannot create regular file '/opt/allsky/modules/allsky_pistatus.py': Permission denied
ERROR: Installation of allsky_pistatus Failed, Could not copy module from /home/pi/allsky-modules/allsky_pistatus/allsky_pistatus.py to /opt/allsky/modules

Do I need to run sudo ./install.sh then? I'll try that now.

@Jonk2
Copy link
Author

Jonk2 commented Feb 19, 2023

The answer is no!

DO NOT run this as root. Run the installer as the same user as AllSky was installed

@Alex-developer
Copy link
Collaborator

Permissions are very important. The permissions on the folder in /opt must be the same as they are in /etc

Change the permissions on the /opt/allsky folder (and all folder/files within) to the user you installed allsky as and www-date

so something like

chown -R pi:www-data /opt/allsky

@Jonk2
Copy link
Author

Jonk2 commented Feb 19, 2023

Doesn't seem to work:

pi@rorpi:~/allsky-modules $ chown -R pi:www-data /opt/allsky
chown: changing ownership of '/opt/allsky/modules': Operation not permitted
chown: changing ownership of '/opt/allsky': Operation not permitted

etc/allsky is pi www-data

image

EDIT - let me try again as root

EDIT 2 - yes that worked - sorry, I'm not great with Linux

@Jonk2
Copy link
Author

Jonk2 commented Feb 19, 2023

Success! Thanks for your help.

image

@Jonk2
Copy link
Author

Jonk2 commented Feb 19, 2023

Ok I'm confused. Does this automatically now show in the module editor (I have rebooted after installation successful) or do I need to do something else?

@Alex-developer
Copy link
Collaborator

It will appear in the module editor but only in the periodic flow

@Jonk2
Copy link
Author

Jonk2 commented Feb 19, 2023

Sorry, not for me it doesn't!

image

@Alex-developer
Copy link
Collaborator

Doesnt for me either on a fresh install - leave it with me

@Alex-developer
Copy link
Collaborator

In the module settings make sure 'Show experimental' is enabled

@Jonk2
Copy link
Author

Jonk2 commented Feb 20, 2023

It is, probably by default as I don't recall changing anything?

image

@Jonk2
Copy link
Author

Jonk2 commented Feb 20, 2023

Also there's a typo on that screen "Show exterimental modules". Is that external experimental?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants