[Dachs-support] Resource endpoints/urls not updating after config (port) changed

Carlos Henrique Brandt carloshenriquebrandt at gmail.com
Wed Feb 23 13:21:27 CET 2022


Hi Markus,

 In the new Debian machine I have Dachs freshly installed, I have been
doing stuff (ie, importing the resources) at port 8080. Now, I fixed an bug
in my config file -- a trailing "/" slash in `serverURL` -- and changed the
port from 8080 to 80; Then restarted the server, but *the resources URLs*
are not updating. **The front/landing page as well as the "site help"
endpoint update just fine.**

Experienced behaviour:
* Resource/Service endpoints are not updating after Dachs config (port and
serverURL) was updated and restarted. I still see the old/buggy URL of mine
(eg, http://10.72.254.168:8080//tableinfo/mars_craters.epn_core)
* Front/Landing page as well as "site help" work fine (eg,
http://10.72.254.168/static/help.shtml)

Expected behaviour:
* Resource/Service URL would update accordingly, like frontpage did (eg,
http://10.72.254.168/tableinfo/mars_craters.epn_core)

Steps to reproduce the issue:
* install dachs 2.5.2+dfsg-1
* set the config file with the following settings:
```
[web]
bindAddress:
serverPort: 8080
adaptProtocol: False
serverURL: http://localhost:8080/
```
* import a data/service resource (eg,
https://voparis-gitlab.obspm.fr/vespa/dachs/services/jacobsuni/planmap.git)
* reload/restart the server and visit the frontpage at http://localhost:8080
* visit the resource endpoint through frontpage's link (you should have a
broken link because of an extra slash after the hostname/port; coming from
`serverURL`)
* Fix/adjust your config file to the following:
```
[web]
bindAddress:
serverPort: 80
adaptProtocol: False
serverURL: http://localhost
```
* Reload/restart dachs service
* Visit the frontpage, now at http://localhost
* Visit the resource endpoint through frontpage's link. ISSUE: the same,
old, broken URL is being used by the frontpage (on port 8080 + extra slash)
* Back to the frontpage, visit the "site help" link, it is working fine.

Am I doing something wrong? If not, how do I update the URLs?

Thanks,
Carlos

-- 
The consequences of every act are included in the act itself.
--------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.g-vo.org/pipermail/dachs-support/attachments/20220223/92d7f416/attachment.htm>


More information about the Dachs-support mailing list