Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't access instance via public IP after successful install #59

Closed
orhanmaden opened this issue Mar 5, 2021 · 5 comments
Closed

Can't access instance via public IP after successful install #59

orhanmaden opened this issue Mar 5, 2021 · 5 comments

Comments

@orhanmaden
Copy link

Describe the bug
Can't access instance via public IP after successful install

To Reproduce
Steps to reproduce the behavior:

  1. Create a Digital Ocean droplet with a Debian 10 x64 instance with 4 GB / 2 CPUs, 80 GB SSD Disk and 4 TB transfer
  2. Install curl: sudo apt install curl -y
  3. Download script: curl -s https://api.github.com/repos/tmiland/Invidious-Updater/releases/latest | grep "browser_download_url.*sh" | cut -d : -f 2,3 | tr -d \" | wget -qi -
  4. Set permissions: chmod +x invidious_update.sh
  5. Run script: ./invidious_update.sh
  6. Set advanced options:
    image
  7. Let the script run to success:
    image

Expected behavior
Instance is accessible via the IP address. Unfortunately that is not the case:
image
image

Screenshots
Added above

Desktop (please complete the following information):

  • OS: Debian 10 x64
  • Browser: Chrome v88.0.4324.190

Additional info
The instance is removed to prevent costs

@tmiland
Copy link
Owner

tmiland commented Mar 5, 2021

Hello,

seems like port 80 is blocked in your firewall.

@orhanmaden
Copy link
Author

Thanks for the quick response. I did the following to tackle the potential issue.

Installed ufw: apt install ufw -y
Enabled it: ufw enable
Allowed traffic through port 80: ufw allow http
Checked status: ufw status verbose
Output:

Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
80/tcp                     ALLOW IN    Anywhere
80/tcp (v6)                ALLOW IN    Anywhere (v6)

It it still not accessible from the public IP. Am I missing something?

@tmiland
Copy link
Owner

tmiland commented Mar 5, 2021

I haven't tested a setup like this, so i cannot tell unfortunately.

However, you could set it up to run like this:

✔ branch        : master
✔ domain        : invidious.tube
✔ ip address    : your_droplet_public_ip
✔ port          : 3000
✔ external port : 443
✔ dbname        : invidious
✔ dbpass        : secretpassword
✔ https only    : true

Then use option 9 to setup Nginx. Just go through step 1-3.

It will then serve invidious from port 3000 reverse proxied to port 443 (https) 👍

Make sure port 443 is open in your firewall.

This is how it's expected to be run on a public IP.

@orhanmaden
Copy link
Author

I tried your suggestion and that didn't work. After fiddling for a day I got it working with the following configuration

image

And than the channels gave an error. I give up for now

@tmiland
Copy link
Owner

tmiland commented Mar 5, 2021

Sorry to hear it didn't work out.

The channel error is a bug with invidious: iv-org/invidious#1838

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants