Infinite Upload on attempted MP3 Upload to client
Server: Raspberry Pi 5(500) running Raspberry Pi OS Full (x64) Client: Raspberry Pi 3B running Raspberry Pi OS Lite (x64)
ISSUE:
When trying to upload a .mp3 file from the server to a client, it gets stuck until CTRL C is pressed.
This is what the server saw: botwave › upload all /home/defaultuser9148/Desktop/RadioUploads/bowling_low_quality.mp3 [BCAST] Uploading bowling_low_quality.mp3 to 1 client(s)... (chunk size: 128KB)
Waited 5 minutes just to be sure then exited
^C[WARN] Use 'exit' to exit
botwave › upload all /home/defaultuser9148/Desktop/RadioUploads/blong.wav [BCAST] Uploading blong.wav to 1 client(s)... (chunk size: 512KB) [FILE] blong.wav raspberrypiuser9148 (192.168.0.198): [------------------------- [FILE] blong.wav raspberrypiuser9148 (192.168.0.198): [------------------------- [FILE] blong.wav raspberrypiuser9148 (192.168.0.198): [#------------------------ [FILE] blong.wav raspberrypiuser9148 (192.168.0.198): [#------------------------ [FILE] blong.wav raspberrypiuser9148 (192.168.0.198): [##-----------------------
Server tried uploading an mp3 file and then a wav file, this is what the client saw:
[OK] Successfully registered with server as raspberrypiuser9148_192.168.0.198 [VER] Server protocol version: 1.1.1 [VER] Client protocol version: 1.1.1 [FILE] Downloading file from https://cdn.douxx.tech/files/ss.wav... [FILE] Downloading: [##############################] 100.0% Complete [OK] File ss.wav downloaded successfully [FILE] Preparing to receive file: blong.wav (33554432 bytes) [FILE] Receiving file data... [FILE] Using chunk size: 512KB [FILE] Uploading: [##############################] 100.0% Complete [OK] File blong.wav uploaded successfully (33554432 bytes)
Only the ss.wav test file was downloaded (with the dl command) and the previous .wav file, yet no mention of any .mp3 file.
Possible fix: Auto convert mp3 to wav before trying to upload or add a convert option :P
Not sure if this is an actual issue or i just managed to somehow mess it up while it still working
I'll check that tomorrow. tbh the upload-over-socket is messy asf, so its probably an issue
Oh yay, its not my fault!! :D
Also, would it be possible to make the upload process take folders too? like if you just give it a folder, itll look for audio files and upload them, or that already exists and im dumb
Also, would it be possible to make the upload process take folders too? like if you just give it a folder, itll look for audio files and upload them, or that already exists and im dumb
I just implemented that because another person alr asked that lmao, you can do upload <targets> <folder path> and it will upload all .wav inside that folder (not recursively) to the targets. You can also use sync <targets|folder/> <source_target|folder/> to completly sync a source to another (note that other files on clients will be deleted)
btw i added the think you asked in #6 for the client ;)
Woa thank you!! Is the sync command on the server? Or am i too tired to think properly botwave › sync /home/defaultuser9148/Desktop/RadioUploads raspberrypiuser9148_192.168.0.198 [ERR] Unknown command: sync [INFO] Type 'help' for a list of available commands
it should be on the server, but you'll have to update both the client and the server for it to work, by running bw-update on both machines. also if you want to copy the files of your client to the server, think of adding a / at the end of the folder path, otherwise it'll think that [...]RadioUploads is a client
Perfect, also i get this error sometimes when im trying to connect, first time i get the error and then it works:
CLIENT [OK] Found pi_fm_rds at: /opt/BotWave/PiFmRds/src/pi_fm_rds [INFO] Checking for protocol updates... [OK] You are using the latest protocol version [INFO] Starting BotWave client, connecting to 192.168.0.201:9938 [INFO] Upload directory: /opt/BotWave/uploads [INFO] Press Ctrl+C to stop [INFO] Attempting to connect to 192.168.0.201:9938... [ERR] Error connecting to server: Extra data: line 2 column 1 (char 110) defaultuser9148@raspberrypiuser9148:~ $ sudo bw-client 192.168.0.201 BotWave - Client
[OK] Found pi_fm_rds at: /opt/BotWave/PiFmRds/src/pi_fm_rds [INFO] Checking for protocol updates... [OK] You are using the latest protocol version [INFO] Starting BotWave client, connecting to 192.168.0.201:9938 [INFO] Upload directory: /opt/BotWave/uploads [INFO] Press Ctrl+C to stop [INFO] Attempting to connect to 192.168.0.201:9938... [OK] Successfully registered with server as raspberrypiuser9148_192.168.0.198 [VER] Server protocol version: 1.1.2 [VER] Client protocol version: 1.1.2
yup, its a known error, but im kinda lazy to fix it lmao, i'll still do an issue about it for when i'll be bored
Alrighties, just take care of it whenever you'd like, i absolutely love your work!! :D
tysm !! i'll keep you updated on the upload thingy :3
Yayay, imma go sleep, imma poke around more with the software tomorrow, i should definitely become a bug tester >:D
i saw that :P
what was the command exactly ? i think that i tested some 'paths' but not every single one
Ah, uhh, i think that was an issue un my part lol, when you try to sync, you have to manually ctrl c the first time cuz it gets stuck.
Command was: sync raspberrypiuser9148_192.168.0.198 /home/defaultuser9148/Desktop/RadioUploads/ ^C[WARN] Use 'exit' to exit
botwave › sync raspberrypiuser9148_192.168.0.198 /home/defaultuser9148/Desktop/RadioUploads/ [BCAST] Syncing from local folder: /home/defaultuser9148/Desktop/RadioUploads (7 files) [BCAST] Clearing files from 1 target client(s)... [OK] raspberrypiuser9148 (192.168.0.198): Files cleared .
New issue!
What server sees: botwave › [INFO] Checking for protocol updates... [OK] You are using the latest protocol version [CLIENT] New connection from 192.168.0.198:36996 [OK] Client registered: raspberrypiuser9148 (192.168.0.198) [VER] Client protocol version: 1.1.2 [CLIENT] New connection from 192.168.0.198:37008 [OK] Client registered: raspberrypiuser9148 (192.168.0.198) [VER] Client protocol version: 1.1.2 [CLIENT] New connection from 192.168.0.198:37016 [OK] Client registered: raspberrypiuser9148 (192.168.0.198) [VER] Client protocol version: 1.1.2
What client sees:
[OK] Found pi_fm_rds at: /opt/BotWave/PiFmRds/src/pi_fm_rds [INFO] Checking for protocol updates... [OK] You are using the latest protocol version [INFO] Starting BotWave client, connecting to 192.168.0.201:9938 [INFO] Upload directory: /opt/BotWave/uploads [INFO] Press Ctrl+C to stop [INFO] Attempting to connect to 192.168.0.201:9938... [ERR] Error connecting to server: Extra data: line 2 column 1 (char 110) defaultuser9148@raspberrypiuser9148:~ $ sudo bw-client 192.168.0.201 BotWave - Client
[OK] Found pi_fm_rds at: /opt/BotWave/PiFmRds/src/pi_fm_rds [INFO] Checking for protocol updates... [OK] You are using the latest protocol version [INFO] Starting BotWave client, connecting to 192.168.0.201:9938 [INFO] Upload directory: /opt/BotWave/uploads [INFO] Press Ctrl+C to stop [INFO] Attempting to connect to 192.168.0.201:9938... [ERR] Error connecting to server: Extra data: line 2 column 1 (char 110) defaultuser9148@raspberrypiuser9148:~ $ sudo bw-client 192.168.0.201 BotWave - Client
[OK] Found pi_fm_rds at: /opt/BotWave/PiFmRds/src/pi_fm_rds [INFO] Checking for protocol updates... [OK] You are using the latest protocol version [INFO] Starting BotWave client, connecting to 192.168.0.201:9938 [INFO] Upload directory: /opt/BotWave/uploads [INFO] Press Ctrl+C to stop [INFO] Attempting to connect to 192.168.0.201:9938... [ERR] Error connecting to server: Extra data: line 2 column 1 (char 110) defaultuser9148@raspberrypiuser9148:~ $
running list on server shows the pi, but its not connected, after a while, the pi disconnects from the server
Running this:
defaultuser9148@raspberrypiuser9148:~ $ sudo bw-client 192.168.0.201 gives the extra data error: [ERR] Error connecting to server: Extra data: line 2 column 1 (char 110)
But doing it like this:
defaultuser9148@raspberrypiuser9148:~ $ sudo bw-client BotWave - Client
Enter server hostname or IP address: 192.168.0.201
Doesn't give an error
I definitely think some of these are my fault, ill test more tomorrow though.
Also a morse code feature would be very cool, like
Morse
And a queue feature :P Queue [file 1] [file2] etc..
you have to manually ctrl c the first time cuz it gets stuck.
Command was: sync raspberrypiuser9148_192.168.0.198 /home/defaultuser9148/Desktop/RadioUploads/
i'll eventually check that later
running list on server shows the pi, but its not connected, after a while, the pi disconnects from the server
yup thats normal, iirc the server perodically sends like a ping to the pi every 30s, except when uploading. the correct way of directly deleting it from the server would be to kick it
Running this:
defaultuser9148@raspberrypiuser9148:~ $ sudo bw-client 192.168.0.201 gives the extra data error: [ERR] Error connecting to server: Extra data: line 2 column 1 (char 110)
But doing it like this:
defaultuser9148@raspberrypiuser9148:~ $ sudo bw-client BotWave - Client
Enter server hostname or IP address: 192.168.0.201
Doesn't give an error
I think thats mainly just a lucky thing, the input doesnt change anything to the client / server logic, it pops before the client is initialized
Also a morse code feature would be very cool, like Morse [frequency] [speed {wpm}]
And a queue feature :P Queue [file 1] [file2] etc..
it would be great yea, i'll keep that in mind
Understood, I'll poke more at the software today and report back if I find anything else! Have a great day :D
Thank you, DefaultUser9148
On Sat, Nov 15, 2025, 10:52 Douxx @.***> wrote:
douxxtech left a comment (dpipstudio/botwave#8) https://github.com/dpipstudio/botwave/issues/8#issuecomment-3536219619
you have to manually ctrl c the first time cuz it gets stuck.
Command was: sync raspberrypiuser9148_192.168.0.198 /home/defaultuser9148/Desktop/RadioUploads/
i'll eventually check that later
running list on server shows the pi, but its not connected, after a while, the pi disconnects from the server
yup thats normal, iirc the server perodically sends like a ping to the pi every 30s, except when uploading. the correct way of directly deleting it from the server would be to kick it
Running this:
@.***:~ $ sudo bw-client 192.168.0.201 gives the extra data error: [ERR] Error connecting to server: Extra data: line 2 column 1 (char 110) But doing it like this:
@.***:~ $ sudo bw-client BotWave - Client
Enter server hostname or IP address: 192.168.0.201 Doesn't give an error
I think thats mainly just a lucky thing, the input doesnt change anything to the client / server logic, it pops before the client is initialized
Also a morse code feature would be very cool, like Morse [frequency] [speed {wpm}]
And a queue feature :P Queue [file 1] [file2] etc..
it would be great yea, i'll keep that in mind
— Reply to this email directly, view it on GitHub https://github.com/dpipstudio/botwave/issues/8#issuecomment-3536219619, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXX6NI5V77GUHEAS6ST772T343SUHAVCNFSM6AAAAACMFGDXOCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTKMZWGIYTSNRRHE . You are receiving this because you authored the thread.Message ID: @.***>
Server: Raspberry Pi 5(500) running Raspberry Pi OS Full (x64) Client: Raspberry Pi 3B running Raspberry Pi OS Lite (x64)
ISSUE:
When trying to upload a .mp3 file from the server to a client, it gets stuck until CTRL C is pressed.
This is what the server saw: botwave › upload all /home/defaultuser9148/Desktop/RadioUploads/bowling_low_quality.mp3 [BCAST] Uploading bowling_low_quality.mp3 to 1 client(s)... (chunk size: 128KB)
Waited 5 minutes just to be sure then exited
^C[WARN] Use 'exit' to exit
botwave › upload all /home/defaultuser9148/Desktop/RadioUploads/blong.wav [BCAST] Uploading blong.wav to 1 client(s)... (chunk size: 512KB) [FILE] blong.wav raspberrypiuser9148 (192.168.0.198): [------------------------- [FILE] blong.wav raspberrypiuser9148 (192.168.0.198): [------------------------- [FILE] blong.wav raspberrypiuser9148 (192.168.0.198): [#------------------------ [FILE] blong.wav raspberrypiuser9148 (192.168.0.198): [#------------------------ [FILE] blong.wav raspberrypiuser9148 (192.168.0.198): [##-----------------------
Server tried uploading an mp3 file and then a wav file, this is what the client saw:
[OK] Successfully registered with server as raspberrypiuser9148_192.168.0.198 [VER] Server protocol version: 1.1.1 [VER] Client protocol version: 1.1.1 [FILE] Downloading file from https://cdn.douxx.tech/files/ss.wav... [FILE] Downloading: [##############################] 100.0% Complete [OK] File ss.wav downloaded successfully [FILE] Preparing to receive file: blong.wav (33554432 bytes) [FILE] Receiving file data... [FILE] Using chunk size: 512KB [FILE] Uploading: [##############################] 100.0% Complete [OK] File blong.wav uploaded successfully (33554432 bytes)
Only the ss.wav test file was downloaded (with the dl command) and the previous .wav file, yet no mention of any .mp3 file.
Possible fix: Auto convert mp3 to wav before trying to upload or add a convert option :P
Back to this issue, hum, in fact the upload (& sync) command completly ignores files other than wav, the the stuck part is probably a network error. the current "protocol" is very weak and crashes at the tinyest network unstability, so thats probably why. i should do a complete rewrite one day but i dont have the knowledge to do that rn :-:
For the sync part:
botwave › sync raspberrypiuser9148_192.168.0.198 /home/defaultuser9148/Desktop/RadioUploads/ [BCAST] Syncing from local folder: /home/defaultuser9148/Desktop/RadioUploads (7 files) [BCAST] Clearing files from 1 target client(s)... [OK] raspberrypiuser9148 (192.168.0.198): Files cleared
i couldnt get it reproduced, where every thing works pretty well:
botwave › sync tina ./
[BCAST] Syncing from local folder: . (1 files)
[BCAST] Clearing files from 1 target client(s)...
[OK] tina (192.168.1.69): Files cleared
[BCAST] Uploading synchronized files to targets...
[BCAST] Found 1 WAV file(s) in .
[FILE] [1/1] Processing plasticbeach.wav...
[BCAST] Uploading plasticbeach.wav to 1 client(s)... (chunk size: 512KB)
[FILE] plasticbeach.wav tina (192.168.1.69): [##############################] 100.0% Complete
[OK] tina (192.168.1.69): Upload successful
[BCAST] Upload completed: 1/1 successful
[BCAST] Folder upload completed: 1/1 files uploaded successfully
[BCAST] Sync completed successfully
but again, thats probably the protocol again, i should fix it, but idk for when i'll be able to do that