Splamy / TS3AudioBot

Advanced Musicbot for Teamspeak 3
https://splamy.de/TSAudioBot/Home
Open Software License 3.0
691 stars 140 forks source link

The stream does not support seeking #71

Closed Bluscream closed 7 years ago

Bluscream commented 7 years ago
blu@homeserver:/opt/TS3AudioBot/mtG/ILoveRadio$ mono TS3AudioBot.exe
[02:21:35]  Error: Critical program failure!. Exception:
MSG: The stream does not support seeking
TYPE:NotSupportedException
STACK:  at System.IO.FileStream.Seek (System.Int64 offset, System.IO.SeekOrigin origin) [0x00026] in <dbb16e0bacdc4a0f8747               8e401bc29b6c>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileS               hare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0031a] in <dbb16e0bacdc4a               0f87478e401bc29b6c>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileS               hare share) [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,Syste               m.IO.FileShare)
  at System.IO.File.Open (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare sh               are) [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at TS3AudioBot.MainBot.InitializeBot () [0x0014f] in <b71c68616de345cf9d3d26daa3347b3e>:0
  at TS3AudioBot.MainBot.Main (System.String[] args) [0x0003d] in <b71c68616de345cf9d3d26daa3347b3e>:0

Error call Stack:
Void <>m__0(System.Object, System.UnhandledExceptionEventArgs)@0 T:
[02:21:35]   Info: Exiting...
exception inside UnhandledException handler: Object reference not set to an instance of an object

[ERROR] FATAL UNHANDLED EXCEPTION: System.NotSupportedException: The stream does not support seeking
  at System.IO.FileStream.Seek (System.Int64 offset, System.IO.SeekOrigin origin) [0x00026] in <dbb16e0bacdc4a0f87478e401b               c29b6c>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileS               hare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0031a] in <dbb16e0bacdc4a               0f87478e401bc29b6c>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileS               hare share) [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,Syste               m.IO.FileShare)
  at System.IO.File.Open (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare sh               are) [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at TS3AudioBot.MainBot.InitializeBot () [0x0014f] in <b71c68616de345cf9d3d26daa3347b3e>:0
  at TS3AudioBot.MainBot.Main (System.String[] args) [0x0003d] in <b71c68616de345cf9d3d26daa3347b3e>:0
blu@homeserver:/opt/TS3AudioBot/mtG/ILoveRadio$
Bluscream commented 7 years ago
root@homeserver:/opt/TS3AudioBot/mtG/ILoveRadio# l
total 36M
drwxr-xr-x 2 blu blu 4.0K May  1 02:20 ./
drwxr-xr-x 7 blu blu 4.0K May  1 02:17 ../
-rw-r--r-- 2 blu blu 2.2M Apr 26  2016 BouncyCastle.Crypto.dll
-rw-rw-r-- 1 blu blu 2.5K May  1 02:20 configTS3AudioBot.cfg
-rwxr-xr-x 2 blu blu  33M May  1 02:07 ffmpeg*
-rw-rw-r-- 1 blu blu  24K May  1 02:18 history.db
-rw-rw-r-- 1 blu blu   10 May  1 02:18 history_old_0.db
-rw-r--r-- 2 blu blu 130K Jul 14  2016 HtmlAgilityPack.dll
-rw-r--r-- 2 blu blu 211K Jan 19 22:44 LiteDB.dll
-rw-rw-r-- 1 blu blu 1.2K May  1 02:18 log_ts3audiobot
-rwxrwxr-x 2 blu blu 268K May  1 02:03 TS3AudioBot.exe*
-rwxr-xr-x 2 blu blu 199K Apr 25 22:07 TS3Client.dll*
Bluscream commented 7 years ago

Have i set any perms wrong, or is it cause the files are hardlinked from the releases folder?

ln TS3AudioBot/bin/Release/BouncyCastle.Crypto.dll $1
ln TS3AudioBot/bin/Release/HtmlAgilityPack.dll $1
ln TS3AudioBot/bin/Release/TS3AudioBot.exe $1
ln TS3AudioBot/bin/Release/TS3Client.dll $1
ln TS3AudioBot/bin/Release/ffmpeg $1
ln TS3AudioBot/bin/Release/LiteDB.dll $1
Bluscream commented 7 years ago
# The default volume a song should start with
AudioFramework::DefaultVolume=10
# The maximum volume a normal user can request
AudioFramework::MaxUserVolume=30
# The address of the TeamSpeak3 server
QueryConnection::Host=127.0.0.1
# The port of the TeamSpeak3 server
QueryConnection::Port=9989
# | DO NOT MAKE THIS KEY PUBLIC | The client identity
QueryConnection::Identity=[REDACTED]
# The client identity security offset
QueryConnection::IdentityOffset=27
# The server password. Leave empty for none.
QueryConnection::ServerPassword=
# Set this to true, if the server password is hashed.
QueryConnection::ServerPasswordIsHashed=False
# Enable this to automatically hash and store unhashed passwords.
# (Be careful since this will overwrite the 'ServerPassword' field with the hashed value once computed)
QueryConnection::ServerPasswordAutoHash=False
# The path to ffmpeg
QueryConnection::FfmpegPath=ffmpeg
# Specifies the bitrate (in kbps) for sending audio.
# Values between 8 and 98 are supported, more or less can work but without guarantees.
# Reference values: 32 - ok (~5KiB/s), 48 - good (~7KiB/s), 64 - very good (~9KiB/s), 92 - superb (~13KiB/s)
QueryConnection::AudioBitrate=92
# Version for the client in the form of <version build>|<plattform>|<version sign>
# Leave empty for default.
QueryConnection::ClientVersion=
# The Path to the history database file
HistoryManager::HistoryFile=history.db
# Whether or not deleted history ids should be filled up with new songs
HistoryManager::FillDeletedIds=True
# The path to the pugins
PluginManager::PluginPath=Plugins
# Path the playlist folder
PlaylistManager::PlaylistPath=Playlists
# A youtube apiv3 'Browser' type key
YoutubeFactory::ApiKey=[REDACTED]
# Path to the youtube-dl binary or local git repository
YoutubeFactory::YoutubedlPath=/usr/local/bin/youtube-dl
# A space seperated list of all urls the web api should be possible to be accessed with
WebData::HostAddress=
# The port for the api server
WebData::Port=8180
# If you want to start the web api server.
WebData::EnableApi=False
# If you want to start the webinterface server
WebData::EnableWebinterface=False
# Path to the logfile
MainBot::LogFile=/dev/null
# Teamspeak group id authorized to execute admin commands
MainBot::AdminGroupId=51
# Teamspeak group id giving the Bot enough power to do his job
MainBot::BotGroupId=36
Splamy commented 7 years ago

MainBot::LogFile=/dev/null That's not how it works.

If you want no log, start the bot with --NoLog or -L

Bluscream commented 7 years ago

Oh haha okay i'm sorry xD