The page isn’t redirecting properly

Because I cannot setup Wasabi cloud storage. And it seems other people can upload to Wasabi. So I am trying to create new peertube instance, and see if I can connect Wasabi from the new instance.

I have tried to install peertube more than 10 times. But it all ends « The page isn’t redirecting properly ».

I have followed the instructions here. I also followed docs here.

All installation failed.

1. nginx status

nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2023-07-31 02:12:49 UTC; 14min ago
       Docs: man:nginx(8)
   Main PID: 7527 (nginx)
      Tasks: 67 (limit: 4571)
     Memory: 8.2M
        CPU: 71ms
     CGroup: /system.slice/nginx.service
             ├─7527 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on>
             ├─7599 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ">
             └─7600 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ">

Jul 31 02:12:49 localhost systemd[1]: Starting A high performance web server and a reverse>
Jul 31 02:12:49 localhost systemd[1]: Started A high performance web server and a reverse >
Jul 31 02:12:49 localhost systemd[1]: Reloading A high performance web server and a revers>
Jul 31 02:12:49 localhost systemd[1]: Reloaded A high performance web server and a reverse>
  1. peertube status
/peertube# sudo systemctl start peertube
root@localhost:/var/www/peertube# sudo systemctl status peertube
● peertube.service - PeerTube daemon
     Loaded: loaded (/etc/systemd/system/peertube.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2023-07-31 02:26:17 UTC; 28s ago
   Main PID: 7801 (peertube)
      Tasks: 11 (limit: 4571)
     Memory: 218.5M
        CPU: 4.770s
     CGroup: /system.slice/peertube.service
             └─7801 peertube "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""

Jul 31 02:26:21 localhost peertube[7801]: It is highly recommended to use a minimum Redis >
Jul 31 02:26:21 localhost peertube[7801]:            Current: 6.0.16
Jul 31 02:26:21 localhost peertube[7801]: It is highly recommended to use a minimum Redis >
Jul 31 02:26:21 localhost peertube[7801]:            Current: 6.0.16
Jul 31 02:26:21 localhost peertube[7801]: It is highly recommended to use a minimum Redis >
Jul 31 02:26:21 localhost peertube[7801]:            Current: 6.0.16
Jul 31 02:26:21 localhost peertube[7801]: It is highly recommended to use a minimum Redis >
Jul 31 02:26:21 localhost peertube[7801]:            Current: 6.0.16
Jul 31 02:26:21 localhost peertube[7801]: [tv.hrjh.tk:443] 2023-07-31 02:26:21.655 info: H>
Jul 31 02:26:21 localhost peertube[7801]: [tv.hrjh.tk:443] 2023-07-31 02:26:21.656 info: W>
  1. nginx -T
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

I can see the " Welcome to nginx!" message before installing peertube.

I tried to install v.5.1.0, which ends with same result:« The page isn’t redirecting properly ».

Because I have installed v.5.2.0 a few days ago, but cannot install another instance now.

I don’t have a lot of knowledge or experience with setup servers, nor do I know a lot about coding. Because there are a lot of restriction for publish videos in my country, that’s why I am trying to install a peertube site with connection to wasabi cloud storage. And hopefully, this will be a chance to people to be able to communicate.

This is my personal project, and I have a tight budget. I wish to have things up and running soon.

Will someone please help me with installing Peertube. I want to know how to install Peertube. I believe there will be a huge need for using Peertube in the near future.

Sorry that I have post a lot of topic in this forum. :zipper_mouth_face:
Thanks for your attention. :sunflower:

Just wondering I use the same domain to install peertube, would it lead to " The page isn’t redirecting properly" problem?

I followed this instruction(this help me to install my first peertube site: o8o.icu), installed again using a new domain(huarenjiaohui.org:443).

Now it’s the same issue: The page isn’t redirecting properly

I following these guide: Dependencies and Installation , and installed another instance on https://1.huarenjiaohui.org/

Still showing the same issue: The page isn’t redirecting properly

I am stuck. :face_with_raised_eyebrow:

Hard to follow with all your messages on this forum.

When trying to request your domain:

$ curl -v https://huarenjiaohui.org/
*   Trying 2a06:98c1:3120::2:443...
* Connected to huarenjiaohui.org (2a06:98c1:3120::2) port 443 (#0)
* [...] 
< date: Tue, 01 Aug 2023 07:53:38 GMT
< content-type: text/html
< location: https://huarenjiaohui.org/
< cf-cache-status: DYNAMIC
< report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=IAZUh9jI2S3BgJdri3WxJS97T2eUu54Ihxv9CSjQYQXZ9ayFen0b3h%2BMlgycw0ViYZRMqgwWNfuN2PlIvNMuXh5de%2F7YwCh9cF%2FWcnMp1PSyXPPVUtwtOw7a%2BCAqxrxcnfvpaIe3OjslFM6oVISM%2Fw%3D%3D"}],"group":"cf-nel","max_age":604800}
< nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
< server: cloudflare
< cf-ray: 7efc822ed93a2a05-CDG
< alt-svc: h3=":443"; ma=86400
< 
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.18.0 (Ubuntu)</center>
</body>
</html>

As you can see, the page https://huarenjiaohui.org/ redirect to… it self (see the location header`).

Maybe the issue is not on Peertube… But on Cloudflare (which respond to the resquest).
Check your Cloudflare setup, or remove it.

If the issue is not on Cloudflare, then you probably have a configuration error in your nginx sites. Check that you don’t have any old file in /etc/nginx/sites-enabled, and compare your /etc/nginx/sites-enabled/peertube file with the one provided by Peertube.

1 « J'aime »

Thank you very much!! :sunflower: :bouquet: Yes. I have removed the DNS records on Cloudflare. And now it shows that my peertube installation works.

Updates: Thanks to @mui’s post, my site is accessible now with cloudflare proxy.