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

Error Cannot retrieve OAuth Client credentials (Yet again, I know) #6828

Open
fongaboo opened this issue Jan 11, 2025 · 1 comment
Open

Error Cannot retrieve OAuth Client credentials (Yet again, I know) #6828

fongaboo opened this issue Jan 11, 2025 · 1 comment
Labels
Status: Waiting for answer Waiting issue author answer

Comments

@fongaboo
Copy link

fongaboo commented Jan 11, 2025

Describe the current behavior

When browsing to our dev instance of PeerTube at https://dev.wtfayla.com:16643, we get the oft-occurring error message in the bottom right of the browser window stating the following:

OAuthError_2025-01-11_1-18-47

Error Cannot retrieve OAuth Client credentials: Getting client tokens for host dev.wtfayla.com is forbidden. Ensure you have correctly configured PeerTube (config/ directory), in particular the "webserver" section.

This also appears in journalctl (see attached).

Running Peertube and NGINX on a Ubuntu 22.04 server. Server has two NICs:

  1. WAN-facing: 50.75.172.138 (dev.wtfayla.com)
  2. LAN-facing: 192.168.1.166

NGINX is bound to 50.75.172.138 on TCP port 16643

We've seen many posts regarding this, but we think we've atomized it a bit more. We have two scenarios:

FIRST SCENARIO:

`listen:
hostname: '127.0.0.1'
port: 9000

https: true
hostname: 'dev.wtfayla.com'
port: 16643`

Browse to https://dev.wtfayla.com:16643: ERROR


SECOND SCENARIO:

`listen:
hostname: '192.168.1.166'
port: 9000

https: false
hostname: '192.168.1.166'
port: 9000`

Browse to http://192.168.1.166:9000 (from LAN): NO ERROR

Steps to reproduce

  1. NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run update-host
  2. systemctl restart peertube.service nginx.service
  3. visit https://dev.wtfayla.com:16643

Describe the expected behavior

  • OAuth error should not pop up
  • Should be able to log in with (peertube) root password

Additional information

journalctl.txt
peertube.conf.txt
production.yaml.txt

@Chocobozzz
Copy link
Owner

Hi,

Did you try this patch on your nginx config? 6a03b50

@Chocobozzz Chocobozzz added the Status: Waiting for answer Waiting issue author answer label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Waiting for answer Waiting issue author answer
Projects
None yet
Development

No branches or pull requests

2 participants