Proxy settings on server installation


#1

Hi all,

I would like to run experiments on our server NRPs. As the installs were pretty outdated I had to update them. I managed to update one of them, but I’m having issues with the proxy configuration. I need to change the frontend settings such that it does not refer to ‘localhost’ because thats problematic when I visit via my browser on my laptop. (right now, it refers to the backend on my laptop due to this localhost setting)

I ran ‘./running_mode 5’ but that doesn’t cut it, is that supposed to be sufficient or should I do something else as well?

thanks,

Alexander


#2

Hi Alexander,

I think it is sufficient. You may want to check how your IP address is being used in both $HBP/ExDFrontend/app/config.json and $HBP/nrpBackendProxy/config.json in case the testIPs function of $HBP/user-scripts/running_mode didn’t return the expected value.

Best regards,
Luc


#3

Hi Luc,

It seems to me both files are edited as they should:

BackendProxy/config.json:

    {
      "refreshInterval": 5000,
      "auth": {
        "renewInternal": 600000,
        "clientId": "0dcfb392-32c7-480c-ae18-cbaf29e8a6b1",
        "clientSecret": "WfjTCn30aTlcmbL-wWVhmsAUgobaX9o5xR-6WQ9jQEDFAodNVozzjy283qaOj$
        "url": "https://services.humanbrainproject.eu/oidc",
        "deactivate": true
      },
      "port": 8443,
      "modelsPath": "$HBP/Models",
      "experimentsPath": "$HBP/Experiments",
      "servers": {
        "localhost": {
          "gzweb": {
            "assets": "http://172.18.20.241:8080/assets",
            "nrp-services": "http://172.18.20.241:8080",
            "videoStreaming": "http://172.18.20.241:8080/webstream/",
            "websocket": "ws://172.18.20.241:8080/gzbridge"
          },
          "rosbridge": {
            "websocket": "ws://172.18.20.241:8080/rosbridge"
          },
          "serverJobLocation": "local"
        }
      },
      "storage": "FS",
      "authentication": "FS",
      "restart-backend-cmd": "$HBP/user-scripts/config_files/nrpBackendProxy/restart-b$
      "activity-logs": {
        "simulation_start": "/tmp/simulation_start.log"
      }
    }

and xDFrontend/app/config.json:

{
  "api": {
    "user": {
      "v0": "https://services.humanbrainproject.eu/oidc/v0/api",
      "v1": "https://services.humanbrainproject.eu/idm/v1/api"
    },
    "account": {
      "v1": "https://services.humanbrainproject.eu/idm/v1/api"
    },
    "slurmmonitor": {
      "url": "https://neurorobotics-dev.humanbrainproject.eu/slurmmonitor"
    },
    "document": {
      "v0": "https://services.humanbrainproject.eu/document/v0/api",
      "v1": "https://services.humanbrainproject.eu/storage/v1/api"
    },
    "proxy": {
      "url": "http://172.18.20.241:9000/proxy"
    },
    "collab": {
      "v0": "https://services.humanbrainproject.eu/collab/v0"
    }
  },
  "auth": {
    "clientId": "neurorobotics-ui",
    "url": "https://services.humanbrainproject.eu/oidc"
  },
  "collab" : {
    "features": {
      "identity" : {
        "userApiV1" : true
      }
    },
    "collabIds": {
      "neuroroboticsCollabBaseUrl": "https://collab.humanbrainproject.eu/#/collab/$
      "pagesId": {
        "upgrade": 12893,
        "tutorial": 11696,
        "exampleExperiments": 5098,
        "createCollab": 5650,
        "documentation": 12894,
    }
  },
  "auth": {
    "clientId": "neurorobotics-ui",
    "url": "https://services.humanbrainproject.eu/oidc"
  },
  "collab" : {
    "features": {
      "identity" : {
        "userApiV1" : true
      }
    },
    "collabIds": {
      "neuroroboticsCollabBaseUrl": "https://collab.humanbrainproject.eu/#/collab/$
      "pagesId": {
        "upgrade": 12893,
        "tutorial": 11696,
        "exampleExperiments": 5098,
        "createCollab": 5650,
        "documentation": 12894,
        "support": 5101
      }
    }
  },
  "ros-topics": {
    "spikes": "/monitor/spike_recorder",
    "joint": "/joint_states",
    "status": "/ros_cle_simulation/status",
    "cleError": "/ros_cle_simulation/cle_error",
    "logs": "/ros_cle_simulation/logs"
  },
  "environment" : "noenvironment"
}

and the address is also returned by ifconfig (inet addr:172.18.20.241)

Does it look correct to you?

thanks,

Alexander


#4

Hi Alexander,

You also need to replace the localhost reference here $HBP/ExDBackend/hbp_nrp_backend/hbp_nrp_backend/config.py

Regards,
Manos