A
Admincraft•2mo ago
Mateita

Error with votingplugin some communication or driver error

Yo so recently i tried swapping to the votingplugin proxy wide, but using REDIS it doesnt work nor PLUGINMESSAGING even if i followed all steps, it gives me some communication error after followign every step and also some hikari pool thing
232 Replies
Skullians
Skullians•2mo ago
check that your mysql credentials are correct
Mateita
MateitaOP•2mo ago
how do i do that?
Skullians
Skullians•2mo ago
go to your config.yml
Mateita
MateitaOP•2mo ago
ok
Skullians
Skullians•2mo ago
see what your DataStorage is set to
Mateita
MateitaOP•2mo ago
lemme see "# What type of bungee setup Requires restart and set on all servers Available: SOCKETS PLUGINMESSAGING (Recommended) MYSQL REDIS BungeeMethod: REDIS" btw the " i put them
Skullians
Skullians•2mo ago
wrong file m8 Config.yml not BungeeSettings.yml
Mateita
MateitaOP•2mo ago
in the proxy? or backend serv
Skullians
Skullians•2mo ago
whatever server this error came from
Mateita
MateitaOP•2mo ago
ok oh shi its on sqlite but i also got some errors on the proxy
Mateita
MateitaOP•2mo ago
Mateita
MateitaOP•2mo ago
its this on proxy
Skullians
Skullians•2mo ago
weird
Mateita
MateitaOP•2mo ago
i dont know either
Skullians
Skullians•2mo ago
if it's set to SQLite, why is it mentioning mysql :/ at com.mysql.cj.jdbc.exceptions
Mateita
MateitaOP•2mo ago
it was set to sqlite on the backend serv this last log is from proxy which is set on "redis" and i havent found any settings about sqlite there
Skullians
Skullians•2mo ago
yeah because the userstorage system is only for backend if you have multiple backends you'll want to use mysql well
Mateita
MateitaOP•2mo ago
wait so do i need mysql drivers
Skullians
Skullians•2mo ago
do you have a Config.yml file on both the proxy and backend
Mateita
MateitaOP•2mo ago
on my backend? no i only have on backend
Skullians
Skullians•2mo ago
do you have multiple backends
Mateita
MateitaOP•2mo ago
yea 3 https://www.spigotmc.org/resources/jsmysqlfix-velocity.120092/ this is the driver i got but only on proxy
Skullians
Skullians•2mo ago
no need for that
Mateita
MateitaOP•2mo ago
ok
Skullians
Skullians•2mo ago
so you'll want to make a mysql database, set the DataStorage to MYSQL in all of your backend config.ymls and configure the credentials
Mateita
MateitaOP•2mo ago
wait so in the proxy config in the DATABASE: " " do i leave empty? i put something in there
Skullians
Skullians•2mo ago
wait what's the name of the proxy config file
Mateita
MateitaOP•2mo ago
Host: '127.0.0.1' # Default port is 3306 Port: 3306 Database: 'Hikaru' Username: 'Administrator' Password: '' the proxy thing
Skullians
Skullians•2mo ago
no the actual name of the file
Mateita
MateitaOP•2mo ago
is Bungeeconfig .yml
Skullians
Skullians•2mo ago
e.g. myfilename.yml ah so yes, you need to make a MySQL database and link all the backends and proxy to the same one
Mateita
MateitaOP•2mo ago
how do i do that?
Skullians
Skullians•2mo ago
well
Mateita
MateitaOP•2mo ago
never played around with databases
Skullians
Skullians•2mo ago
do you use a web panel to manage the mc server
Mateita
MateitaOP•2mo ago
no selfhost
Skullians
Skullians•2mo ago
this is pure ssh? or something
Mateita
MateitaOP•2mo ago
what does ssh stand for?
Skullians
Skullians•2mo ago
wait what OS are you doing this on
Mateita
MateitaOP•2mo ago
windows
Skullians
Skullians•2mo ago
oh god
Mateita
MateitaOP•2mo ago
what
Skullians
Skullians•2mo ago
why are you running a mc server on windows 😭 why self host?
Mateita
MateitaOP•2mo ago
idk selhost bcs freedom
Skullians
Skullians•2mo ago
💀
Mateita
MateitaOP•2mo ago
and also
Skullians
Skullians•2mo ago
!selfhost
Carl-bot
Carl-bot•2mo ago
Home hosting has its drawbacks / caveats
- Is your internet connection fast enough? In both directions (around 50M is usually enough; you should check here)? You don't connect the server to your router via WiFi, do you? - Does your ISP provide a somewhat static, public, IPv4 address? - Are you aware and able to deal with the security impliations? - Is your computer powerful enough to run both a client and a server? - Does any inhabitant (human or not!) mind the noise, heat and energy cost of a machine running 24/7? - Alternatively, is your playerbase OK with the server not being there when you aren't?
Admincraft Canned Responses
Mateita
MateitaOP•2mo ago
internet is about 1GBPS upl and down; the computer has got a threadripper 2950x 64 gigs ram i do not mind noise
Skullians
Skullians•2mo ago
oh jesus that's awful
Mateita
MateitaOP•2mo ago
its like 20m away why?
Skullians
Skullians•2mo ago
awful CPU for minecraft terrible singlethread
Skullians
Skullians•2mo ago
No description
Mateita
MateitaOP•2mo ago
yeah but on another server i got i got intel xeon e5-2420 v2
Skullians
Skullians•2mo ago
oh yeah that's even worse
Mateita
MateitaOP•2mo ago
why
Skullians
Skullians•2mo ago
1,388MOps/Sec singlethread
Mateita
MateitaOP•2mo ago
oh yeah but the servs run fine
Skullians
Skullians•2mo ago
why not use shared hosting? better CPU, better operating system (windows is complete bloat), no hassle with making databases you still get full file access
Mateita
MateitaOP•2mo ago
yeah but like i have these pcs why not use them i dont have electricity bills since i use solar panels to power
Skullians
Skullians•2mo ago
if you're okay with worse performance then sure
Mateita
MateitaOP•2mo ago
soo how do i make a sql database? and how do i link them servers and proxy?
Skullians
Skullians•2mo ago
Mateita
MateitaOP•2mo ago
ok
Skullians
Skullians•2mo ago
make sure it's not the 2mb installer
Mateita
MateitaOP•2mo ago
aight
Skullians
Skullians•2mo ago
lmk once you have downloaded it and opened it
Mateita
MateitaOP•2mo ago
ok i ran it
Skullians
Skullians•2mo ago
wait for the "choosing a setup type" window
Mateita
MateitaOP•2mo ago
says please wait till windows configures
Skullians
Skullians•2mo ago
give it a sec
Mateita
MateitaOP•2mo ago
aight im in a windopw with server stuff client only
Skullians
Skullians•2mo ago
make sure it is "Server only" selected
Mateita
MateitaOP•2mo ago
ok
Skullians
Skullians•2mo ago
then do next and execute
Mateita
MateitaOP•2mo ago
aioght its installing itself
Skullians
Skullians•2mo ago
once done in the type and networking, you can keep the TCP/IP the same, keep doing next until you get to the accounts and roles select a good memorable root pass
Mateita
MateitaOP•2mo ago
aight im in type and networking
Skullians
Skullians•2mo ago
just hit next
Mateita
MateitaOP•2mo ago
ok do i need to change "development computer"?
Skullians
Skullians•2mo ago
nope when you get to Accounts and Roles select a good root acc password
Mateita
MateitaOP•2mo ago
do i use strong password?
Skullians
Skullians•2mo ago
yes
Mateita
MateitaOP•2mo ago
or legacy
Skullians
Skullians•2mo ago
strong
Mateita
MateitaOP•2mo ago
my password says weak 😦
Skullians
Skullians•2mo ago
specify a good root password make it stronger then lol
Mateita
MateitaOP•2mo ago
now its strong
Skullians
Skullians•2mo ago
also do Add User
Mateita
MateitaOP•2mo ago
its something with user acc now uhh what do i fill in username?
Skullians
Skullians•2mo ago
anything memorable (write it down) then specify a password and also write that down
Mateita
MateitaOP•2mo ago
aight "windows service"
Skullians
Skullians•2mo ago
then next once done yep fine
Mateita
MateitaOP•2mo ago
what name do i give it
Skullians
Skullians•2mo ago
what's the default
Mateita
MateitaOP•2mo ago
MYSQL80
Skullians
Skullians•2mo ago
keep it like that
Mateita
MateitaOP•2mo ago
"yes grant perms" "yes but let me review" no i will manage perms
Skullians
Skullians•2mo ago
default one
Mateita
MateitaOP•2mo ago
ok im in apply config
Skullians
Skullians•2mo ago
execute or whatever
Mateita
MateitaOP•2mo ago
ok aight its done now how do i link my serv?
Skullians
Skullians•2mo ago
open the MySQL 8.0 command line client and enter the root password you specified
Mateita
MateitaOP•2mo ago
aight
Skullians
Skullians•2mo ago
lmk once you're in
Mateita
MateitaOP•2mo ago
welcome to mysql monitor it says
Skullians
Skullians•2mo ago
cool now
Mateita
MateitaOP•2mo ago
ok
Skullians
Skullians•2mo ago
you want to create a database CREATE DATABASE voting; (change then name as you please) if you do it right, it should say QUERY OK, 1 row affected (0.xx sec)
Mateita
MateitaOP•2mo ago
uhh pressed enter but just goes one line down with the ->
Skullians
Skullians•2mo ago
did you type ; at the end
Mateita
MateitaOP•2mo ago
oh
Skullians
Skullians•2mo ago
lol
Mateita
MateitaOP•2mo ago
you have an error in sql syntax for the right syntax use /g /h
Skullians
Skullians•2mo ago
just press CTRL + C and then do the command correctly always have ; on the end of the commands
Mateita
MateitaOP•2mo ago
oki works
Skullians
Skullians•2mo ago
sweet
Mateita
MateitaOP•2mo ago
created database
Skullians
Skullians•2mo ago
what did you call it
Mateita
MateitaOP•2mo ago
Hikaru
Skullians
Skullians•2mo ago
so if you do SHOW DATABASES; it should show Hikaru at the bottom?
Mateita
MateitaOP•2mo ago
ok lemme see
Skullians
Skullians•2mo ago
or somewhere in the table
Mateita
MateitaOP•2mo ago
hikaru #1 in the list
Skullians
Skullians•2mo ago
right so can you show what SELECT user,host FROM mysql.user; outputs
Mateita
MateitaOP•2mo ago
admin\ mysql. something on 3 rows and root
Skullians
Skullians•2mo ago
screenshot please
Mateita
MateitaOP•2mo ago
uhh 1s
Skullians
Skullians•2mo ago
well alright
Mateita
MateitaOP•2mo ago
doesnt work on the pc
Skullians
Skullians•2mo ago
just what did you call your user that you created when installing
Mateita
MateitaOP•2mo ago
administrator had no good names
Skullians
Skullians•2mo ago
so it says administrator and then % next to it
Mateita
MateitaOP•2mo ago
and it says at top Administrator host x
Skullians
Skullians•2mo ago
in the table?
Mateita
MateitaOP•2mo ago
yea not x
Skullians
Skullians•2mo ago
okay
Mateita
MateitaOP•2mo ago
XD
Skullians
Skullians•2mo ago
GRANT ALL PRIVILEGES ON Hikaru.* TO 'Administrator'@'%' WITH GRANT OPTION;
Mateita
MateitaOP•2mo ago
do i paste this?
Skullians
Skullians•2mo ago
yeah
Mateita
MateitaOP•2mo ago
You are not allowed to create a user on grant with grant*
Skullians
Skullians•2mo ago
oh wait try now (edited)
Mateita
MateitaOP•2mo ago
ok query oki
Skullians
Skullians•2mo ago
neat now just exit
Mateita
MateitaOP•2mo ago
ok question what do i fill in
Skullians
Skullians•2mo ago
shoot
Mateita
MateitaOP•2mo ago
in the redis thing
Skullians
Skullians•2mo ago
# MYSQL Required on all setups
# MYSQL INFO --------------------------
Host: 'localhost'
# Default port is 3306
Port: 3306
Database: 'Hikaru'
Username: 'Administrator'
Password: 'yourpasswordforadministratorhere'
# Max number of connections
MaxConnections: 1
# Table name prefix, for use with mutliple servers
# Don't use with PLUGINMESSAGING bungee setup
Prefix: 'REPLACE_ME_'
# MYSQL Required on all setups
# MYSQL INFO --------------------------
Host: 'localhost'
# Default port is 3306
Port: 3306
Database: 'Hikaru'
Username: 'Administrator'
Password: 'yourpasswordforadministratorhere'
# Max number of connections
MaxConnections: 1
# Table name prefix, for use with mutliple servers
# Don't use with PLUGINMESSAGING bungee setup
Prefix: 'REPLACE_ME_'
Mateita
MateitaOP•2mo ago
what
Skullians
Skullians•2mo ago
hold why use redis why not PLUGINMESSAGING
Mateita
MateitaOP•2mo ago
plugin message didnt work since same error XD
Skullians
Skullians•2mo ago
was it the mysql error
Mateita
MateitaOP•2mo ago
yea
Skullians
Skullians•2mo ago
yeah not related
Mateita
MateitaOP•2mo ago
....
Skullians
Skullians•2mo ago
you can go back to PLUGINMESSAGING no need to set up redis which is another software lol
Mateita
MateitaOP•2mo ago
welp gotta set it back up
Skullians
Skullians•2mo ago
pluginmessaging is built in proxy well no need
Mateita
MateitaOP•2mo ago
why?
Skullians
Skullians•2mo ago
just set the BungeeMethod to PLUGINMESSAGING and that's it no need for redis
Mateita
MateitaOP•2mo ago
ok but
Skullians
Skullians•2mo ago
let me know once you've edited that
Mateita
MateitaOP•2mo ago
in the hostname
Skullians
Skullians•2mo ago
(i think it's all backends and proxy?)
Mateita
MateitaOP•2mo ago
do i need to put % yea probs
Skullians
Skullians•2mo ago
hostname?
Mateita
MateitaOP•2mo ago
yeah
Skullians
Skullians•2mo ago
where's this
Mateita
MateitaOP•2mo ago
my bad not hostmane name host
Skullians
Skullians•2mo ago
oh no, just localhost
Mateita
MateitaOP•2mo ago
Host: '%' i put this oh ok GlobalData: Enabled: true or fa;se GlobalData: Enabled: true # Use existing connection above UseMainMySQL: false # Mysql settings only used if above is false to be precise
Skullians
Skullians•2mo ago
uh
Mateita
MateitaOP•2mo ago
default is true on mainmysql
Skullians
Skullians•2mo ago
it's up to you
Mateita
MateitaOP•2mo ago
ig ill enablre whats the worst
Skullians
Skullians•2mo ago
yeah
Mateita
MateitaOP•2mo ago
that could happenm
Skullians
Skullians•2mo ago
:prayge: also, % means a user can be logged into on all network IPs which is actually bad practice but if you don't port forward port 3306 you will be fine
Mateita
MateitaOP•2mo ago
aight switching all servs to plugin messaging
Skullians
Skullians•2mo ago
neat
Mateita
MateitaOP•2mo ago
oh i wont port forward 3306 too lazy
Skullians
Skullians•2mo ago
good idea lol there's no need to if all servers are running locally then you don't need to forward it
Mateita
MateitaOP•2mo ago
oh : ( public key retrieval is not allowed on proxy
Skullians
Skullians•2mo ago
where's this? send the entire log
Skullians
Skullians•2mo ago
mclo.gs - Paste, share & analyse your Minecraft logs
Easily paste your Minecraft logs to share and analyse them.
Mateita
MateitaOP•2mo ago
Skullians
Skullians•2mo ago
right go to bungeeconfig.yml
Mateita
MateitaOP•2mo ago
oki
Skullians
Skullians•2mo ago
you see #PublicKeyRetrieval: false and how it is commented out? uncomment it and set it to true
Mateita
MateitaOP•2mo ago
oh ok do i have to do on all servs? in the backend?
Skullians
Skullians•2mo ago
yes
Mateita
MateitaOP•2mo ago
ok lemme do it Done
Skullians
Skullians•2mo ago
mfw this could all be so much less effort if you used a shared host 😭 okay
Mateita
MateitaOP•2mo ago
do i restart?
Skullians
Skullians•2mo ago
yep
Mateita
MateitaOP•2mo ago
cool if less effort i like learning some new stuff
Skullians
Skullians•2mo ago
fair
Mateita
MateitaOP•2mo ago
may come in handy in a lifetime aight im restarting NO WAY IT HAS NO ERROR ON PROXY
Skullians
Skullians•2mo ago
it booted?
Mateita
MateitaOP•2mo ago
yea
Skullians
Skullians•2mo ago
:LETSGO:
Mateita
MateitaOP•2mo ago
lemme check backend
Skullians
Skullians•2mo ago
backend time! :)
Mateita
MateitaOP•2mo ago
oh i got an error about some month
Skullians
Skullians•2mo ago
send it
Mateita
MateitaOP•2mo ago
ok 1s
Skullians
Skullians•2mo ago
no rush
Mateita
MateitaOP•2mo ago
Skullians
Skullians•2mo ago
[18:18:59] [VotingPlugin - Task Executor #1/ERROR] [com.velocitypowered.proxy.console.VelocityConsole]: java.nio.file.AccessDeniedException: hrmmmm
Mateita
MateitaOP•2mo ago
idk man
Skullians
Skullians•2mo ago
stop all the servers
Mateita
MateitaOP•2mo ago
ok all and proxy?
Skullians
Skullians•2mo ago
yes then hop into task manager and see if there's any java instances running still
Mateita
MateitaOP•2mo ago
ok "java update scheduler"
Skullians
Skullians•2mo ago
kill it tbh
Mateita
MateitaOP•2mo ago
"java update checker
Skullians
Skullians•2mo ago
uh kill
Mateita
MateitaOP•2mo ago
done start server? started proxy no problems! 0 error
Skullians
Skullians•2mo ago
NICE! now try backends
Mateita
MateitaOP•2mo ago
backends got erro 2 of them waiting for last
Skullians
Skullians•2mo ago
send em over are they the same error
Mateita
MateitaOP•2mo ago
all 3 error lemme chcekl the lobby got those hikari errors proxy had same lifesteal
Skullians
Skullians•2mo ago
did you configure the database in the backends too
Mateita
MateitaOP•2mo ago
uhhh
Skullians
Skullians•2mo ago
:P
Mateita
MateitaOP•2mo ago
0 idea
Skullians
Skullians•2mo ago
check in Config.yml
Mateita
MateitaOP•2mo ago
oh in config?? shi mb aight restarting them after changes
Skullians
Skullians•2mo ago
fingers crossed
Mateita
MateitaOP•2mo ago
litterally SMOOOTH OPERATOR tysm man
Skullians
Skullians•2mo ago
no problem lol

Did you find this page helpful?