some months after
quite twice more
Looks great! Your repository is still very active
released in my repository
roundcubemail 1.4.7
dolibarr 12.0.1
dokuwiki 2020-07-29
great job. As always
new update to dollibar 12.0.3
I did a PR to my own packet to display my rpm nethserver-stephdl inside the application list of cockpit, it is aware if my repo is up or down.
Iâm very thank full for your work and your support.
I hope every user has an easier access to your repo. And I hope everybody they use it to read thisâŠ
Objectif for 2020: 720⏠(fees for the soyoustart server)
Donation for 2020: 245âŹ
âŠand are ashamed.
Best regads, Marko
Very handy, but I think Iâm missing something in the secret sauce to make it work. Iâm trying to modify this for my own repo, and itâs showing up in the applications list, but itâs only showing an offline status. It looks like this is handled in api/read
, but I canât quite tell what if (head($url))
is testing for there. Can you shed some light on this?
normally you can test it directly on a NethServer with my rpm installed
echo '{"action":"app-info"}' | /usr/libexec/nethserver/api/nethserver-stephdl/read | jq
I recall that I had some issues when $url
was pointed to a https
url
maybe to debug you could modify the url on my api file, then if the issue comes from your
rpm implementation, we could debug it later
Good idea, thanks. When I change only $url in your api file:
my $url = 'http://repo.familybrown.org';
I still get the âofflineâ output:
[root@neth nethserver-stephdl]# echo '{"action":"app-info"}' | ./read | jq
{
"summary": "The stephane de Labrusse (stephdl) repository seems to be offline",
"url": "https://mirror.de-labrusse.fr",
"name": "Stephdl offline",
"description": "The stephane de Labrusse (stephdl) repository seems to be offline"
}
There must be some difference between how your server is responding and how mine is responding, but Iâm not seeing it. curl
isnât helpful; Iâm getting no output with either URL:
[root@neth-test nethserver-danb35]# curl http://mirror.de-labrusse.fr
[root@neth-test nethserver-danb35]# curl http://repo.familybrown.org
[root@neth-test nethserver-danb35]#
Adding the -v
flag shows headers, and they arenât identical, but I donât know enough to recognize a problem in mine:
[root@neth-test nethserver-danb35]# curl -v http://mirror.de-labrusse.fr
* About to connect() to mirror.de-labrusse.fr port 80 (#0)
* Trying 164.132.77.216...
* Connected to mirror.de-labrusse.fr (164.132.77.216) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: mirror.de-labrusse.fr
> Accept: */*
>
< HTTP/1.1 302 Found
< Date: Sat, 07 Nov 2020 18:39:36 GMT
< Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16
< X-Powered-By: PHP/7.2.24
< Vary: Cookie
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate
< Pragma: no-cache
< Set-Cookie: DokuWiki=g7dad6c3lf4s6ah2tcit1bu17l; path=/; HttpOnly
< Set-Cookie: DW68700bfd16c2027de7de74a5a8202a6f=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly
< Location: http://mirror.de-labrusse.fr/doku.php
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=UTF-8
<
* Connection #0 to host mirror.de-labrusse.fr left intact
[root@neth-test nethserver-danb35]# curl -v http://repo.familybrown.org
* About to connect() to repo.familybrown.org port 80 (#0)
* Trying 104.27.137.247...
* Connected to repo.familybrown.org (104.27.137.247) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: repo.familybrown.org
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Date: Sat, 07 Nov 2020 18:39:45 GMT
< Transfer-Encoding: chunked
< Connection: keep-alive
< Cache-Control: max-age=3600
< Expires: Sat, 07 Nov 2020 19:39:45 GMT
< Location: https://repo.familybrown.org/
< cf-request-id: 06459aedff0000b72d39b91000000001
< Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report?s=ng0XidaRrro93e%2FsOsEBfBdC9m7ZRL5v9vH9UssJY6xMixl%2FfsufBNOnBW%2FTgfBQEA1efVVvvNgEJ3vzDAuoppXIG6KjnxYLZX9ZyiaDJCf3Jm1h8w%3D%3D"}],"group":"cf-nel","max_age":604800}
< NEL: {"report_to":"cf-nel","max_age":604800}
< X-Content-Type-Options: nosniff
< Server: cloudflare
< CF-RAY: 5ee92dc338b5b72d-JAX
<
* Connection #0 to host repo.familybrown.org left intact
[root@neth-test nethserver-danb35]#
I suspected it might have something to do with the repo being behind Cloudflare, but disabling it didnât change the results.
you redirect to https, like I said, I think that my code doesnât work for it
[root@ns7docker ~]# curl http://repo.familybrown.org
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://repo.familybrown.org/">here</a>.</p>
</body></html>
I was going in circles on this oneâIâd put in an index.html
with a redirect to both HTTPS and Repoview, and took it out first. Still didnât work. Then disabled the mandatory HTTPS in the vhost configuration. Still didnât workâwhen a vhost returns the default landing page, it returns it with a 403 Forbidden
status code, which apparently makes head($url)
fail (which makes some sense). When I put my index.html
back, finally it worked and returned an online status.
probably you need to find something workable with perl to test if you website is up, you can even do it with bash if you prefer