Developer portal access

Hi

I’m getting blank page on accessing developer portal http://x.x.x.x:8003

but getting the uploaded files on http://x.x.x.x::8004/files

I have not activated RBAC/Authendication

What would be the reason?

Hi! Tht does seem a bit odd. It’s hard to say from just the description what may be wrong, could we see the DEVELOPER PORTAL section of your kong.conf file?

It would also be helpful if you could open the developer tools on your browser. With those open, go to the network page and reload http://x.x.x.x:8003 and take a screen shot of the results.

I suspect with this information we’ll be able to figure out what’;s wrong.

I’m started kong as below

docker run -d --name kong-ee --link kong-ee-database:kong-ee-database
-e “KONG_DATABASE=cassandra”
-e “KONG_PG_HOST=kong-ee-database”
-e “KONG_CASSANDRA_CONTACT_POINTS=kong-ee-database”
-e “KONG_PROXY_ACCESS_LOG=/dev/stdout”
-e “KONG_ADMIN_ACCESS_LOG=/dev/stdout”
-e “KONG_PROXY_ERROR_LOG=/dev/stderr”
-e “KONG_ADMIN_ERROR_LOG=/dev/stderr”
-e “KONG_VITALS=on”
-e “KONG_ADMIN_LISTEN=0.0.0.0:8001”
-e “KONG_PORTAL=on”
-e “KONG_PORTAL_GUI_URI=127.0.0.1:8003”
-e “KONG_LICENSE_DATA=$KONG_LICENSE_DATA”
-p 8000:8000
-p 8443:8443
-p 8001:8001
-p 8444:8444
-p 8002:8002
-p 8445:8445
-p 8003:8003
-p 8004:8004
kong-ee

here is my endpoing

http://13.76.179.102:8003/

This is odd, http://13.76.179.102:8003/

it seems to be loading on my side Can you try from a private browser?

When I look at your Docker command, I noticed this line KONG_PORTAL_GUI_URI=127.0.0.1:8003. Can you try going to that address to access your portal?

Inside the machine I’m getting 404 error

.

May I see the sync.sh file you used to upload those files? It’s starting to look like auth=true may have been added to a file it shoulden’t be on.

Also, are you able to load 127.0.0.1:8003/about ?

For 127.0.0.1:8003/about also getting 404 error.

Here is my sync.sh and I replaced “http” with “htp” as the reply editor doesn’t allow more 2 links here.

curl -X DELETE “htp://0.0.0.0:8001/files/404”
curl -X DELETE “htp://0.0.0.0:8001/files/about”
curl -X DELETE “htp://0.0.0.0:8001/files/documentation/api1”
curl -X DELETE “htp://0.0.0.0:8001/files/documentation/api2”
curl -X DELETE “htp://0.0.0.0:8001/files/documentation/index”
curl -X DELETE “htp://0.0.0.0:8001/files/documentation/loader”
curl -X DELETE “htp://0.0.0.0:8001/files/guides”
curl -X DELETE “htp://0.0.0.0:8001/files/index”
curl -X DELETE “htp://0.0.0.0:8001/files/unauthenticated/404”
curl -X DELETE “htp://0.0.0.0:8001/files/unauthenticated/index”
curl -X DELETE “htp://0.0.0.0:8001/files/unauthenticated/login-basicauth”
curl -X DELETE “htp://0.0.0.0:8001/files/unauthenticated/login-keyauth”
curl -X DELETE “htp://0.0.0.0:8001/files/unauthenticated/login-oidc”
curl -X DELETE “htp://0.0.0.0:8001/files/unauthenticated/login”
curl -X DELETE “htp://0.0.0.0:8001/files/user”
curl -X DELETE “htp://0.0.0.0:8001/files/custom-js”
curl -X DELETE “htp://0.0.0.0:8001/files/header”
curl -X DELETE “htp://0.0.0.0:8001/files/layout”
curl -X DELETE “htp://0.0.0.0:8001/files/sidebar-spec”
curl -X DELETE “htp://0.0.0.0:8001/files/sidebar”
curl -X DELETE “htp://0.0.0.0:8001/files/spec-dropdown”
curl -X DELETE “htp://0.0.0.0:8001/files/spec-renderer”
curl -X DELETE “htp://0.0.0.0:8001/files/unauthenticated/auth-js”
curl -X DELETE “htp://0.0.0.0:8001/files/unauthenticated/custom-css”
curl -X DELETE “htp://0.0.0.0:8001/files/unauthenticated/footer”
curl -X DELETE “htp://0.0.0.0:8001/files/unauthenticated/header”
curl -X DELETE “htp://0.0.0.0:8001/files/unauthenticated/layout”
curl -X DELETE “htp://0.0.0.0:8001/files/unauthenticated/login-actions”
curl -X DELETE “htp://0.0.0.0:8001/files/unauthenticated/theme-css”
curl -X DELETE “htp://0.0.0.0:8001/files/unauthenticated/title”
curl -X DELETE “htp://0.0.0.0:8001/files/petstore”
curl -X DELETE “htp://0.0.0.0:8001/files/vitals”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=404” -F “contents=@pages/404.hbs” -F “type=page” -F “auth=true”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=about” -F “contents=@pages/about.hbs” -F “type=page” -F “auth=true”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=documentation/api1” -F “contents=@pages/documentation/api1.hbs” -F “type=page” -F “auth=true”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=documentation/api2” -F “contents=@pages/documentation/api2.hbs” -F “type=page” -F “auth=true”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=documentation/index” -F “contents=@pages/documentation/index.hbs” -F “type=page” -F “auth=true”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=documentation/loader” -F “contents=@pages/documentation/loader.hbs” -F “type=page” -F “auth=true”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=guides” -F “contents=@pages/guides.hbs” -F “type=page” -F “auth=true”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=index” -F “contents=@pages/index.hbs” -F “type=page” -F “auth=true”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=unauthenticated/404” -F “contents=@pages/unauthenticated/404.hbs” -F “type=page” -F “auth=false”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=unauthenticated/index” -F “contents=@pages/unauthenticated/index.hbs” -F “type=page” -F “auth=false”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=unauthenticated/login-basicauth” -F “contents=@pages/unauthenticated/login-basicauth.hbs” -F “type=page” -F “auth=false”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=unauthenticated/login-keyauth” -F “contents=@pages/unauthenticated/login-keyauth.hbs” -F “type=page” -F “auth=false”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=unauthenticated/login-oidc” -F “contents=@pages/unauthenticated/login-oidc.hbs” -F “type=page” -F “auth=false”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=unauthenticated/login” -F “contents=@pages/unauthenticated/login.hbs” -F “type=page” -F “auth=false”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=user” -F “contents=@pages/user.hbs” -F “type=page” -F “auth=true”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=custom-js” -F “contents=@partials/custom-js.hbs” -F “type=partial” -F “auth=true”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=header” -F “contents=@partials/header.hbs” -F “type=partial” -F “auth=true”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=layout” -F “contents=@partials/layout.hbs” -F “type=partial” -F “auth=true”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=sidebar-spec” -F “contents=@partials/sidebar-spec.hbs” -F “type=partial” -F “auth=true”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=sidebar” -F “contents=@partials/sidebar.hbs” -F “type=partial” -F “auth=true”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=spec-dropdown” -F “contents=@partials/spec-dropdown.hbs” -F “type=partial” -F “auth=true”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=spec-renderer” -F “contents=@partials/spec-renderer.hbs” -F “type=partial” -F “auth=true”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=unauthenticated/auth-js” -F “contents=@partials/unauthenticated/auth-js.hbs” -F “type=partial” -F “auth=false”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=unauthenticated/custom-css” -F “contents=@partials/unauthenticated/custom-css.hbs” -F “type=partial” -F “auth=false”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=unauthenticated/footer” -F “contents=@partials/unauthenticated/footer.hbs” -F “type=partial” -F “auth=false”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=unauthenticated/header” -F “contents=@partials/unauthenticated/header.hbs” -F “type=partial” -F “auth=false”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=unauthenticated/layout” -F “contents=@partials/unauthenticated/layout.hbs” -F “type=partial” -F “auth=false”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=unauthenticated/login-actions” -F “contents=@partials/unauthenticated/login-actions.hbs” -F “type=partial” -F “auth=false”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=unauthenticated/theme-css” -F “contents=@partials/unauthenticated/theme-css.hbs” -F “type=partial” -F “auth=false”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=unauthenticated/title” -F “contents=@partials/unauthenticated/title.hbs” -F “type=partial” -F “auth=false”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=petstore” -F “contents=@specs/petstore.json” -F “type=spec” -F “auth=true”
curl -X POST “htp://0.0.0.0:8001/files” -F “name=vitals” -F “contents=@specs/vitals.yaml” -F “type=spec” -F “auth=true”

So everything is looking correct at first glance. Are you able to load the page from a different browser, or maybe a private session?

What response do you get back when you run the shell script?

No, page is not loading in any browser/private session.

Didn’t get any error on running shell script