Closed adymac101 closed 3 years ago
Not to be one of those people but , yep I am getting the same in my log file.
Hi @adymac101 -- Depending on your timing, the patches were likely already applied to the repository, which likely explains the patch application error (or -- your local copy of the repository wasn't updated to where this patch was meant for.)
There -may- be some discrepancies between the script / variables versions in the local copy of code you have which is causing all this other error output.
@adymac101 and @maserowik -- first, please accept our apologies that issues keep occurring - we're working to get things to a stable point for 0.8.5, and we have changes to make future management easier -- more stability is coming, so thanks for hanging in there.
While logged in as pi
, please try the following:
cd ~/allsky
git pull
./install.sh
NOTE: The install functions will not overwrite anything in allsky/config
. Once the install is complete, if you still receive errors, please backup your config/config.sh
and config/ftp-settings.sh
files, then create fresh versions using the config_repo/config.sh.repo
and config_repo/ftp-settings.sh.repo
files as the base. Be sure to repopulate your settings into these new files.
Let us know how this turns out. Again, thanks everyone for your patience, we're working for a stable release very soon.
@linuxkidd
should I not be able to see the ftp-settings.sh from the editor screen..
or does it need to be edited from the pi via a ssh connection?
Just want to make sure I am following the correct procedures.
after the commands and the renaming of the config.sh and ftp-setting using ssh instead of the gui
Oct 7 11:12:10 Pi-AllSky allsky.sh[1914]: Starting AllSky Oct 7 11:12:10 Pi-AllSky allsky.sh[1914]: /home/pi/allsky/allsky.sh: line 14: /autocam.sh: Permission denied Oct 7 11:12:10 Pi-AllSky allsky.sh[1914]: /home/pi/allsky/allsky.sh: line 16: /home/pi/variables.sh: No such file or directory Oct 7 11:12:10 Pi-AllSky allsky.sh[1914]: /home/pi/allsky/allsky.sh: line 17: /config.sh: No such file or directory Oct 7 11:12:10 Pi-AllSky allsky.sh[1914]: mkdir: cannot create directory ‘’: No such file or directory Oct 7 11:12:10 Pi-AllSky allsky.sh[1914]: CAMERA: Oct 7 11:12:10 Pi-AllSky allsky.sh[1914]: /home/pi/allsky/allsky.sh: line 94: [: : integer expression expected Oct 7 11:12:10 Pi-AllSky allsky.sh[1914]: /home/pi/allsky/allsky.sh: line 99: /autocam.sh: Permission denied Oct 7 11:12:10 Pi-AllSky allsky.sh[1914]: /home/pi/allsky/allsky.sh: line 102: /filename.sh: No such file or directory Oct 7 11:12:10 Pi-AllSky allsky.sh[1914]: jq: error: Could not open file : No such file or directory Oct 7 11:12:10 Pi-AllSky allsky.sh[1914]: Starting allsky camera... Oct 7 11:12:10 Pi-AllSky allsky.sh[1914]: /home/pi/allsky/allsky.sh: line 154: /capture_args.txt: Permission denied Oct 7 11:12:10 Pi-AllSky allsky.sh[1914]: /home/pi/allsky/allsky.sh: line 162: /home/pi/: Is a directory Oct 7 11:12:10 Pi-AllSky allsky.sh[1914]: '' exited with RETCODE=126 Oct 7 11:12:15 Pi-AllSky allsky.sh[1944]: Starting AllSky Oct 7 11:12:15 Pi-AllSky allsky.sh[1944]: /home/pi/allsky/allsky.sh: line 14: /autocam.sh: Permission denied Oct 7 11:12:15 Pi-AllSky allsky.sh[1944]: /home/pi/allsky/allsky.sh: line 16: /home/pi/variables.sh: No such file or directory Oct 7 11:12:15 Pi-AllSky allsky.sh[1944]: /home/pi/allsky/allsky.sh: line 17: /config.sh: No such file or directory Oct 7 11:12:15 Pi-AllSky allsky.sh[1944]: mkdir: cannot create directory ‘’: No such file or directory Oct 7 11:12:15 Pi-AllSky allsky.sh[1944]: CAMERA: Oct 7 11:12:15 Pi-AllSky allsky.sh[1944]: /home/pi/allsky/allsky.sh: line 94: [: : integer expression expected Oct 7 11:12:15 Pi-AllSky allsky.sh[1944]: /home/pi/allsky/allsky.sh: line 99: /autocam.sh: Permission denied Oct 7 11:12:15 Pi-AllSky allsky.sh[1944]: /home/pi/allsky/allsky.sh: line 102: /filename.sh: No such file or directory Oct 7 11:12:15 Pi-AllSky allsky.sh[1944]: jq: error: Could not open file : No such file or directory Oct 7 11:12:15 Pi-AllSky allsky.sh[1944]: Starting allsky camera... Oct 7 11:12:15 Pi-AllSky allsky.sh[1944]: /home/pi/allsky/allsky.sh: line 154: /capture_args.txt: Permission denied Oct 7 11:12:15 Pi-AllSky allsky.sh[1944]: /home/pi/allsky/allsky.sh: line 162: /home/pi/: Is a directory Oct 7 11:12:15 Pi-AllSky allsky.sh[1944]: '' exited with RETCODE=126 Oct 7 11:12:21 Pi-AllSky allsky.sh[1968]: Starting AllSky Oct 7 11:12:21 Pi-AllSky allsky.sh[1968]: /home/pi/allsky/allsky.sh: line 14: /autocam.sh: Permission denied Oct 7 11:12:21 Pi-AllSky allsky.sh[1968]: /home/pi/allsky/allsky.sh: line 16: /home/pi/variables.sh: No such file or directory Oct 7 11:12:21 Pi-AllSky allsky.sh[1968]: /home/pi/allsky/allsky.sh: line 17: /config.sh: No such file or directory Oct 7 11:12:21 Pi-AllSky allsky.sh[1968]: mkdir: cannot create directory ‘’: No such file or directory Oct 7 11:12:21 Pi-AllSky allsky.sh[1968]: CAMERA: Oct 7 11:12:21 Pi-AllSky allsky.sh[1968]: /home/pi/allsky/allsky.sh: line 94: [: : integer expression expected Oct 7 11:12:21 Pi-AllSky allsky.sh[1968]: /home/pi/allsky/allsky.sh: line 99: /autocam.sh: Permission denied Oct 7 11:12:21 Pi-AllSky allsky.sh[1968]: /home/pi/allsky/allsky.sh: line 102: /filename.sh: No such file or directory Oct 7 11:12:21 Pi-AllSky allsky.sh[1968]: jq: error: Could not open file : No such file or directory Oct 7 11:12:21 Pi-AllSky allsky.sh[1968]: Starting allsky camera... Oct 7 11:12:21 Pi-AllSky allsky.sh[1968]: /home/pi/allsky/allsky.sh: line 154: /capture_args.txt: Permission denied Oct 7 11:12:21 Pi-AllSky allsky.sh[1968]: /home/pi/allsky/allsky.sh: line 162: /home/pi/: Is a directory Oct 7 11:12:21 Pi-AllSky allsky.sh[1968]: '' exited with RETCODE=126
Hi @adymac101 -- Depending on your timing, the patches were likely already applied to the repository, which likely explains the patch application error (or -- your local copy of the repository wasn't updated to where this patch was meant for.)
There -may- be some discrepancies between the script / variables versions in the local copy of code you have which is causing all this other error output.
@adymac101 and @maserowik -- first, please accept our apologies that issues keep occurring - we're working to get things to a stable point for 0.8.5, and we have changes to make future management easier -- more stability is coming, so thanks for hanging in there.
While logged in as
pi
, please try the following:cd ~/allsky git pull ./install.sh
NOTE: The install functions will not overwrite anything in
allsky/config
. Once the install is complete, if you still receive errors, please backup yourconfig/config.sh
andconfig/ftp-settings.sh
files, then create fresh versions using theconfig_repo/config.sh.repo
andconfig_repo/ftp-settings.sh.repo
files as the base. Be sure to repopulate your settings into these new files.Let us know how this turns out. Again, thanks everyone for your patience, we're working for a stable release very soon.
No worries - hope the feedback is helping. I tried the git pull. Says already up to date. Ran install anyway - no change.
The issue I opened yesterday about an allsky installation failure was closed. I made a comment that I still was not able to do a successful installation. I still have no live images - I did a fresh installation and ran allsky.sh before I installed the gui with the following result
pi@raspberrypi:~/allsky $ sudo ./allsky.sh
***** Starting AllSky *****
./allsky.sh: line 16: /home/pi/variables.sh: No such file or directory
./allsky.sh: line 17: /config.sh: No such file or directory
mkdir: cannot create directory ‘’: No such file or directory
CAMERA:
./allsky.sh: line 94: [: : integer expression expected
./allsky.sh: line 102: /filename.sh: No such file or directory
jq: error: Could not open file : No such file or directory
Starting allsky camera...
I stopped the program and did the gui install and ran allsky.sh with the same result. The gui webserver also shows no camera available. The config.sh file shows CAMERA=""
the allsky folder content is shown below
pi@allsky:~ $ cd allsky
pi@allsky:~/allsky $ ls
allsky.sh config_repo keogram README.md tmp
capture gui LICENSE scripts uninstall.sh
capture_RPiHQ image.jpg Makefile src variables.sh
config install.sh notification_images startrails website
pi@allsky:~/allsky $
If this is the wrong place for the issue please advise - however I still have the same problem allsky no longer works - thanks for your efforts - is there anything I can do to help?
Thanks for all the feedback -- we really do appreciate it!
We'll get this iron'd out..
allsky/config
, so that's an easy fix.Maybe @EricClaeys can look through the script issues. I'll jump into them as well shortly.
Thanks again for everyone's patience.
It's probably easier just to keep the issue here. I'm trying to do a new install. I did leave some additional comments in the closing of #590.
Another new thing that is happening is that after the install of allsky & gui even though the program is not functioning and all that is being displayed is the desktop, the RPi will shut itself down. I need to power off and restart. Initially I thought it was going into screensaver mode but it is doing a full shutdown.
HI @KH6JAG ... et al.. There are potentially two issues at play here:
allsky.sh
which has been merged.settings_RPiHQ.json.repo
file ( in config_repo
). The fix for this has been merged too now.For item 1, you can git pull
inside the allsky
folder and it will apply the new code to your allsky.sh
file.
For item 2, you can manually edit allsky/config/settings_RPiHQ.json
and add the following line:
"debuglevel": "1",
Add this anywhere in the mix, above the last parameter ( the last parameter does not have a comma ( , ) after it. So, don't put it there ).
The manual edit is required because the install routines will not overwrite your existing config files.
Once that's done, try running ./allsky.sh
again and report back on any other errors that may pop up.
Thanks!!
the RPi will shut itself down.
Just some theories at this point. If you look at the journalctl
logs from before the reboot, you may be able to see some more details.
We just submitted a fix for the gazillion errors. It updated allsky.sh
, so please grab the newest version.
@adymac101 if this fixes the problem with allsky.sh errors, please close the issue. Thanks
@EricClaeys yes that's working now. Thank you!
Follow-up Results: I did a git pull and install The RPiHQ already had the “debuglevel” : “1”, edit. I’m guessing that it had already been updated by the time I started the recommended actions. When I started the program, the live image was not available. I checked the config file and did the edit for “RPiHQ” Rebooted still no image. I changed to a different RPi4. Used the same camera but different CSI cable Now working correctly. I switched back to the original RPi4 but this time using the new CSI cable. I’m still investigating why the RPi was shutting down. I will also re-check operation using the ASI120.
Thanks for all your efforts. This camera setup will be part of a multi-school weather network that the students put together. I was ready to go live with the program because I had been using the previous version without any difficulty. When I tried to install the updated version, the fun began.
Please close the issue
That's great news, @KH6JAG ! Thanks for hanging in there with us as we worked through everything.
If there camera ends up having a public link, please come back and share it with us.
Having had the same problem as others with installation failing on a freshly imaged RPi 4 due to dependency problems I followed the advice from @linuxkidd and applied this patch prior to install
cd ~/allsky wget https://patch-diff.githubusercontent.com/raw/thomasjacquin/allsky/pull/596.diff patch -p1 < 596.diff
This threw some errors as follows
pi@raspberrypi:~/allsky $ patch -p1 < 596.diff patching file Makefile Hunk #1 succeeded at 35 with fuzz 2 (offset 6 lines). Hunk #2 FAILED at 56. 1 out of 2 hunks FAILED -- saving rejects to file Makefile.rej patching file config_repo/Makefile Reversed (or previously applied) patch detected! Assume -R? [n]
Running ./install.sh goes OK now though but the log now shows this
ct 7 14:28:01 raspberrypi allsky.sh[790]: Starting AllSky Oct 7 14:28:02 raspberrypi allsky.sh[790]: /home/pi/allsky/allsky.sh: line 14: /autocam.sh: Permission denied Oct 7 14:28:02 raspberrypi allsky.sh[790]: /home/pi/allsky/allsky.sh: line 16: /home/pi/variables.sh: No such file or directory Oct 7 14:28:02 raspberrypi allsky.sh[790]: /home/pi/allsky/allsky.sh: line 17: /config.sh: No such file or directory Oct 7 14:28:02 raspberrypi allsky.sh[790]: mkdir: cannot create directory ‘’: No such file or directory Oct 7 14:28:02 raspberrypi allsky.sh[790]: CAMERA: Oct 7 14:28:02 raspberrypi allsky.sh[790]: /home/pi/allsky/allsky.sh: line 94: [: : integer expression expected Oct 7 14:28:02 raspberrypi allsky.sh[790]: /home/pi/allsky/allsky.sh: line 99: /autocam.sh: Permission denied Oct 7 14:28:02 raspberrypi allsky.sh[790]: /home/pi/allsky/allsky.sh: line 102: /filename.sh: No such file or directory Oct 7 14:28:02 raspberrypi allsky.sh[790]: jq: error: Could not open file : No such file or directory Oct 7 14:28:02 raspberrypi allsky.sh[790]: Starting allsky camera... Oct 7 14:28:02 raspberrypi allsky.sh[790]: /home/pi/allsky/allsky.sh: line 154: /capture_args.txt: Permission denied Oct 7 14:28:02 raspberrypi allsky.sh[790]: /home/pi/allsky/allsky.sh: line 162: /home/pi/: Is a directory Oct 7 14:28:02 raspberrypi allsky.sh[790]: '' exited with RETCODE=126 Oct 7 14:28:07 raspberrypi allsky.sh[910]: Starting AllSky Oct 7 14:28:07 raspberrypi allsky.sh[910]: /home/pi/allsky/allsky.sh: line 14: /autocam.sh: Permission denied Oct 7 14:28:07 raspberrypi allsky.sh[910]: /home/pi/allsky/allsky.sh: line 16: /home/pi/variables.sh: No such file or directory Oct 7 14:28:07 raspberrypi allsky.sh[910]: /home/pi/allsky/allsky.sh: line 17: /config.sh: No such file or directory Oct 7 14:28:07 raspberrypi allsky.sh[910]: mkdir: cannot create directory ‘’: No such file or directory Oct 7 14:28:07 raspberrypi allsky.sh[910]: CAMERA: Oct 7 14:28:07 raspberrypi allsky.sh[910]: /home/pi/allsky/allsky.sh: line 94: [: : integer expression expected Oct 7 14:28:07 raspberrypi allsky.sh[910]: /home/pi/allsky/allsky.sh: line 99: /autocam.sh: Permission denied Oct 7 14:28:07 raspberrypi allsky.sh[910]: /home/pi/allsky/allsky.sh: line 102: /filename.sh: No such file or directory Oct 7 14:28:07 raspberrypi allsky.sh[910]: jq: error: Could not open file : No such file or directory Oct 7 14:28:07 raspberrypi allsky.sh[910]: Starting allsky camera... Oct 7 14:28:07 raspberrypi allsky.sh[910]: /home/pi/allsky/allsky.sh: line 154: /capture_args.txt: Permission denied Oct 7 14:28:07 raspberrypi allsky.sh[910]: /home/pi/allsky/allsky.sh: line 162: /home/pi/: Is a directory Oct 7 14:28:07 raspberrypi allsky.sh[910]: '' exited with RETCODE=126