rubycon
rubycon copied to clipboard
Add and list commands do not work
This project hasn't been updated in three years, so I don't know if the author is still active.
The add
command returns an error saying the the server name is already in use even though it is not.
The list
command also returns an error stating error: undefined method``+' for nil:NilClass
The list
command works for me, however since I updated Ruby on one of my machines (Debian 8.5) certain --command
s (ex: sm plugins list
) return error: invalid byte sequence in UTF-8
instead of results. The same commands work fine on another machine (Xubuntu 14.04) when polling the same server, however (so this is presumably related to Ruby version or other environmental differences between the two distros).
I hope this is still maintained, as I still use of it constantly.
Hi @ClayF & @dinsdalepiranha,
thanks for reporting the issues first of all. I haven't worked on rubycon for quite some time, but I'm happy to take a look.
@dinsdalepiranha Do you know which version of Ruby you're running? ruby --version
will tell you. Having that information would help resolving the bug.
@ClayF I'll come back to you as soon as I have some time digging into the code again. For starters, can you give me the content of your ~/.config/rubycon/rubycon.yml
file? Make sure to strip the RCON password if it's included. :)
clayf@ubuntu-1404-vm01:~$ cat .config/rubycon/rubycon.yml
---
- !ruby/object:Rubycon::Server
name: testserver
address: 10.0.0.128
port: 27015
rcon: abc123
- !ruby/object:Rubycon::Server
name: testserver2
address: 10.0.0.128
port: 27015
rcon: abc123
clayf@ubuntu-1404-vm01:~$ ruby --version
ruby 2.1.8p440 (2015-12-16 revision 53160) [x86_64-linux-gnu]
Seems that it adds the server to the file, but still says the alias is taken.
I resolved the issue I reported. Turned out it was a single invalid character in a single plugin's name.
I tried to reproduce it locally, but can't (probably because of the missing plugin). In general it seems rubycon is quite reluctant to accept broken / wrong encodings.
Can't really work on it as I don't have a TF2 server running anymore. :/