Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-2464

issues with trailing / in mender server url

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:

      Description

      This was reported by a user on Mender Hub, read the discussion for full details.

      Here are some extracts,

      User has a trailing "/" in mender.conf

      {
      ....
        "ServerURL": "https://mender.uat.thinkrelay.com/",
        "ServerCertificate": "/etc/mender/server.crt"
      }
      

      Which lead to this

      Apr 11 15:05:57 oa.uat.sjc.boomtown.cloud run[5737]: mender-api-gateway_1 | 172.24.10.2 - - [11/Apr/2019:22:05:57 +0000] "PUT //api/devices/v1/deployments/device/deployments/4340f1ee-d1ea-4dfe-8e08-8cc510d55e0f/status HTTP/1.1" 404 59 "-" "Go-http-client/1.1" "74.123.252.3" request ID "533d8e73-4c62-4081-8c3c-bf05582c1d5e" 0.003
      

      Above produces 404 error. User reported that removing the trailing "/" fixes the problems they where experiencing.

      Also

      FWIW your documentation has conflicting information in it (see https://docs.mender.io/1.7/client-configuration/configuration-file/configuration-options#servers 1). The ServerURL parameter is documented as to include a trailing slash. Yet the Servers parameter (array form) does not show/include one.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mirzak Mirza Krak
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Zendesk Support