• 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 Uploads über 1MB Dateigröße schlagen fehl

Status
Not open for further replies.

pix0wl

Donor
is awesome!
Betriebssystem: Linux, Debian 8.7
SinusBot Version: 0.9.16-10f0fad
TS3 Version: 3.0.19.4

Problembeschreibung
Musikuploads größer als 1MB werden immer mit der Ausgabe "failed" abgelehnt.
Kleinere Dateien werden angenommen und können auch abgespielt werden.
Das ganze ist unabhängig vom Dateityp (MP3, WAV, FLAC).
Getestet habe ich mit jeweils aktuellen Versionen von Firefox und Vivaldi.

Der Bot läuft auf einem kleinen ded. Server. Als Webserver läuft NGINX + PHP7.0-FPM (nutzt der Sinusbot nicht sogar seinen eigenen Webserver?).
Ich habe in der php.ini die Werte bei "upload_max_filesize" und "post_max_size" deutlich erhöht, hat leider auch nichts gebracht.

Diagnose-Script:
Code:
==========================================================
SINUSBOT RELATED
SYSTEM INFORMATION
- Operating System: Debian GNU/Linux 8.7 (jessie)
- OS x64 check: OK
- Kernel: Linux 3.14.32-xxxx-grs-ipv6-64 x86_64
- Load Average: 0.32 0.38 0.33
- Uptime: 30 days, 18 hours, 11 minutes, 52 seconds
- OS Updates: 0 (well done!)
- OS Missing Packages: None (v1)
- OS APT Last Update: 04.03.2017 03:40:37 CET +01:00:00
- Bot Start Script: not found
- DNS resolution check: sinusbot.com resolved to 104.18.41.220 -> OK
- HTTPS check with IPv4 mode: SUCCESS [Connection was established to sinusbot.com]
- HTTPS check with IPv6 mode: FAILED [Failed connecting to sinusbot.com]
- CPU:
    Architecture:          x86_64
    CPU(s):                4
    Thread(s) per core:    2
    Core(s) per socket:    2
    Socket(s):             1
    Model name:            Intel(R) Core(TM) i3-2130 CPU @ 3.40GHz
    CPU MHz:               1943.312
    Virtualization:        VT-x
- RAM: 1.29 GB/7.68 GB in use (16%)
- SWAP: 0 B/510.99 MB in use (0%)
- DISK: 108.69 GB/1.59 TB in use (6%)
- Package versions:
   > libglib: 2.42.1-1+b1

BOT INFORMATION
- Status: running (PIDs: 28200 28199, User: sinusbot)
- Webinterface: port locally reachable (Port: 8087)
- Binary: /home/sinusbot/sinusbot (MD5 Hash: 0005c8c289b99913844c9f761dbb50e9)
- Version: 0.9.16-10f0fad
- TS3 Plugin: installed (md5 hash match)
   - Bot Plugin: 28b54596e19937601df973b709aa0667
   - TS3 Client: 28b54596e19937601df973b709aa0667
- Config:
   - LogLevel = 10 (debug log active)
   - TS3Path = /home/sinusbot/teamspeak-client/ts3client_linux_amd64 (Version 3.0.19.4)
   - YoutubeDLPath = /usr/local/bin/youtube-dl (does exist, version: 2017.03.02)
- Installed scripts: advertising.js; aloneMode.js; auto_channel_creator.js; badchan.js; bookmark.js; covatar.js; dev.js; Digital Clock.js; followme.js; idle.js; metadata.js; norecording.js; rememberChannel.js; showcase.js; sound.js; TwitchHitbox Status.js; welcometext.js; Youtube Search.js

OTHER INFORMATION
- Report date: 04.03.2017 13:28:40 CET +01:00:00 (timezone: Europe/Paris)
- TeamSpeak 3 Version: 3.0.19.4
- youtube-dl Version: 2017.03.02
- DiagScript version: 0.5.0
==========================================================
Instance-Log (Loglevel 10):
Code:
2017-03-04T08:23:25+01:00 SAMPLEX 3840 60
2017-03-04T08:23:25+01:00 New channel
2017-03-04T08:23:25+01:00 Found Callback PR:{722d560c-103f-4c3d-bc1d-4e068aede670}:18/DESC
2017-03-04T08:23:25+01:00 Awaiting Callback (1): PR:{722d560c-103f-4c3d-bc1d-4e068aede670}:18/DESC
2017-03-04T08:23:24+01:00 TS/ERR 2564 e'access to default group is forbidden' x'' r'PR:{722d560c-103f-4c3d-bc1d-4e068aede670}:14/GCLL'
2017-03-04T08:23:23+01:00 TS |INFO |LicenseViewer | |Found cached license for version 1 and language en
2017-03-04T08:23:23+01:00 TS |INFO |LicenseViewer | |License language: en
2017-03-04T08:23:23+01:00 TS |INFO |Update | |Check license version: 1
2017-03-04T08:23:23+01:00 New connection status 4; Error 0
2017-03-04T08:23:23+01:00 TS |INFO |PermManager | |Loading permissions from cache
2017-03-04T08:23:23+01:00 TS |INFO |ClientUI |1 |Connect status: Connection established
2017-03-04T08:23:23+01:00 New connection status 3; Error 0
2017-03-04T08:23:23+01:00 New connection status 2; Error 0
2017-03-04T08:23:23+01:00 TS |INFO |ClientUI |1 |Connect status: Establishing connection
2017-03-04T08:23:23+01:00 TS |INFO |ClientUI |1 |Connect status: Connected
2017-03-04T08:23:23+01:00 TS |INFO |Update | |Checking for updates...
2017-03-04T08:23:23+01:00 TS |DEVELOP |PktHandler | |Puzzle solve time: 5
2017-03-04T08:23:23+01:00 TS |INFO |ClientUI | |Checking for update
2017-03-04T08:23:23+01:00 TS |INFO |ClientUI | |Last update check was: Sun Jan 1 00:00:01 2017
2017-03-04T08:23:23+01:00 New connection status 1; Error 0
2017-03-04T08:23:23+01:00 TS |INFO |ClientUI |1 |Connect status: Connecting
2017-03-04T08:23:23+01:00 TS |INFO |PreProSpeex |1 |Speex version: 1.2rc1
2017-03-04T08:23:22+01:00 TS |INFO |ClientUI |1 |Initiating connection: 5.39.89.155:9987 5.39.89.155
2017-03-04T08:23:22+01:00 TS |INFO |ClientUI |1 |Blacklist check ok
2017-03-04T08:23:22+01:00 TS |INFO |ClientUI |1 |Connect to server: 5.39.89.155
2017-03-04T08:23:22+01:00 TS |INFO |ClientUI | |ts3server: 5.39.89.155?port=9987&nickname=Video%20Game%20Music%20%28HQ%29%20-%20TEST&password=&cid=676&channelpassword=
2017-03-04T08:23:22+01:00 TS |INFO |ClientUI | |Using configuration location: /home/sinusbot/data//ts3/b07cbb13-60a2-4e70-b765-a55a664e240e/fed54e64-6831-fdf2-75a4-45ae1d64992a/settings.db
2017-03-04T08:23:22+01:00 TS |INFO |ClientUI | |Qt version: 5.5.1
2017-03-04T08:23:22+01:00 TS |INFO |ClientUI | |Failed to init text to speech engine
2017-03-04T08:23:22+01:00 TS>ClientQueryPlugin: currentServerConnectionChanged 1 (0)
2017-03-04T08:23:21+01:00 TS |INFO |Query | |listening on 127.0.0.1:25639
2017-03-04T08:23:21+01:00 TS |INFO | | |Loading plugin: libtest_plugin
2017-03-04T08:23:21+01:00 TS |INFO | | |Loading plugin: libsoundbot_plugin
2017-03-04T08:23:21+01:00 TS |INFO | | |Loading plugin: liblua_plugin
2017-03-04T08:23:21+01:00 TS |INFO | | |Loading plugin: libclientquery_plugin
2017-03-04T08:23:21+01:00 TS |ERROR |SoundBckndIntf| |/home/sinusbot/teamspeak-client/soundbackends/libpulseaudio_linux_amd64.so error: INIT_PA_IMPL
2017-03-04T08:23:21+01:00 TS |ERROR |PulseAudio | |pa_context_connect failed
2017-03-04T08:23:21+01:00 TS |ERROR |PulseAudio | |failed to connect to pulse audio server
2017-03-04T08:23:21+01:00 TS |INFO | | |SystemInformation: Linux 3.14.32-xxxx-grs-ipv6-64 #7 SMP Wed Jan 27 18:05:09 CET 2016 x86_64 Binary: 64bit
2017-03-04T08:23:21+01:00 TS |INFO | | |TeamSpeak 3 Client 3.0.19.4 (2016-07-14 10:16:58)
2017-03-04T08:23:21+01:00 TS>DUMP defined! Dumpdir is: /home/sinusbot/data//ts3/b07cbb13-60a2-4e70-b765-a55a664e240e/fed54e64-6831-fdf2-75a4-45ae1d64992a/crashdumps
2017-03-04T08:23:21+01:00 TS>Crashdump ENABLED, directory is: /home/sinusbot/data//ts3/b07cbb13-60a2-4e70-b765-a55a664e240e/fed54e64-6831-fdf2-75a4-45ae1d64992a/crashdumps
2017-03-04T08:23:21+01:00 Starting instance ts3server://5.39.89.155?port=9987&nickname=Video%20Game%20Music%20%28HQ%29%20-%20TEST&password=&cid=676&channelpassword=
2017-03-04T08:23:21+01:00 Could not insert into Notifications-Tableno such table: Notifications
2017-03-04T08:23:21+01:00 Could not delete from Notificationsno such table: Notifications
2017-03-04T08:23:21+01:00 Could not insert into Notifications-Tableno such table: Notifications
2017-03-04T08:23:21+01:00 Could not delete from Notificationsno such table: Notifications
2017-03-04T08:23:21+01:00 Auto-Playing last track
2017-03-04T08:23:20+01:00 Last track was 7f270257-cbb7-49ee-a329-c5b067fbc302, will auto-play soon
2017-03-04T08:23:20+01:00 Auto-Starting b07cbb13-60a2-4e70-b765-a55a664e240e/fed54e64-6831-fdf2-75a4-45ae1d64992a in 500 ms...
2017-03-04T08:23:20+01:00 Initialization complete
config.ini:
Code:
TS3Path = "/home/sinusbot/teamspeak-client/ts3client_linux_amd64"
ListenHost = "0.0.0.0"
DataDir = "/home/sinusbot/data/"
ListenPort = 8087
LocalPlayback = false
EnableLocalFS = false
MaxBulkOperations = 300
LogLevel = 10
EnableProfiler = false
YoutubeDLPath = "/usr/local/bin/youtube-dl"
EnableDebugConsole = false
UploadLimit = 293601280
RunAsUser = 0
RunAsGroup = 0
InstanceActionLimit = 6
UseSSL = false
Hostname = "sbot.fps-noob.net"
SampleInterval = 60
StartVNC = false
EnableWebStream = false
LogFile = ""
LicenseKey = "**************************************"
IsProxied = false
DenyStreamURLs = []
Pragma = 0

[YoutubeDL]
  BufferSize = 524288
  MaxDownloadSize = 419430400
  MaxDownloadRate = 104857600
  CacheStreamed = false

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

[StreamRewrites]

[Scripts]
  AllowReload = false
  EnableTimer = false

[Themes]
  Default = ""

[SpeechRecognition]
  Enable = false

[FFmpeg]
  UserAgent = "SinusBot (0.9.16-10f0fad)"

[DAV]
  Enable = false

[XServer]
  Delay = 0
  Debug = false
 
Last edited:

irgendwr

no longer active, "retired" staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
Der Bot läuft auf einem kleinen ded. Server. Als Webserver läuft NGINX + PHP7.0-FPM.
Ich habe in der php.ini die Werte bei "upload_max_filesize" und "post_max_size" deutlich erhöht, hat leider auch nichts gebracht.
Ich nehme mal an du hast nginx als reverse proxy konfiguriert? Dann liegt da nämlich dein Problem:
Setzt in der config die client_max_body_size höher, z.B: client_max_body_size 20m; und starte dann nginx neu.
 

irgendwr

no longer active, "retired" staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
Nein, ich nutze NGINX als reinen (und einzigen) Webserver.
okay, dann haben nginx & php nichts damit zu tun weil der sinusbot sein eigener Webserver ist ^^
kannst vielleicht mal probieren UploadLimit = 0 zu setzen und den bot dann neuzustarten, dann sollte er eig. nicht auf die file size achten.
Wenns immer noch nicht klappt: mal nach den failed upload in den log gucken ob da was zu steht.
 

pix0wl

Donor
is awesome!
Hm, wenn ich das Webinterface direkt über die IP aufrufe, funktioniert der Upload...
Ich glaube deine erste Vermutung war dann wohl doch zutreffend.
Ich glaub ich hatte auch mal vor längerem nach einer Anleitung über "proxy_pass" eine Weiterleitung von meiner Subdomain eingerichtet.
Kenne mich halt noch nicht so aus mit NGINX. :rolleyes:

okay, dann haben nginx & php nichts damit zu tun weil der sinusbot sein eigener Webserver ist ^^
War mir doch so. :p
 
Status
Not open for further replies.
Top