outline-server icon indicating copy to clipboard operation
outline-server copied to clipboard

Last error: curl: (22) The requested URL returned error: 403 Forbidden

Open Zo0oX opened this issue 3 years ago • 3 comments

hello

how can i fix this error on centos7 ?

thanks

 sudo bash -c "$(wget -qO- https://raw.githubusercontent.com/Jigsaw-Code/outline-server/master/src/server_manager/install_scripts/install_server.sh)"
> Verifying that Docker is installed .......... OK
> Verifying that Docker daemon is running ..... OK
> Setting PUBLIC_HOSTNAME to external IP ......
Last error: curl: (22) The requested URL returned error: 403 Forbidden
curl: (22) The requested URL returned error: 403 Forbidden
Failed to determine the server's IP address.  Try using --hostname <server IP>.

Sorry! Something went wrong. If you can't figure this out, please copy and paste all this output into the Outline Manager screen, and send it to us, to see if we can help you.
Full log: /tmp/outline_logUFd

Zo0oX avatar Aug 08 '21 00:08 Zo0oX

What cloud provider are you using? This seems similar to https://github.com/Jigsaw-Code/outline-server/issues/776

Are you able to call curl https://ipinfo.io from the machine?

fortuna avatar Aug 17 '21 22:08 fortuna

What cloud provider are you using? This seems similar to #776

Are you able to call curl https://ipinfo.io from the machine?

`root@Ubuntu-1804:/home/ubuntu# curl https://ipinfo.io

Error 403 (Forbidden)!!1

403. That’s an error.

Your client does not have permission to get URL / from this server. That’s all we know. `

Zo0oX avatar Aug 20 '21 18:08 Zo0oX

same issue

uranuse2019 avatar Oct 08 '21 15:10 uranuse2019

add --hostname YOUR_HOST_NAME after installer Cli.

YOUR_HOST_NAME is IP or other valid hostnameif curl https://ipinfo.io doesn't return a JSON that contains your IP, just define your IP through the --hostname flag

mahdizareeii avatar Oct 22 '22 20:10 mahdizareeii

like this: sudo bash -c "$(wget -qO- https://raw.githubusercontent.com/Jigsaw-Code/outline-server/master/src/server_manager/install_scripts/install_server.sh)--hostname 1.1.1.1"

1.1.1.1 is your ip

mahdizareeii avatar Oct 22 '22 20:10 mahdizareeii

We've added fallbacks for the IP info: https://github.com/Jigsaw-Code/outline-server/pull/1213. I believe this is now fixed.

fortuna avatar Nov 23 '22 01:11 fortuna