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

[BUG]Failure on remote website install #2931

Closed
WVAstro opened this issue Aug 23, 2023 · 19 comments
Closed

[BUG]Failure on remote website install #2931

WVAstro opened this issue Aug 23, 2023 · 19 comments

Comments

@WVAstro
Copy link

WVAstro commented Aug 23, 2023

Environment

  • Camera: RPi HQ
  • OS: Buster or Bullseye
  • Allsky version: v2023.05.01_02
  • Raspberry Pi 4 Model B Rev 1.5

Bug Description

*manually running "update.sh" works as expected, however normal operation of the Allsky flow fails to update the hosted website.

  • Can it be reproduced? YES, how: Restart Allsky and this is the default behavior
  • Did anything change? Brand new rebuild with all of past settings.
  • Screenshot on remote install attached.
  • See attached log excerpt:
  • If this is a configuration-related issue (or you are not sure), attach these files, appending ".txt" to their names first:
    • Allsky Website problems:
      • ~/allsky/config/remote_configuration.json (remote Website) **NOT INCLUDED SINCE INSTALL FAILS

Log / configuration files

Follow the instructions for Reporting Issues in the Wiki, then ATTACH a copy of the file(s) above.
Do NOT copy/paste them into this Issue.

LOG EXCERPT.txt
settings.json.txt
configuration.json.txt
ftp-settings.sh.txt

@EricClaeys
Copy link
Collaborator

You ran the update.sh command that's in ~/allsky? It currently doesn't work and we only distribute it as a placeholder. None of the documentation mentions it. What were you trying to do by running it?

For the remote Website did you follow the instructions in "Installation -> Allsky Website", including running website/install.sh --remote?
If so, there should be a log file in ~allsky/config/installation_logs called something like "Website install". Would you please attach it?

Your "LOG EXCERPT.txt" had an error that it was unable to upload a file. Check the "Troubleshooting -> Uploads" page for how to fix.

FYI, your ftp-settings.sh attachment has your password. I suggest deleting that link and attaching a copy of the file with the username and password blanked out.

@WVAstro
Copy link
Author

WVAstro commented Aug 23, 2023

Thanks Eric. The Login user/pw has been changed since that file.
I did follow the remote Website guide and ran website/install.sh --remote.
There is no log in the installation_logs.bkp directory for Website install.
Trying again on that log excerpt txt file.
LOG EXCERPT.txt

@WVAstro
Copy link
Author

WVAstro commented Aug 23, 2023

Screenshot of error on remote install.
Screen Shot 2023-08-23 at 6 27 06 PM

@EricClaeys
Copy link
Collaborator

Bill see the troubleshooting page on uploads. The installation is working fine, it just fails when performing a test upload.
Eric

@WVAstro
Copy link
Author

WVAstro commented Aug 24, 2023

Eric, I have followed the document several times. The "are you still having problems" section is failing with permission denied and appears to be using FTP. My settings in the FTP config file have been verified as working with Filezilla. Directories exist and are correct. I am available for troubleshooting if possible.

@WVAstro
Copy link
Author

WVAstro commented Aug 24, 2023

line in the x.txt that fails is attached.

X_Failure.txt

@EricClaeys
Copy link
Collaborator

Were you trying to execute the open ... command at the terminal prompt? That command is not the same as the open command that lftp uses.

If you trust me on your server, email me the ~/allsky/tmp/lftp_cmds/x.txt file and your password (please create a temporary one for me) and I will try. I suspect it's a certificate problem since it doesn't look like upload.sh can log in.
Eric. AstroEric at_sign eccssw.com

@WVAstro
Copy link
Author

WVAstro commented Aug 24, 2023

Email sent

@EricClaeys
Copy link
Collaborator

I got it to work by following step 1 in the "Certificate-related errors" section of the Troubleshooting - Uploads page.

@WVAstro
Copy link
Author

WVAstro commented Aug 24, 2023

Thanks Eric. That was it totally. I was able to install the external site now and it populates I just have a few things to finalize. Appreciate your help!

@EricClaeys
Copy link
Collaborator

Glad it's working, and thanks for trusting me.
Did you miss the error in the output the first time? The Troubleshooting page lists the error exactly, but I'm always looking for ways to improve the documentation or the software, so input is appreciated. If it was "user error" on your part I guarantee it'll happen to other people so I like to make the software more bullet-proof.

One idea I have is to have a testUpload.sh script that calls upload.sh and parses the output, displaying easier-to-read error messages.

@WVAstro
Copy link
Author

WVAstro commented Aug 24, 2023 via email

@WVAstro
Copy link
Author

WVAstro commented Aug 24, 2023 via email

@EricClaeys
Copy link
Collaborator

I just wrote a testUpload.sh script for the next major release, hopefully due around the end of the year.

@WVAstro
Copy link
Author

WVAstro commented Aug 25, 2023 via email

@EricClaeys
Copy link
Collaborator

EricClaeys commented Dec 9, 2023 via email

@EricClaeys
Copy link
Collaborator

Initial problem fixed.

@Dhovin
Copy link
Contributor

Dhovin commented Dec 9, 2023 via email

@EricClaeys
Copy link
Collaborator

@Dhovin, suggestions for improvement are ALWAYS welcomed. Please try to be as specific as possible and add them in a new Discussion item. I will close this one since the initial problem was resolved.

If I remember your Issue it was that during installation of a remote Website (website/install.sh --remote) the test file uploaded fine but not the other files. Correct? That's a strange one. I'd appreciate it if you would work with me to get it resolved because other people will likely have the same problem. If it's user error I would like to improve Allsky so it can detect that error and provide better feedback. Ok? If so, would you please create a new Discussion with as much info as possible?

Allsky doesn't currently support the IMX462. Once you receive it, please run

libcamera --list-cameras -v > IMX462.txt

Then attach the IMX462.txt file to a new Issue (not Discussion) called "Support IMX462". This will give me the info needed to support the camera.

Thanks

@AllskyTeam AllskyTeam locked as resolved and limited conversation to collaborators Dec 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants