I have a local OBS installed from https://openbuildservice.org/download/. I have copied https://build.opensuse.org/package/show/home:geokraft4/helloworld to my OBS. I can successfully build it, but when I try to Download the RPM then it says "This site can’t be reached. localhost refused to connect." Is it because the webserver is not allowing it to read the /srv/obs/build/ directory? I cannot find "/srv/obs/build/" used in /srv/www/obs/api directory. Where would I config the OBS webserver to be able to access the built RPMs in /srv/obs/build/?
Also, if I run the command "osc repourls" then I get the following error. BuildService API error: download_url configuration element expected
The Download URL is something like
https://SERVER/package/binary/download/home:george_kraft/helloworld/15.3/x86...
The actual RPM directories are:
/srv/obs/build/home:george_kraft/15.3/x86_64/helloworld/hello-2.10-lp153.3.1.x86_64.rpm /srv/obs/build/home:george_kraft/15.3/x86_64/:repo/hello-2.10-lp153.3.1.x86_64.rpm
Hello George,
On Mon, 2022-05-23 at 16:54 +0000, George Kraft wrote:
Also, if I run the command "osc repourls" then I get the following error. BuildService API error: download_url configuration element expected
Yes, you need to set this in your OBS instance's configuration. This is covered in the Admin guide as well:
https://openbuildservice.org/help/manuals/obs-admin-guide/obs.cha.installati...
You need to define the <download_url>...</download_url> element.
Hint: Skip the trailing slash "/" in the value of the <download_url> element.
Regards, Srinidhi.
FIXED with help from Srinidhi B.
osc -A https://MYSERVER/ -c ~/.obsadmin_osc.rc api /configuration | tee obs.config # edit obs.config to fix <obs_url> and <download_url> osc -A https://MYSERVER/ -c ~/.obsadmin_osc.rc api /configuration -T obs.config osc repourls
On Mittwoch, 25. Mai 2022, 15:46:24 CEST George Kraft wrote:
FIXED with help from Srinidhi B.
osc -A https://MYSERVER/ -c ~/.obsadmin_osc.rc api /configuration | tee obs.config # edit obs.config to fix <obs_url> and <download_url> osc -A https://MYSERVER/ -c ~/.obsadmin_osc.rc api /configuration -T obs.config osc repourls
jfyi
osc api -e /configuration
works also :)
I have added <obs_url>https://MYSERVER</obs_url> and <download_url>https://MYSERVER</download_url> to my on-prem OBS config. I'm now able to see .rpm files in the x86_64 build results webpage; however, when I click on the Download link for the .rpm files then I get "This site can't be reached". When I click on the "Go to download repository" link, then I get "404: Not Found". The "osc repourls" now gives URLs. I can find the project.repo file in the /srv/obs/repo directory; however, it does not work with zypper or the browser. I am able to find the .rpm files in the /srv/obs/build filesystem. It seems the OBS webserver is not working for the URLs that it is giving.
On Friday 2022-06-03 17:30, George Kraft wrote:
I have added <obs_url>https://MYSERVER</obs_url> and <download_url>https://MYSERVER</download_url> to my on-prem OBS config. I'm now able to see .rpm files in the x86_64 build results webpage; however, when I click on the Download link for the .rpm files then I get "This site can't be reached". When I click on the "Go to download repository" link, then I get "404: Not Found". The "osc repourls" now gives URLs. I can find the project.repo file in the /srv/obs/repo directory; however, it does not work with zypper or the browser. I am able to find the .rpm files in the /srv/obs/build filesystem. It seems the OBS webserver is not working for the URLs that it is giving.
I loosely seem to recall that the download link leads you to what normally is /srv/obs/repos (http://buildmachine:82/).
buildservice@lists.opensuse.org