Halandar
Member
Hi,
Setup a new sinusbot, ts runs on the same host. It can start, connect do many things.
But if the one regisred user (all rights) sends the sinusbot a chat with
the result is that sinusbot crashes.
I disabled all script plugins for testing.
logs show something like this:
runtime/cgo: pthread_create failed: Resource temporarily unavailable -> lets check the ulimits for the sinusbot user:
The config:
Here is the diag script output:
Setup a new sinusbot, ts runs on the same host. It can start, connect do many things.
But if the one regisred user (all rights) sends the sinusbot a chat with
Code:
!yt https://youtu.be/OZkqa6MSixU
the result is that sinusbot crashes.
I disabled all script plugins for testing.
logs show something like this:
Code:
Sep 25 23:10:14 my.server.net sinusbot[779]: 2020/09/25 23:10:14 583aaab6 1299295f PLUGIN [ command:41:14] Halandar (u5ANJ4B3RKT+UJyy/Uw3L6W8EeY=) used !yt
Sep 25 23:10:14 my.server.net sinusbot[779]: runtime/cgo: pthread_create failed: Resource temporarily unavailable
Sep 25 23:10:14 my.server.net sinusbot[779]: SIGABRT: abort
Sep 25 23:10:14 my.server.net sinusbot[779]: PC=0x7f2a28a7df47 m=0 sigcode=18446744073709551610
Sep 25 23:10:14 my.server.net sinusbot[779]: goroutine 0 [idle]:
Sep 25 23:10:14 my.server.net sinusbot[779]: goroutine 1 [select (no cases)]:
Sep 25 23:10:14 my.server.net sinusbot[779]: (0x0, 0x0, 0x1debddc, 0x11, 0xc42025f310, 0x1)
Sep 25 23:10:14 my.server.net sinusbot[779]: :271 +0x13a
Sep 25 23:10:14 my.server.net sinusbot[779]: ()
Sep 25 23:10:14 my.server.net sinusbot[779]: :224 +0x56
Sep 25 23:10:14 my.server.net sinusbot[779]: ()
Sep 25 23:10:14 my.server.net sinusbot[779]: :1184 +0x25f4
Sep 25 23:10:14 my.server.net sinusbot[779]: ()
Sep 25 23:10:14 my.server.net sinusbot[779]: :185 +0x20a
Sep 25 23:10:14 my.server.net sinusbot[779]: ()
Sep 25 23:10:14 my.server.net sinusbot[779]: :2197 +0x1
Sep 25 23:10:14 my.server.net sinusbot[779]: goroutine 17 [syscall, locked to thread]:
Sep 25 23:10:14 my.server.net sinusbot[779]: ()
Sep 25 23:10:14 my.server.net sinusbot[779]: :2197 +0x1
Sep 25 23:10:14 my.server.net sinusbot[779]: goroutine 18 [syscall]:
Sep 25 23:10:14 my.server.net sinusbot[779]: (0x2937860, 0xffffffffffffffff, 0x0)
Sep 25 23:10:14 my.server.net sinusbot[779]: :205 +0x42
Sep 25 23:10:14 my.server.net sinusbot[779]: (0x0)
Sep 25 23:10:14 my.server.net sinusbot[779]: :116 +0x104
Sep 25 23:10:14 my.server.net sinusbot[779]: ()
Sep 25 23:10:14 my.server.net sinusbot[779]: :22 +0x22
Sep 25 23:10:14 my.server.net sinusbot[779]: ()
Sep 25 23:10:14 my.server.net sinusbot[779]: :2197 +0x1
Sep 25 23:10:14 my.server.net sinusbot[779]: goroutine 34 [IO wait]:
Sep 25 23:10:14 my.server.net sinusbot[779]: (0x1ee0fd0, 0x7f2a2b256f98, 0x1de127c, 0x7, 0xc420035d1b, 0x5)
Sep 25 23:10:14 my.server.net sinusbot[779]: :271 +0x13a
Sep 25 23:10:14 my.server.net sinusbot[779]: (0x7f2a2b256f70, 0x72, 0x28d49c0)
Sep 25 23:10:14 my.server.net sinusbot[779]: :345 +0xc7
Sep 25 23:10:14 my.server.net sinusbot[779]: (0x7f2a2b256f70, 0x72, 0x28d49c0)
Sep 25 23:10:14 my.server.net sinusbot[779]: :164 +0x59
Sep 25 23:10:14 my.server.net sinusbot[779]: (0xc4200520d8, 0x72, 0x28cee30, 0xc420fbeb40)
Sep 25 23:10:14 my.server.net sinusbot[779]: :75 +0x38
Sep 25 23:10:14 my.server.net sinusbot[779]: (0xc4200520d8, 0xffffffffffffffff, 0x0)
Sep 25 23:10:14 my.server.net sinusbot[779]: :80 +0x34
Sep 25 23:10:14 my.server.net sinusbot[779]: (0xc420052070, 0x0, 0x28d2c40, 0xc420fbeb40)
Sep 25 23:10:14 my.server.net sinusbot[779]: :430 +0x1e5
Sep 25 23:10:14 my.server.net sinusbot[779]: (0xc420016600, 0xc420035e98, 0xd66419, 0x8a74f0)
Sep 25 23:10:14 my.server.net sinusbot[779]: :162 +0x32
Sep 25 23:10:14 my.server.net sinusbot[779]: (0xc420016600, 0x1ee0130, 0xc42060eae0, 0x2, 0xc420ebca50)
Sep 25 23:10:14 my.server.net sinusbot[779]: :237 +0x49
Sep 25 23:10:14 my.server.net sinusbot[779]: ()
Sep 25 23:10:14 my.server.net sinusbot[779]: :1428 +0x102
Sep 25 23:10:14 my.server.net sinusbot[779]: ()
Sep 25 23:10:14 my.server.net sinusbot[779]: :2197 +0x1
Sep 25 23:10:14 my.server.net sinusbot[779]: goroutine 35 [chan receive]:
Sep 25 23:10:14 my.server.net sinusbot[779]: (0x1ee1008, 0xc420265198, 0x1de67e8, 0xc, 0x17, 0x3)
Sep 25 23:10:14 my.server.net sinusbot[779]: :271 +0x13a
Sep 25 23:10:14 my.server.net sinusbot[779]: (0xc420265198, 0x1de67e8, 0xc, 0x17, 0x3)
Sep 25 23:10:14 my.server.net sinusbot[779]: :277 +0x5e
Sep 25 23:10:14 my.server.net sinusbot[779]: (0x1cd3120, 0xc420265140, 0xc4202f8fc0, 0x1, 0x0)
Sep 25 23:10:14 my.server.net sinusbot[779]: :513 +0x371
Sep 25 23:10:14 my.server.net sinusbot[779]: (0x1cd3120, 0xc420265140, 0xc4202f8fc0, 0x0)
Sep 25 23:10:14 my.server.net sinusbot[779]: :400 +0x35
Sep 25 23:10:14 my.server.net sinusbot[779]: (0xc4202b94a0)
Sep 25 23:10:14 my.server.net sinusbot[779]: :837 +0x4a
Sep 25 23:10:14 my.server.net sinusbot[779]: ()
Sep 25 23:10:14 my.server.net sinusbot[779]: :2197 +0x1
Sep 25 23:10:14 my.server.net sinusbot[779]: goroutine 6 [chan receive]:
Sep 25 23:10:14 my.server.net sinusbot[779]: (0x1ee1008, 0xc420064418, 0x1de67e8, 0xc, 0x17, 0x3)
Sep 25 23:10:14 my.server.net sinusbot[779]: :271 +0x13a
Sep 25 23:10:14 my.server.net sinusbot[779]: (0xc420064418, 0x1de67e8, 0xc, 0xc88917, 0x3)
Sep 25 23:10:14 my.server.net sinusbot[779]: :277 +0x5e
Sep 25 23:10:14 my.server.net sinusbot[779]: (0x1cd3120, 0xc4200643c0, 0xc4202f9fc0, 0x1, 0x0)
Sep 25 23:10:14 my.server.net sinusbot[779]: :513 +0x371
Sep 25 23:10:14 my.server.net sinusbot[779]: (0x1cd3120, 0xc4200643c0, 0xc4202f9fc0, 0x8aae76)
Sep 25 23:10:14 my.server.net sinusbot[779]: :400 +0x35
Sep 25 23:10:14 my.server.net sinusbot[779]: (0xc4203d41e0)
Sep 25 23:10:14 my.server.net sinusbot[779]: :837 +0x4a
Sep 25 23:10:14 my.server.net sinusbot[779]: ()
Sep 25 23:10:14 my.server.net sinusbot[779]: :2197 +0x1
Sep 25 23:10:14 my.server.net sinusbot[779]: goroutine 44 [IO wait]:
Sep 25 23:10:14 my.server.net sinusbot[779]: (0x1ee0fd0, 0x7f2a2b256e18, 0x1de127c, 0x7, 0x8fbc1b, 0x5)
Sep 25 23:10:14 my.server.net sinusbot[779]: :271 +0x13a
Sep 25 23:10:14 my.server.net sinusbot[779]: (0x7f2a2b256df0, 0x72, 0xb)
Sep 25 23:10:14 my.server.net sinusbot[779]: :345 +0xc7
Sep 25 23:10:14 my.server.net sinusbot[779]: (0x7f2a2b256df0, 0x72, 0x5)
Sep 25 23:10:14 my.server.net sinusbot[779]: :164 +0x59
Sep 25 23:10:14 my.server.net sinusbot[779]: (0xc4202c5958, 0x72, 0x28d49c0, 0x28cee30)
Sep 25 23:10:14 my.server.net sinusbot[779]: :75 +0x38
Sep 25 23:10:14 my.server.net sinusbot[779]: (0xc4202c5958, 0xc42031d000, 0x1000)
runtime/cgo: pthread_create failed: Resource temporarily unavailable -> lets check the ulimits for the sinusbot user:
Code:
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 1029354
max locked memory (kbytes, -l) 16384
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 62987
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
The config:
Code:
TS3Path = "/opt/sinusbot/teamspeak3-client/ts3client_linux_amd64"
ListenHost = "0.0.0.0"
DataDir = "/opt/sinusbot/data/"
ListenPort = 8087
LocalPlayback = false
EnableLocalFS = false
MaxBulkOperations = 300
LogLevel = 5
EnableProfiler = false
YoutubeDLPath = "/usr/local/bin/youtube-dl"
EnableDebugConsole = false
EnableInternalCommands = false
AllowStreamPush = false
UploadLimit = 83886080
RunAsUser = 1001
RunAsGroup = 1009
ExternalFileBase = ""
InstanceActionLimit = 6
UseSSL = true
SSLKeyFile = "/XXX/privkey.pem"
SSLCertFile = "/XXX/cert.pem"
Hostname = "XXX.de"
HostnameMask = ""
SampleInterval = 60
StartVNC = false
EnableWebStream = false
LogFile = ""
LicenseKey = "z/jWD8pMyMfW7OeDrQnGwBzx1kQauDfzkn19/gjQLgA="
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
Here is the diag script output:
Code:
==========================================================
SINUSBOT RELATED
SYSTEM INFORMATION
- Operating System: Ubuntu 18.04.5 LTS (OpenVZ)
- Kernel: Linux 4.15.0 x86_64
- Load Average: 0.43 0.50 0.50
- Uptime: 71 days, 23 hours, 58 minutes, 7 seconds
- OS x64 check: OK
- OS Updates: 2 (updates available!)
- OS Missing Packages: None
- OS APT Last Update: 25.09.2020 04:56:08 CEST +02:00:00
- Shell Locale: de_DE.utf8
- Bot Start Script: not found
- CPU:
CPU(s): 4
CPU MHz: 1999.511
Hypervisor-Anbieter: Parallels
- RAM: 622.15 MB/8.00 GB in use (7%)
- SWAP: 0 B/0 B in use (0%) (SWAP disabled)
- DISK: 29.63 GB/100.85 GB in use (29%)
- Package versions:
- libglib: 2.56.4-0ubuntu0.18.04.6
BOT INFORMATION
- Status: not running
- Webinterface: port locally not reachable (Port: 8087)
- Binary: /opt/sinusbot/sinusbot
- Binary Info: MD5 Hash: 224b687db910b732fe5a7cfec4f6c78e, Perms: 755, User: sinusbot
- 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/ts3client_linux_amd64 (Version 3.5.2)
- YoutubeDLPath = /usr/local/bin/youtube-dl (does exist, version: 2020.09.20)
- Installed scripts: advertising.js; AFK_Mover.js; alonemode.js; bookmark.js; command.js; followme.js; norecording.js; Reconnect.js; rememberChannel.js; sinusbot-commands.js; welcome.js; YT-search.js
BOT TECHNICAL INFORMATION
- File exists:
- TS3Client/libqxcb-glx-integration.so: no
- LDD output:
linux-vdso.so.1 (0x00007ffe5bdde000)
libswresample.so.2 => /opt/sinusbot/libswresample.so.2 (0x00007fda9f402000)
libavfilter.so.6 => /opt/sinusbot/libavfilter.so.6 (0x00007fda9f0aa000)
libavformat.so.57 => /opt/sinusbot/libavformat.so.57 (0x00007fda9eca9000)
libavcodec.so.57 => /opt/sinusbot/libavcodec.so.57 (0x00007fda9e344000)
libavutil.so.55 => /opt/sinusbot/libavutil.so.55 (0x00007fda9e0d0000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fda9decc000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fda9db2e000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fda9d90f000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fda9d586000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fda9d36e000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fda9cf7d000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fda9cd60000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fda9cb58000)
/lib64/ld-linux-x86-64.so.2 (0x00007fda9f61c000)
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 -> 172.67.132.160: SUCCESS [CODE #404]
update02.sinusbot.com -> 104.28.14.74: SUCCESS [CODE #404]
update03.sinusbot.com -> 104.28.15.74: SUCCESS [CODE #404]
TIME INFORMATION
- Time (local): 25.09.2020 23:11:45 CEST +02:00:00
- Time (remote): 25.09.2020 23:11:45 CEST +02:00:00
- Time (difference): 0 secs (Time diff less than 2 secs. Good.)
- Timezone: Europe/Berlin
OTHER INFORMATION
- TeamSpeak3 Version: 3.5.2
- youtube-dl Version: 2020.09.20
- DiagScript Version: 0.8.0
==========================================================
Last edited: