• If you need help or want to discuss things, you now can also join us on our Discord Server!

Solved The bot could not connect - Error 1797

Finn Kranzosch

New Member
System information:
SinusBot version: 1.0.0-beta.10-202ee4d
TS-Client version (SinusBot): 3.3.2
TS-Server version: 3.11.0
OS: Ubuntu 18.04.4

Both the SinusBot and the TeamSpeak Server are running inside docker. I can connect to other teamspeak servers but not to mine. But the TeamSpeak server is up and running and other clients can connect to it.

Some more information from the diagnostic script:

Code:
==========================================================
SINUSBOT RELATED
SYSTEM INFORMATION
- Operating System: Debian GNU/Linux 10 (buster) (Docker)
- Kernel: Linux 4.15.0-70-generic x86_64
- Load Average: 0.40 0.21 0.19
- Uptime: 20 days, 6 hours, 50 minutes, 49 seconds
- OS x64 check: OK
- OS Updates: 11 (updates available!)
- OS Missing Packages: None
- OS APT Last Update: 03.02.2020 16:46:59 UTC +00:00:00
- Shell Locale: (not set)
- Bot Start Script: not found
- CPU:
    Architecture:        x86_64
    CPU(s):              4
    Thread(s) per core:  1
    Core(s) per socket:  4
    Socket(s):           1
    Model name:          Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz
    CPU MHz:             2199.996
    Hypervisor vendor:   KVM
    Virtualization type: full
- RAM: 6.93 GB/7.78 GB in use (89%)
- SWAP: 1.69 GB/1.99 GB in use (84%)
- DISK: 13.02 GB/194.94 GB in use (6%)
- Package versions:
   - libglib: 2.58.3-2+deb10u2
BOT INFORMATION
- Status: running (PIDs: 15, User: root)
- Webinterface: port locally reachable (Port: 8087)
- Binary: /opt/sinusbot/sinusbot
- Binary Info: MD5 Hash: 224b687db910b732fe5a7cfec4f6c78e, Perms: 755, User: root
- Version: 1.0.0-beta.10-202ee4d
- TS3 Plugin: installed (md5 hash match)
   - Bot Plugin: aa483aea105cb62033392b1ce6d317ab
   - TS3 Client: aa483aea105cb62033392b1ce6d317ab
- Config:
   - LogLevel = 10 (debug log active)
   - TS3Path = /opt/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64 (Version 3.3.2)
   - YoutubeDLPath = /usr/local/bin/youtube-dl (does exist, version: 2020.01.24)
- Installed scripts: advertising.js; alonemode.js; bookmark.js; command.js; followme.js; norecording.js; rememberChannel.js; sinusbot-commands.js; welcome.js
BOT TECHNICAL INFORMATION
- File exists:
   - TS3Client/libqxcb-glx-integration.so: no
- LDD output:
    linux-vdso.so.1 (0x00007fffedea8000)
    libswresample.so.2 => /opt/sinusbot/libswresample.so.2 (0x00007f63e8edb000)
    libavfilter.so.6 => /opt/sinusbot/libavfilter.so.6 (0x00007f63e8b83000)
    libavformat.so.57 => /opt/sinusbot/libavformat.so.57 (0x00007f63e8782000)
    libavcodec.so.57 => /opt/sinusbot/libavcodec.so.57 (0x00007f63e7e1d000)
    libavutil.so.55 => /opt/sinusbot/libavutil.so.55 (0x00007f63e7ba9000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f63e7b9f000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f63e7a1a000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f63e79f9000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f63e7875000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f63e785b000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f63e769a000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f63e747c000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f63e7470000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f63e90f7000)
REACHABILITY CHECKS
- HTTPS check with IPv4 mode: SUCCESS [Connection established to www.sinusbot.com, CODE #200]
- HTTPS check with IPv6 mode: IGNORED [Disabled]
- DNS resolution check: SUCCESS [www.sinusbot.com resolved to 104.28.14.74]
- Update server checks:
    update01.sinusbot.com -> 104.28.14.74: SUCCESS [CODE #404]
    update02.sinusbot.com -> 104.28.14.74: SUCCESS [CODE #404]
    update03.sinusbot.com -> 104.28.14.74: SUCCESS [CODE #404]
TIME INFORMATION
- Time (local): 03.02.2020 16:47:38 UTC +00:00:00
- Time (remote): <Failed retrieving remote time!>
- Time (difference): n/a secs
- Timezone: Etc/UTC
OTHER INFORMATION
- TeamSpeak3 Version: 3.3.2
- youtube-dl Version: 2020.01.24
- DiagScript Version: 0.8.0
==========================================================

As I try to start the SinusBot I always get the Error 1797 as seen in the Instance Log:

2020-02-03T19:10:23+01:00 eof from data
2020-02-03T19:10:23+01:00 closing channels
2020-02-03T19:10:23+01:00 eof from voice
2020-02-03T19:10:22+01:00 TSClient quit.
2020-02-03T19:10:22+01:00 Closed.
2020-02-03T19:10:22+01:00 TS>libpng warning: iCCP: known incorrect sRGB profile
2020-02-03T19:10:22+01:00 TS>QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
2020-02-03T19:10:22+01:00 TS>QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
2020-02-03T19:10:22+01:00 TS>QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
2020-02-03T19:10:22+01:00 TS>qt.qpa.xkeyboard: no keyboard layouts with latin keys present
2020-02-03T19:10:22+01:00 TS>QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
2020-02-03T19:10:21+01:00 New connection status 0; Error 1797
2020-02-03T19:10:21+01:00 The bot could not connect. This might have several reasons: the server doesn't exist at that address, the server password is wrong, the default channel doesn't exist, the bot has been banned, the server is an illegal installation, the password is wrong, the security level of your identity is too low, the nickname is too short or too long or the server does not allow the version of the client you are using. See our Wiki / Forums for more help.
2020-02-03T19:10:21+01:00 TS |INFO |ClientUI |1 |Failed to connect to server, want autoreconnect = 0
2020-02-03T19:10:21+01:00 TS |INFO |ClientUI |1 |Connect status: Disconnected
2020-02-03T19:10:18+01:00 Storing configuration.
2020-02-03T19:10:16+01:00 TS |INFO |TSDNS | |No TSDNS found
2020-02-03T19:10:16+01:00 TS |INFO |TSDNS | |TSDNS queried unsuccessfully <MY-IP>:41144
2020-02-03T19:10:16+01:00 TS |INFO |TSDNS | |A/AAAA DNS resolve for possible TSDNS successful, "<MYTSDOMAIN>.de" =(h: <MY-IP> p:0)
2020-02-03T19:10:16+01:00 New connection status 1; Error 0
2020-02-03T19:10:16+01:00 TS |DEVELOP |PktHandler | |Puzzle solve time: 4
2020-02-03T19:10:16+01:00 TS |INFO |ClientUI |1 |Connect status: Connecting
2020-02-03T19:10:16+01:00 TS |INFO |PreProSpeex |1 |Speex version: 1.2rc1
2020-02-03T19:10:16+01:00 TS |INFO |ClientUI |1 |Initiating connection: <MY-IP>:9987
2020-02-03T19:10:16+01:00 TS |INFO |ClientUI |1 |Resolve successful: <MY-IP>:9987
2020-02-03T19:10:16+01:00 TS |INFO |ClientUI |1 |Lookup finished: ip=<MY-IP> port=9987 query=<MYTSDOMAIN>.de error=0
2020-02-03T19:10:16+01:00 TS |INFO |TSDNS | |A/AAAA DNS resolve successful, "<MYTSDOMAIN>.de" =(h: <MY-IP> p:0)
2020-02-03T19:10:16+01:00 TS |INFO |TSDNS | |SRV DNS resolve successful, "_ts3._udp.<MYTSDOMAIN>.de" =(h: <MYTSDOMAIN>.de p:9987)
2020-02-03T19:10:16+01:00 TS |INFO |TSDNS | |A/AAAA DNS resolve successful, "<MYTSDOMAIN>.de" =(h: <MY-IP> p:0)
2020-02-03T19:10:15+01:00 TS |INFO | | |Statistics report: Not yet, next report on Mon Feb 10 16:16:30 2020
2020-02-03T19:10:15+01:00 TS |INFO |ClientUI | |Last update check was: Sat Jan 1 00:00:01 2022
2020-02-03T19:10:15+01:00 TS |INFO |Bookmarks | |Collecting autoconnect bookmarks
2020-02-03T19:10:15+01:00 TS |INFO |TSDNS | |SRV DNS resolve unsuccessful, "_tsdns._tcp.<MYTSDOMAIN>.de" Domain name not found
2020-02-03T19:10:15+01:00 TS |INFO |ClientUI |1 |Trying to resolve <MYTSDOMAIN>.de
2020-02-03T19:10:15+01:00 TS |INFO |ClientUI |1 |Connect to server: <MYTSDOMAIN>.de
2020-02-03T19:10:15+01:00 TS |INFO |ClientUI | |ts3server: <MYTSDOMAIN>.de?port=9987&nickname=SinusBot&password=&channel=&channelpassword=
2020-02-03T19:10:15+01:00 TS |INFO |ClientUI | |Using configuration location: /opt/sinusbot/data/ts3/597c8487-d12f-400d-9ad6-1a29f5a75bee/adae91af-485d-4536-ad46-f9c0f0e4c202/settings.db
2020-02-03T19:10:15+01:00 TS |INFO |ClientUI | |Qt version: 5.12.1
2020-02-03T19:10:15+01:00 TS |INFO |ClientUI | |Failed to init text to speech engine
2020-02-03T19:10:15+01:00 TS |INFO | | |*** Time [INIT]: 455
2020-02-03T19:10:15+01:00 TS |INFO | | |*** Time [MAINWINDOW]: 455
2020-02-03T19:10:15+01:00 TS>ClientQueryPlugin: currentServerConnectionChanged 1 (0)
2020-02-03T19:10:14+01:00 TS |INFO |Plugins | |Loading plugin: libsoundbot_plugin.so
2020-02-03T19:10:14+01:00 TS |INFO |Query | |listening on 127.0.0.1:25639
2020-02-03T19:10:14+01:00 TS |INFO |Plugins | |Loading plugin: libclientquery_plugin_linux_amd64.so
2020-02-03T19:10:14+01:00 TS |INFO |Addons | |Checking for addon updates...
2020-02-03T19:10:14+01:00 TS |INFO | | |*** Time [ICONMANGER]: 284
2020-02-03T19:10:14+01:00 TS |INFO | | |successfully downloaded revocation list for myteamspeak id
2020-02-03T19:10:14+01:00 TS |INFO | | |successfully downloaded revocation list for accounting
2020-02-03T19:10:14+01:00 TS |ERROR |RevocationListCache| |Failed to import revocation list from cache
2020-02-03T19:10:14+01:00 TS |INFO |ClientUI | |Unable to create an Open GL context.
2020-02-03T19:10:14+01:00 TS |ERROR |SoundBckndIntf| |libpulse.so.0: cannot open shared object file: No such file or directory
2020-02-03T19:10:14+01:00 TS |INFO | | |Using hardware aes
2020-02-03T19:10:14+01:00 TS |INFO | | |SystemInformation: Linux 4.15.0-70-generic #79-Ubuntu SMP Tue Nov 12 10:36:11 UTC 2019 x86_64 Binary: 64bit
2020-02-03T19:10:14+01:00 TS |INFO | | |TeamSpeak Client 3.3.2 (2019-08-25 21:13:34)
2020-02-03T19:10:14+01:00 TS>DUMP defined! Dumpdir is: /opt/sinusbot/data/ts3/597c8487-d12f-400d-9ad6-1a29f5a75bee/adae91af-485d-4536-ad46-f9c0f0e4c202/crashdumps
2020-02-03T19:10:14+01:00 TS>Crashdump ENABLED, directory is: /opt/sinusbot/data/ts3/597c8487-d12f-400d-9ad6-1a29f5a75bee/adae91af-485d-4536-ad46-f9c0f0e4c202/crashdumps
2020-02-03T19:10:14+01:00 Starting instance ts3server://berlin-fn.de?port=9987&nickname=SinusBot&password=&channel=&channelpassword=
2020-02-03T19:10:14+01:00 Could not insert into FileTransfer-Tableno such table: FileTransfer
2020-02-03T19:10:14+01:00 Could not delete from FileTransferno such table: FileTransfer
2020-02-03T19:10:14+01:00 Could not insert into FileTransfer-Tableno such table: FileTransfer
2020-02-03T19:10:14+01:00 Could not delete from FileTransferno such table: FileTransfer
2020-02-03T19:10:14+01:00 Could not insert into FileTransfer-Tableno such table: FileTransfer
2020-02-03T19:10:14+01:00 Could not delete from FileTransferno such table: FileTransfer
2020-02-03T19:10:14+01:00 Could not insert into FileTransfer-Tableno such table: FileTransfer
2020-02-03T19:10:14+01:00 Could not delete from FileTransferno such table: FileTransfer
2020-02-03T19:10:14+01:00 Could not insert into FileTransfer-Tableno such table: FileTransfer
2020-02-03T19:10:14+01:00 Could not delete from FileTransferno such table: FileTransfer
2020-02-03T19:10:14+01:00 Could not insert into FileTransfer-Tableno such table: FileTransfer
2020-02-03T19:10:14+01:00 Could not delete from FileTransferno such table: FileTransfer
2020-02-03T19:10:14+01:00 Could not create Notifications-Tabletable Notifications already exists
2020-02-03T19:10:14+01:00 Could not create WhisperReceive-Tabletable WhisperReceive already exists
2020-02-03T19:10:14+01:00 Could not create Chat-Tabletable Chat already exists
2020-02-03T19:10:14+01:00 About to run.
2020-02-03T19:10:14+01:00 Prespawn.

2020-02-03T17:22:48+01:00 Loading instance://7f8aaf40-9b49-4ed6-8565-7802ce99ac1c
2020-02-03T17:22:48+01:00 Loading instance://adae91af-485d-4536-ad46-f9c0f0e4c202
2020-02-03T17:22:48+01:00 Loading instances

TS3Path = "/opt/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"
ListenHost = "0.0.0.0"
DataDir = "/opt/sinusbot/data/"
ListenPort = 8087
LocalPlayback = false
EnableLocalFS = false
MaxBulkOperations = 300
LogLevel = 10
EnableProfiler = false
YoutubeDLPath = "/usr/local/bin/youtube-dl"
EnableDebugConsole = false
EnableInternalCommands = false
AllowStreamPush = false
UploadLimit = 83886080
RunAsUser = 0
RunAsGroup = 0
ExternalFileBase = ""
InstanceActionLimit = 6
UseSSL = false
SSLKeyFile = ""
SSLCertFile = ""
Hostname = ""
HostnameMask = ""
SampleInterval = 60
StartVNC = false
EnableWebStream = false
LogFile = ""
LicenseKey = "rY+pWkENq3ZnHdzAPTHI8Bo5VYzbY/pJ6SY4Zp2ACXI="
IsProxied = false
DenyStreamURLs = []
Pragma = 0
UserAgent = ""

[YoutubeDL]
BufferSize = 524288
MaxDownloadSize = 419430400
MaxDownloadRate = 104857600
MaxSimultaneousChunkDownloads = 6
CacheStreamed = false
TimeoutSingleDownloader = 0
TimeoutMultiDownloader = 0
ChunkSize = 3145728

[TS3]
AvatarMaxWidth = 0
AvatarMaxHeight = 0
AllowGIF = false

[StreamRewrites]

[Scripts]
Debug = false
AllowReload = false
EnableTimer = false
DisableLegacyEvents = false
DevMode = false
ScriptTimeout = 5

[Themes]
Default = ""

[SpeechRecognition]
Enable = false

[FFmpeg]
UserAgent = "SinusBot (1.0.0-beta.10-202ee4d)"
WaitTime = 0

[DAV]
Enable = false

[XServer]
Delay = 0
Debug = false

[SHMem]
Enable = false
Size = 0
Delay = 0
Interval = 0

[RadioStations]
URL = ""
UpdateInterval = 0

[TTS]
Enabled = false

[[TTS.Modules]]
Locale = "en-US"
Filename = "voice_lstm_en-US.zvoice"
PipelineFile = "voice_lstm_en-US/sfg/pipeline"
Prefix = "voice_lstm_en-US/sfg/"
Instances = 2

[[TTS.Modules]]
Locale = "de-DE"
Filename = "voice_lstm_de-DE.zvoice"
PipelineFile = "voice_lstm_de-DE/nfh/pipeline"
Prefix = "voice_lstm_de-DE/nfh/"
Instances = 2

My docker-compose files for setting up the sinusbot and teamspeak server:
YAML:
version: "3"
services:
sinusbot:
   image: sinusbot/docker
   restart: always
   volumes:
    - ./scripts:/opt/sinusbot/scripts
    - ./data:/opt/sinusbot/data
   networks:
    - myNetwork

networks:
myNetwork:
  external: true
YAML:
version: '3.1'
services:
  teamspeak:
    image: teamspeak
    restart: always
    ports:
      - 9987:9987/udp
      - 10011:10011
      - 30033:30033
    environment:
      TS3SERVER_DB_PLUGIN: ts3db_mariadb
      TS3SERVER_DB_SQLCREATEPATH: create_mariadb
      TS3SERVER_DB_HOST: db
      TS3SERVER_DB_USER: root
      TS3SERVER_DB_PASSWORD: <PASSWORD>
      TS3SERVER_DB_NAME: teamspeak
      TS3SERVER_DB_WAITUNTILREADY: 30
      TS3SERVER_LICENSE: accept
    networks:
     - myNetwork
  db:
    image: mariadb
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: <PASSWORD>
      MYSQL_DATABASE: teamspeak
    networks:
     - myNetwork
networks:
myNetwork:
  external: true

Thank you for any advice :)
 
Last edited:

irgendwr

semi-inactive™
Staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
Hi, thanks for providing all of the required information :)
This might have several reasons: the server doesn't exist at that address, the server password is wrong, the default channel doesn't exist, the bot has been banned, the server is an illegal installation, the password is wrong, the security level of your identity is too low, the nickname is too short or too long or the server does not allow the version of the client you are using.
It's one of those reasons, check them one by one.
Often people have a higher security level on their server than the bot identity has.
 

Finn Kranzosch

New Member
Hi, thanks for providing all of the required information :)

It's one of those reasons, check them one by one.
Often people have a higher security level on their server than the bot identity has.
Thanks for your answer, I thought so too but those things seem to be fine. I can connect to other TeamSpeak servers with this bot and the security level is high enough.
Things that work:
SinusBot can connect to other TeamSpeak server
SinusBot from a different Server can connect to the mentioned TeamSpeak server
Things that don't work:
SinusBot can't connect to the TeamSpeak server which is runnning at the same server
 

Finn Kranzosch

New Member
Dont use your domain to connect, use 127.0.0.1 when connecting locally
Thanks. I tried that too but due to the docker setup it wouldn't work. I finally solved it by setting an alias for the teamspeak docker volume inside the network as shown in the official sinusbot dockerhub page😬.
 

Similar threads

Top