• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Solved ERR_TOO_MANY_REDIRECTS

Status
Not open for further replies.

P4sca1

New Member
Hello,
I successfully installed the music bot (at least it is starting with no errors).
The problem is now, when I try to connect to the webinterface, then it says
ERR_TOO_MANY_REDIRECTS

I hope anybody can help me,
Regards Pascal
 

P4sca1

New Member
Oh, I'm using the latest version of the bot and I'm on debian 8.1.
Tested with Google Chrome and Microsoft Edge
 

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
Oh, I'm using the latest version of the bot and I'm on debian 8.1.
Tested with Google Chrome and Microsoft Edge

Have you tried to delete the browser cache?

Next Please set @config.ini LogLevel = 10 and paste your complete Logs.
 

P4sca1

New Member
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
_____ ___ _______ _ _ _
|_ _/ __|__ / __| ___ _ _ _ _ __| | |__ ___ __ _ _ _ __| |
| | \__ \|_ \__ \/ _ \ || | ' \/ _` | '_ \/ _ \/ _` | '_/ _` |
|_| |___/___/___/\___/\_,_|_||_\__,_|_.__/\___/\__,_|_| \__,_|

(C) 2013-2015 Michael Friese. All rights reserved.

2015/09/21 18:29:41 0651b49e INFO Initializing bot://0651b49e-0bb8-4a7b-b574-0e9db5550aa6
2015/09/21 18:29:41 0651b49e DEBUG Got user://9c4a3efa-7598-43fe-9494-b33e289c5d54/admin
2015/09/21 18:29:41 0651b49e 2775d435 INFO Loaded
2015/09/21 18:29:41 FFmpeg/avcodec v3675236; license: LGPL version 2.1 or later; 494 codecs
2015/09/21 18:29:41 FFmpeg/avformat v3674980; license: LGPL version 2.1 or later; 139 formats
2015/09/21 18:29:41 youtube-dl checking...

The VNC desktop is: localhost:0
PORT=5900
2015/09/21 18:29:42 youtube-dl version compatible, support enabled
2015/09/21 18:29:42 RadioStation data loaded
2015/09/21 18:29:42 Imported radio stations
 

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
Hey,

Code:
xuxe@ubuntu:~$ curl --head http://musik.einfach-gmod.de
HTTP/1.1 302 Found
Date: Mon, 21 Sep 2015 17:07:04 GMT
Server: Apache/2.4.10 (Debian)
Set-Cookie: wcf21_cookieHash=0e69145fca6594e5465b6520e5d81ea5ba2d64be; path=/; domain=einfach-gmod.de; HttpOnly
Location: http://musik.einfach-gmod.de/?s=0e69145fca6594e5465b6520e5d81ea5ba2d64be
Content-Type: text/html; charset=UTF-8

xuxe@ubuntu:~$ curl --head http://151.80.108.148:8087/
HTTP/1.1 302 Found
Date: Mon, 21 Sep 2015 17:03:22 GMT
Server: Apache/2.4.10 (Debian)
Set-Cookie: wcf21_cookieHash=a87156eaa09970cfe0e2fd5e7e2ba02e46961a50; path=/; domain=einfach-gmod.de; HttpOnly
Location: http://151.80.108.148:8087/?s=a87156eaa09970cfe0e2fd5e7e2ba02e46961a50
Content-Type: text/html; charset=UTF-8

Code:
-- // THIS IS MY BOT NO APACHE HERE \\ --
xuxe@ubuntu:~$ curl --head http://192.168.246.128:8087/
HTTP/1.1 405 Method Not Allowed
Content-Type: text/plain; charset=utf-8
Date: Mon, 21 Sep 2015 17:03:23 GMT
Content-Length: 19

--

Hey, it looks like there is Apache (mod_proxy) or the same active ... Have you already tried the bot directly address without a reverse proxy?
Possibly there is a setting error of the proxy.
 

P4sca1

New Member
Could it be that it is a mistake with my apach2 config?
Here's my ports.conf
Code:
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf

Listen 80
Listen 8087
<IfModule ssl_module>
        Listen 443
</IfModule>

<IfModule mod_gnutls.c>
        Listen 443
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

and here's the vhost I created for the bot:
Code:
<VirtualHost *:8087>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        ServerName musik.einfach-gmod.de

        ServerAdmin [email protected]
        DocumentRoot /var/www/html

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
 

flyth

is reticulating splines
Staff member
Developer
Contributor
Nimm den VirtualHost mal bitte komplett raus. Sowas bräuchtest du nur wenn du 'nen Reverse-Proxy nutzen willst.
Danach Restart des Apache und danach Restart des Bots. Der Bot hat einen eigenen HTTP-Server integriert. Stand ja dazu auch nix in der Anleitung :)
 

P4sca1

New Member
Der VHosst ist gelöscht und Bot und Apache neu gestartet.
Jetzt komme ich folgenden Fehler:

ERR_CONNECTION_REFUSED

Code:
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
  _____ ___ _______                   _ _                      _
 |_   _/ __|__ / __| ___ _  _ _ _  __| | |__  ___  __ _ _ _ __| |
   | | \__ \|_ \__ \/ _ \ || | ' \/ _` | '_ \/ _ \/ _` | '_/ _` |
   |_| |___/___/___/\___/\_,_|_||_\__,_|_.__/\___/\__,_|_| \__,_|

               (C) 2013-2015 Michael Friese. All rights reserved.

2015/09/21 19:50:16 0651b49e INFO   Initializing bot://0651b49e-0bb8-4a7b-b574-0e9db5550aa6
2015/09/21 19:50:16 0651b49e DEBUG  Got user://9c4a3efa-7598-43fe-9494-b33e289c5d54/admin
2015/09/21 19:50:16 0651b49e 2775d435 INFO   Loaded
2015/09/21 19:50:16 FFmpeg/avcodec v3675236; license: LGPL version 2.1 or later; 494 codecs
2015/09/21 19:50:16 FFmpeg/avformat v3674980; license: LGPL version 2.1 or later; 139 formats
2015/09/21 19:50:16 youtube-dl checking...

The VNC desktop is:      localhost:0
PORT=5900
2015/09/21 19:50:17 youtube-dl version compatible, support enabled
2015/09/21 19:50:17 RadioStation data loaded
2015/09/21 19:50:17 Imported radio stations
 

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
Hast du den Bot bereits neugestartet?
 

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
Paste doch mal bitte deine config.ini :)
 

CrAazZyMaN21

Donor
is awesome!
Meine Apache2 Conf

Code:
<VirtualHost *:80>
    ServerName ts.example.com
    ProxyPreserveHost On
    ProxyRequests Off
    ProxyVia Off
    ProxyPass        /favicon.ico !
    ProxyPass / http://127.0.0.1:8087/
    ProxyPassReverse / http://127.0.0.1:8087/
</VirtualHost>
 

P4sca1

New Member
Code:
TS3Path = "/home/musik/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"
ListenHost = "127.0.0.1"
DataDir = ""
ListenPort = 8087
LocalPlayback = false
SecretKey = [1, 0, 137, 241, 205, 3, 117, 94, 178, 102, 254, 110, 10, 129, 140,$
Debug = true
LogLevel = 10
EnableProfiler = false
YoutubeDLPath = "/usr/local/bin/youtube-dl"
EnableDebugConsole = true
UploadLimit = 83886080
RunAsUser = 0
RunAsGroup = 0
InstanceActionLimit = 6
 

flyth

is reticulating splines
Staff member
Developer
Contributor
Sorry that I switched to German... too many context switches ;)
There's no Debug-setting afaik. Why do people always have to change stuff they're not supposed to and then don't tell us about that in the first place *g*
The defaults are there for a reason^^
 

P4sca1

New Member
Jetzt klappt es, danke! :)
Kann mir jemand sagen, wie ich meine subdomain musik.einfach-gmod.de nun direkt auf Port 8087 weiterleite (Apache2)?
Danke schonmal !
 

CrAazZyMaN21

Donor
is awesome!
Meine Apache2 Conf

Code:
<VirtualHost *:80>
    ServerName ts.example.com
    ProxyPreserveHost On
    ProxyRequests Off
    ProxyVia Off
    ProxyPass        /favicon.ico !
    ProxyPass / http://127.0.0.1:8087/
    ProxyPassReverse / http://127.0.0.1:8087/
</VirtualHost>
So geht es bei mir.
 
Status
Not open for further replies.
Top