prawnsalad / KiwiIRC

This is **DEPRECATED**! Please go to https://github.com/kiwiirc/kiwiirc
https://kiwiirc.com
GNU Affero General Public License v3.0
891 stars 277 forks source link

KiwiIRC does not connect #926

Closed Ddjay closed 7 years ago

Ddjay commented 7 years ago

Hello,

I installed KiwiIRC (SSL enabled and reverse proxy behind Apache web server) with the help of your documentation (https://kiwiirc.com/docs/installing)

I can see the client at the URL I want, but it does not connect.

In the console I get these lines :

[Log] _kiwi.gateway.socket.on('open') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('reconnecting') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('close') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('open') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('reconnecting') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('close') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('open') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('reconnecting') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('close') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('open') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('reconnecting') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('close') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('open') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('reconnecting') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('close') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('open') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('reconnecting') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('close') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('open') (kiwi.min.js, line 1)
[Log] _kiwi.gateway.socket.on('reconnecting') (kiwi.min.js, line 1)

... and many many more.

AND

[Error] Failed to load resource: the server responded with a status of 400 (Bad Request) (transport, line 0)
[Error] Failed to load resource: the server responded with a status of 400 (Bad Request) (transport, line 0)
[Error] Failed to load resource: the server responded with a status of 400 (Bad Request) (transport, line 0)

BUT if I use the client at http://localhost:7778/ -> no error!

anyone can help me ?

thanks a lot!

Ddjay commented 7 years ago

When I launch ./kiwi -f

I get :

info: Unlisted proxy: 212.83.xxx.71
info: Unlisted proxy: 212.83.xxx.71
info: Unlisted proxy: 212.83.xxx.71

Here is my domain.conf:

<VirtualHost 212.83.xxx.71:443>
        ServerAdmin staff@xxxxxxx.fr
        ServerName xxxxxxx.fr
        DocumentRoot /home/xxxxxxx/web/https/
        ServerAlias www.xxxxxxx.fr

        <Directory /home/xxxxxxx/web/https/>
                Options FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
                Header Set Access-Control-Allow-Origin "*"
        </Directory>

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

        SSLEngine on
        SSLCertificateFile /etc/letsencrypt/live/xxxxxxx.fr/fullchain.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/xxxxxxx.fr/privkey.pem
        SSLProxyEngine on

        ProxyVia On
        ProxyRequests Off
        ProxyPass /tchat https://www.xxxxxxx.fr:7778/tchat
        ProxyPassReverse /tchat https://www.xxxxxxx.fr:7778/tchat
        ProxyPreserveHost on
</VirtualHost>
Ddjay commented 7 years ago

Solved !

I just had to do this :

Make sure to whitelist any proxy servers! This is done by adding the address of your proxy connections to conf.http_proxies in your config.js. Any unlisted connections attempting to specify the clients real-ip will be forcefully rejected.

I leave my issue here, maybe it can help others. ;-)

wilcoxm commented 7 years ago

@Ddjay please close your solved issue.

Ddjay commented 7 years ago

Done! Thanks for this reminder @miwilc ! 😉

kn1ghht commented 2 years ago

help me and error:

kiwiirc daemon failed to start: Module '/home/unired/KiwiIRC/server/kiwi.js' stopped unexpected