mitchellurgero / openrsd

Open Raspberry Pi Server Dashboard
Apache License 2.0
39 stars 13 forks source link

Check for updates error #45

Closed qbicus closed 4 years ago

qbicus commented 5 years ago

There are 2 errors with check for updates:

1) https://github.com/mitchellurgero/openrsd/blob/master/pages/dashboard.php : 99 } elseif (strpos($c, 'up-to-date') !== false) { should be } elseif (strpos($c, 'up to date') !== false) {

2) https://github.com/mitchellurgero/openrsd/blob/master/pages/check.php : 38 } elseif (strpos($c, 'up-to-date') !== false) { should be } elseif (strpos($c, 'up to date') !== false) {

(at least on my machine). The error reported by OpenRSD is:

On branch master Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

as you can see up to date not up-to-date is present.

~Q

mitchellurgero commented 5 years ago

Thanks for pointing this out! I will take a look when I can. You are also welcome to make a merge/pull request if you feel so inclined.

Thanks again!

danmrossi commented 4 years ago

Hi there, i have the "There was an error checking for OpenRSD updates." i am running a rpi v4 with the latest raspbian buster lite build 2019-09-26 ran the usual updates/upgrades and followed your recommended installation routine. What files/screenshots can i give you? sorry if im not asking the right questions, first time poster long time tinkerer :)

mitchellurgero commented 4 years ago

@danmrossi I would open a new issue here on GitHub using the following link: https://github.com/mitchellurgero/openrsd/issues/new

And post along with it any logs you feel might be relevant (php logs, apache/nginx logs, etc). Be sure that what you post does not house any sensitive information like a password or email etc. Screenshot / screen capture of the issue, and how I can replicate it (if possible)

danmrossi commented 4 years ago

no worries will do that tomorrow thanks :)

mitchellurgero commented 4 years ago

Fixed in: https://github.com/mitchellurgero/openrsd/commit/a237c6c3f091b6a97a0eaef71ba22603f884523b

and

https://github.com/mitchellurgero/openrsd/commit/96cf6144e3ce0a77abd494063c9f938f7ac631a8

mengelsen commented 4 years ago

Fixed in: a237c6c

and

96cf614

I checked the dashboard.php file, located on my Raspberry Pi. It contains the (correct) revision, referenced in the two commits (listed above). However I am still getting a message on the OpenRSD Dashboard that reads: "There was an error checking for OpenRSD updates".

gnanet commented 4 years ago

@mengelsen

The most important information, that will help find out why the error is shown, is to get the output of git status, after you changed into the directory of your openrsd installation:

If you followed the steps of the Recommended Installation, use the following command to get into the directory

cd /var/www/openrsd

then run the one-liner below, and provide the resulting output

git fetch && git status
mengelsen commented 4 years ago

If you followed the steps of the Recommended Installation, use the following command to get into the directory

cd /var/www/openrsd

then run the one-liner below, and provide the resulting output

git fetch && git status

Yes @gnanet, I installed OpenRSD using the "Recommended Installation" instructions. However I also updated the user and group values within /etc/apache2/apache2.conf. This was referenced within Step #3 of the "Advanced Installation". https://github.com/mitchellurgero/openrsd

Here is the output that was produced after a ran the commands that you suggested:

pi@pi:/var/www/openrsd $ pwd
/var/www/openrsd

pi@pi:/var/www/openrsd $ git fetch && git status
error: cannot open .git/FETCH_HEAD: Permission denied

pi@pi:/var/www/openrsd $ sudo git fetch && git status
Refresh index: 100% (916/916), done.
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean