
ok, I finally found it: I had to set the OBS_SRC_SERVER setting in /etc/buildhost.config -----Ursprüngliche Nachricht----- Von: Morschhäuser, Mark [mailto:Mark.Morschhaeuser@dsa.de] Gesendet: Montag, 25. März 2019 13:36 An: opensuse-buildservice@opensuse.org Betreff: AW: [!!Mass Mail]Re: [opensuse-buildservice] Changing the OBS server's FQDN Hi, my curl http://<webui>:5352/build/<prj>/<repo>/<arch>/<pkg>/<rpmfile>?view=publishedpath command prints <publishedpath project="<prj>" repository="<repo>"> <path><prj>/<repo>/<arch>/<rpmfile></path> <url>https://<webui>/repositories/<prj>/<repo>/<arch>/<rpmfile></url> </publishedpath> (with correct hostname and everything) curl -I <url> TTP/1.0 200 Connection established curl: (60) SSL certificate problem: self signed certificate [...] If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. -> curl -k -I <url> HTTP/1.0 200 Connection established HTTP/1.1 404 Not Found Date: Mon, 25 Mar 2019 12:08:40 GMT Server: Apache X-Request-Id: 088dcd14-1425-43d3-9eb2-1eca180b7d89 X-Runtime: 0.001553 X-Powered-By: Phusion Passenger 5.3.5 Content-Length: 4331 Status: 404 Not Found Cache-Control: public Content-Type: text/html; charset=utf-8 The source_host entry is set to localhost in options.yml but if I change it, I get HTTP 500 errors in the webui after restarting the OBS services. If I set external_frontend_host then the webui still shows localhost in the download link. Note that while https://<webui>/repositories/<prj>/<repo>/<arch>/<rpmfile> provided by the first curl command does not work in a browser, the URL https://<webui>/build/<prj>/<repo>/<arch>/<pkg>/<rpmfile> does work (after I replaced localhost with the real hostname in <webui>) and I can download the <rpmfile>. Regards, Mark -----Ursprüngliche Nachricht----- Von: Marcus Hüwe [mailto:suse-tux@gmx.de] Gesendet: Samstag, 23. März 2019 15:21 An: opensuse-buildservice@opensuse.org Betreff: Re: [!!Mass Mail]Re: [opensuse-buildservice] Changing the OBS server's FQDN On 2019-03-22 08:22:17 +0000, Morschhäuser, Mark wrote:
the download_url entry is correct (it was not present until yesterday but I added it after I saw it on api.opensuse). I restarted memcached but that did not seem to change anything. I also rebooted to make sure everything is restarted. No change.
Ok, let's assume you want to visit the following page: https://<webui>/package/binary/<prj>/<pkg>?arch=<arch>&filename=<rpmfile>&repository=<repo> Can you post the result of the following command? - curl http://<src_server>:5352/build/<prj>/<repo>/<arch>/<pkg>/<rpmfile>?view=publishedpath This should return an xml document with an <url/> element. Also, please post the result of curl -I <text part of the <url/> element> Taking your first mail into account, this will probably result in a 404. Hence, the non-working repo server is ignored and an URL is used/generated that points to http://<some_host>/build/<prj>/<repo>/<arch>/<pkg>/<rpmfile> where <some_host> is either the value of the "external_frontend_host" or "frontend_host" config option, which can be set in the /path/to/the/api/config/options.yml file. Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org ____________________________________________________________________ [TestingExpo_Footer]<http://www.testing-expo.com/europe/en/> Besuchen Sie DSA auf der Automotive Testing Expo 2019 in Stuttgart - wir freuen uns auf Sie! Stand 8448, 21. - 23. Mai 2019 Für Terminvereinbarungen und kostenlose Besucherausweise wenden Sie sich gerne an Frau Vanessa Sack: Tel.: +49 2408 9492-794 E-Mail: vanessa.sack@dsa.de Visit DSA at Automotive Testing Expo 2019 in Stuttgart - we look forward to welcoming you! Booth 8448, May 21 to 23, 2019 For appointments and free visitor badges please get in touch with Ms. Vanessa Sack: Phone: +49 2408 9492-794 Email: vanessa.sack@dsa.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org