[opensuse-buildservice] Changing the OBS server's FQDN
Hi, I found out that our OBS internally uses a wrong domain name: I saw the name as an alias in /etc/hosts, removed it and then the web UI did not show any build results anymore. After changing it back in /etc/hosts, it worked again. I guess some service uses the wrong name and maybe also the database from OBS contains the name somehow. I saw that some perl files in /usr/lib/obs/server use Net::Domain::hostfqdn(); from perl to resolve the hostname and it looks into /etc/resolv.conf and takes the first domain from the search(!) entry which is a bug I think. This is probably how the wrong domain name was introduced in the first place. Now... how can I change the currently used FQDN to the right one for all services and everything? Also: I actually wanted to find out how to change the URL for the package download from the Binaries page ("Detailed Information About foo.rpm" links to http://localhost/build/<Project>/<arch>/foo/foo.rpm and the localhost must be configurable somewhere - or it is resolved again and defaults to localhost because the resolve does not work properly). Regards, Mark -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Donnerstag, 21. März 2019, 14:00:27 CET Morschhäuser, Mark wrote:
Hi,
I found out that our OBS internally uses a wrong domain name: I saw the name as an alias in /etc/hosts, removed it and then the web UI did not show any build results anymore. After changing it back in /etc/hosts, it worked again. I guess some service uses the wrong name and maybe also the database from OBS contains the name somehow. I saw that some perl files in /usr/lib/obs/server use Net::Domain::hostfqdn(); from perl to resolve the hostname and it looks into /etc/resolv.conf and takes the first domain from the search(!) entry which is a bug I think. This is probably how the wrong domain name was introduced in the first place.
Now... how can I change the currently used FQDN to the right one for all services and everything?
Also: I actually wanted to find out how to change the URL for the package download from the Binaries page ("Detailed Information About foo.rpm" links to http://localhost/build/<Project>/<arch>/foo/foo.rpm and the localhost must be configurable somewhere - or it is resolved again and defaults to localhost because the resolve does not work properly).
that is most likely the obs_url in osc api -e /configuration just edit it there and also the one for your official download repos, since / build is just the build area -- Adrian Schroeter SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hi, thanks for you answer but it was not the solution. I tried obs_url and download_url, restarted the services but the link still points to localhost. Regards, Mark -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 2019-03-21 13:32:45 +0000, Morschhäuser, Mark wrote:
thanks for you answer but it was not the solution. I tried obs_url and download_url, restarted the services but the link still points to localhost.
Do you have a "$repodownload" variable defined in the BSConfig.pm? If so, just remove it/comment it out because it overrides the download_url value. Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hi, there is no such variable in the file. Regards, Mark -----Ursprüngliche Nachricht----- Von: Marcus Hüwe [mailto:suse-tux@gmx.de] Gesendet: Donnerstag, 21. März 2019 15:10 An: opensuse-buildservice@opensuse.org Betreff: Re: [opensuse-buildservice] Changing the OBS server's FQDN On 2019-03-21 13:32:45 +0000, Morschhäuser, Mark wrote:
thanks for you answer but it was not the solution. I tried obs_url and download_url, restarted the services but the link still points to localhost.
Do you have a "$repodownload" variable defined in the BSConfig.pm? If so, just remove it/comment it out because it overrides the download_url value. Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Donnerstag, 21. März 2019, 15:50:07 CET Morschhäuser, Mark wrote:
Hi,
there is no such variable in the file.
see .. you found the cause :) just add it, in doubt compare it with the one on api.opensuse.org
Regards,
Mark
-----Ursprüngliche Nachricht----- Von: Marcus Hüwe [mailto:suse-tux@gmx.de] Gesendet: Donnerstag, 21. März 2019 15:10 An: opensuse-buildservice@opensuse.org Betreff: Re: [opensuse-buildservice] Changing the OBS server's FQDN
On 2019-03-21 13:32:45 +0000, Morschhäuser, Mark wrote:
thanks for you answer but it was not the solution. I tried obs_url and download_url, restarted the services but the link still points to localhost. Do you have a "$repodownload" variable defined in the BSConfig.pm? If so, just remove it/comment it out because it overrides the download_url value.
Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-- Adrian Schroeter SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hi, I don't understand - he wanted me to remove the $repodownload variable if it is there, but it is not. So everything should be alright and another solution must be found. Regards, Mark -----Ursprüngliche Nachricht----- Von: Adrian Schröter [mailto:adrian@suse.de] Gesendet: Donnerstag, 21. März 2019 15:52 An: opensuse-buildservice@opensuse.org Cc: Morschhäuser, Mark <Mark.Morschhaeuser@dsa.de> Betreff: Re: AW: [opensuse-buildservice] Changing the OBS server's FQDN On Donnerstag, 21. März 2019, 15:50:07 CET Morschhäuser, Mark wrote:
Hi,
there is no such variable in the file.
see .. you found the cause :) just add it, in doubt compare it with the one on api.opensuse.org
Regards,
Mark
-----Ursprüngliche Nachricht----- Von: Marcus Hüwe [mailto:suse-tux@gmx.de] Gesendet: Donnerstag, 21. März 2019 15:10 An: opensuse-buildservice@opensuse.org Betreff: Re: [opensuse-buildservice] Changing the OBS server's FQDN
On 2019-03-21 13:32:45 +0000, Morschhäuser, Mark wrote:
thanks for you answer but it was not the solution. I tried obs_url and download_url, restarted the services but the link still points to localhost. Do you have a "$repodownload" variable defined in the BSConfig.pm? If so, just remove it/comment it out because it overrides the download_url value.
Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-- Adrian Schroeter SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Donnerstag, 21. März 2019, 16:07:45 CET Morschhäuser, Mark wrote:
Hi,
I don't understand - he wanted me to remove the $repodownload variable if it is there, but it is not. So everything should be alright and another solution must be found.
ah, did not saw that ... my 15.1 mailer is a bit slow .. however, the backend config has no influence to the UI. You spoke about the webui, right? Or where exactly do you see the wrong name? And please don't configre names in BSConfig.pm anymore, also the backend is taking it from the /configuration.xml, but the BSConfig.pm would overwrite it for backward compability. However, you would need to sync all places manually then..
Regards,
Mark
-----Ursprüngliche Nachricht----- Von: Adrian Schröter [mailto:adrian@suse.de] Gesendet: Donnerstag, 21. März 2019 15:52 An: opensuse-buildservice@opensuse.org Cc: Morschhäuser, Mark <Mark.Morschhaeuser@dsa.de> Betreff: Re: AW: [opensuse-buildservice] Changing the OBS server's FQDN
On Donnerstag, 21. März 2019, 15:50:07 CET Morschhäuser, Mark wrote:
Hi,
there is no such variable in the file.
see .. you found the cause :)
just add it, in doubt compare it with the one on api.opensuse.org
Regards,
Mark
-----Ursprüngliche Nachricht----- Von: Marcus Hüwe [mailto:suse-tux@gmx.de] Gesendet: Donnerstag, 21. März 2019 15:10 An: opensuse-buildservice@opensuse.org Betreff: Re: [opensuse-buildservice] Changing the OBS server's FQDN
On 2019-03-21 13:32:45 +0000, Morschhäuser, Mark wrote:
thanks for you answer but it was not the solution. I tried obs_url and download_url, restarted the services but the link still points to localhost.
Do you have a "$repodownload" variable defined in the BSConfig.pm? If so, just remove it/comment it out because it overrides the download_url value.
Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-- Adrian Schroeter SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hi, yes, I meant the webui. There is the localhost URL issue in the "Detailed Information About <rpmfile>" link under https://<server>/package/binary/<Project>/<package>?arch=<arch>&filename=<rpmfile>&repository=<repo> and there is the issue that the build results and repository configuration are unavailable after a change of the server's own name/domain in /etc/hosts and /etc/resolv.conf. I am using obs-server-2.9.5-51 by the way. Regards, Mark -----Ursprüngliche Nachricht----- Von: Adrian Schröter [mailto:adrian@suse.de] Gesendet: Donnerstag, 21. März 2019 16:24 An: opensuse-buildservice@opensuse.org Cc: Morschhäuser, Mark <Mark.Morschhaeuser@dsa.de> Betreff: Re: AW: AW: [opensuse-buildservice] Changing the OBS server's FQDN On Donnerstag, 21. März 2019, 16:07:45 CET Morschhäuser, Mark wrote:
Hi,
I don't understand - he wanted me to remove the $repodownload variable if it is there, but it is not. So everything should be alright and another solution must be found.
ah, did not saw that ... my 15.1 mailer is a bit slow .. however, the backend config has no influence to the UI. You spoke about the webui, right? Or where exactly do you see the wrong name? And please don't configre names in BSConfig.pm anymore, also the backend is taking it from the /configuration.xml, but the BSConfig.pm would overwrite it for backward compability. However, you would need to sync all places manually then..
Regards,
Mark
-----Ursprüngliche Nachricht----- Von: Adrian Schröter [mailto:adrian@suse.de] Gesendet: Donnerstag, 21. März 2019 15:52 An: opensuse-buildservice@opensuse.org Cc: Morschhäuser, Mark <Mark.Morschhaeuser@dsa.de> Betreff: Re: AW: [opensuse-buildservice] Changing the OBS server's FQDN
On Donnerstag, 21. März 2019, 15:50:07 CET Morschhäuser, Mark wrote:
Hi,
there is no such variable in the file.
see .. you found the cause :)
just add it, in doubt compare it with the one on api.opensuse.org
Regards,
Mark
-----Ursprüngliche Nachricht----- Von: Marcus Hüwe [mailto:suse-tux@gmx.de] Gesendet: Donnerstag, 21. März 2019 15:10 An: opensuse-buildservice@opensuse.org Betreff: Re: [opensuse-buildservice] Changing the OBS server's FQDN
On 2019-03-21 13:32:45 +0000, Morschhäuser, Mark wrote:
thanks for you answer but it was not the solution. I tried obs_url and download_url, restarted the services but the link still points to localhost.
Do you have a "$repodownload" variable defined in the BSConfig.pm? If so, just remove it/comment it out because it overrides the download_url value.
Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-- Adrian Schroeter SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 2019-03-21 14:50:07 +0000, Morschhäuser, Mark wrote:
there is no such variable in the file.
Ok. Let's check the following: - Is the download_url element set to the correct/expected value? (in the "osc api /configuration" output) - run "curl http://<srcserver>:5352/configuration" and check if the download_url element also has the correct/expected value Next, restart the memcached service (from a quick glance it seems that the "download_url*" cache entries are not invalidated when the corresponding configuration element is updated (but I might be wrong here)). Marcus
-----Ursprüngliche Nachricht----- Von: Marcus Hüwe [mailto:suse-tux@gmx.de] Gesendet: Donnerstag, 21. März 2019 15:10 An: opensuse-buildservice@opensuse.org Betreff: Re: [opensuse-buildservice] Changing the OBS server's FQDN
On 2019-03-21 13:32:45 +0000, Morschhäuser, Mark wrote:
thanks for you answer but it was not the solution. I tried obs_url and download_url, restarted the services but the link still points to localhost.
Do you have a "$repodownload" variable defined in the BSConfig.pm? If so, just remove it/comment it out because it overrides the download_url value.
Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hi, 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. Regards, Mark -----Ursprüngliche Nachricht----- Von: Marcus Hüwe [mailto:suse-tux@gmx.de] Gesendet: Donnerstag, 21. März 2019 18:29 An: opensuse-buildservice@opensuse.org Betreff: [!!Mass Mail]Re: [opensuse-buildservice] Changing the OBS server's FQDN On 2019-03-21 14:50:07 +0000, Morschhäuser, Mark wrote:
there is no such variable in the file.
Ok. Let's check the following: - Is the download_url element set to the correct/expected value? (in the "osc api /configuration" output) - run "curl http://<srcserver>:5352/configuration" and check if the download_url element also has the correct/expected value Next, restart the memcached service (from a quick glance it seems that the "download_url*" cache entries are not invalidated when the corresponding configuration element is updated (but I might be wrong here)). Marcus
-----Ursprüngliche Nachricht----- Von: Marcus Hüwe [mailto:suse-tux@gmx.de] Gesendet: Donnerstag, 21. März 2019 15:10 An: opensuse-buildservice@opensuse.org Betreff: Re: [opensuse-buildservice] Changing the OBS server's FQDN
On 2019-03-21 13:32:45 +0000, Morschhäuser, Mark wrote:
thanks for you answer but it was not the solution. I tried obs_url and download_url, restarted the services but the link still points to localhost.
Do you have a "$repodownload" variable defined in the BSConfig.pm? If so, just remove it/comment it out because it overrides the download_url value.
Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
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
-----Ursprüngliche Nachricht----- Von: Marcus Hüwe [mailto:suse-tux@gmx.de] Gesendet: Donnerstag, 21. März 2019 18:29 An: opensuse-buildservice@opensuse.org Betreff: [!!Mass Mail]Re: [opensuse-buildservice] Changing the OBS server's FQDN
On 2019-03-21 14:50:07 +0000, Morschhäuser, Mark wrote:
there is no such variable in the file.
Ok. Let's check the following:
- Is the download_url element set to the correct/expected value? (in the "osc api /configuration" output) - run "curl http://<srcserver>:5352/configuration" and check if the download_url element also has the correct/expected value
Next, restart the memcached service (from a quick glance it seems that the "download_url*" cache entries are not invalidated when the corresponding configuration element is updated (but I might be wrong here)).
Marcus
-----Ursprüngliche Nachricht----- Von: Marcus Hüwe [mailto:suse-tux@gmx.de] Gesendet: Donnerstag, 21. März 2019 15:10 An: opensuse-buildservice@opensuse.org Betreff: Re: [opensuse-buildservice] Changing the OBS server's FQDN
On 2019-03-21 13:32:45 +0000, Morschhäuser, Mark wrote:
thanks for you answer but it was not the solution. I tried obs_url and download_url, restarted the services but the link still points to localhost.
Do you have a "$repodownload" variable defined in the BSConfig.pm? If so, just remove it/comment it out because it overrides the download_url value.
Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
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
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
participants (3)
-
Adrian Schröter
-
Marcus Hüwe
-
Morschhäuser, Mark