A
Admincraft•3d 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•3d ago
check that your mysql credentials are correct
Mateita
MateitaOP•3d ago
how do i do that?
Skullians
Skullians•3d ago
go to your config.yml
Mateita
MateitaOP•3d ago
ok
Skullians
Skullians•3d ago
see what your DataStorage is set to
Mateita
MateitaOP•3d 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•3d ago
wrong file m8 Config.yml not BungeeSettings.yml
Mateita
MateitaOP•3d ago
in the proxy? or backend serv
Skullians
Skullians•3d ago
whatever server this error came from
Mateita
MateitaOP•3d ago
ok oh shi its on sqlite but i also got some errors on the proxy
Mateita
MateitaOP•3d ago
Mateita
MateitaOP•3d ago
its this on proxy
Skullians
Skullians•3d ago
weird
Mateita
MateitaOP•3d ago
i dont know either
Skullians
Skullians•3d ago
if it's set to SQLite, why is it mentioning mysql :/ at com.mysql.cj.jdbc.exceptions
Mateita
MateitaOP•3d 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•3d ago
yeah because the userstorage system is only for backend if you have multiple backends you'll want to use mysql well
Mateita
MateitaOP•3d ago
wait so do i need mysql drivers
Skullians
Skullians•3d ago
do you have a Config.yml file on both the proxy and backend
Mateita
MateitaOP•3d ago
on my backend? no i only have on backend
Skullians
Skullians•3d ago
do you have multiple backends
Mateita
MateitaOP•3d ago
yea 3 https://www.spigotmc.org/resources/jsmysqlfix-velocity.120092/ this is the driver i got but only on proxy
Skullians
Skullians•3d ago
no need for that
Mateita
MateitaOP•3d ago
ok
Skullians
Skullians•3d 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•3d ago
wait so in the proxy config in the DATABASE: " " do i leave empty? i put something in there
Skullians
Skullians•3d ago
wait what's the name of the proxy config file
Mateita
MateitaOP•3d ago
Host: '127.0.0.1' # Default port is 3306 Port: 3306 Database: 'Hikaru' Username: 'Administrator' Password: '' the proxy thing
Skullians
Skullians•3d ago
no the actual name of the file
Mateita
MateitaOP•3d ago
is Bungeeconfig .yml
Skullians
Skullians•3d 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•3d ago
how do i do that?
Skullians
Skullians•3d ago
well
Mateita
MateitaOP•3d ago
never played around with databases
Skullians
Skullians•3d ago
do you use a web panel to manage the mc server
Mateita
MateitaOP•3d ago
no selfhost
Skullians
Skullians•3d ago
this is pure ssh? or something
Mateita
MateitaOP•3d ago
what does ssh stand for?
Skullians
Skullians•3d ago
wait what OS are you doing this on
Mateita
MateitaOP•3d ago
windows
Skullians
Skullians•3d ago
oh god
Mateita
MateitaOP•3d ago
what
Skullians
Skullians•3d ago
why are you running a mc server on windows 😭 why self host?
Mateita
MateitaOP•3d ago
idk selhost bcs freedom
Skullians
Skullians•3d ago
💀
Mateita
MateitaOP•3d ago
and also
Skullians
Skullians•3d ago
!selfhost
Carl-bot
Carl-bot•3d 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•3d 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•3d ago
oh jesus that's awful
Mateita
MateitaOP•3d ago
its like 20m away why?
Skullians
Skullians•3d ago
awful CPU for minecraft terrible singlethread
Skullians
Skullians•3d ago
No description
Mateita
MateitaOP•3d ago
yeah but on another server i got i got intel xeon e5-2420 v2
Skullians
Skullians•3d ago
oh yeah that's even worse
Mateita
MateitaOP•3d ago
why
Skullians
Skullians•3d ago
1,388MOps/Sec singlethread
Mateita
MateitaOP•3d ago
oh yeah but the servs run fine
Skullians
Skullians•3d 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•3d 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•3d ago
if you're okay with worse performance then sure
Mateita
MateitaOP•3d ago
soo how do i make a sql database? and how do i link them servers and proxy?
Skullians
Skullians•3d ago
Mateita
MateitaOP•3d ago
ok
Skullians
Skullians•3d ago
make sure it's not the 2mb installer
Mateita
MateitaOP•3d ago
aight
Skullians
Skullians•3d ago
lmk once you have downloaded it and opened it
Mateita
MateitaOP•3d ago
ok i ran it
Skullians
Skullians•3d ago
wait for the "choosing a setup type" window
Mateita
MateitaOP•3d ago
says please wait till windows configures
Skullians
Skullians•3d ago
give it a sec
Mateita
MateitaOP•3d ago
aight im in a windopw with server stuff client only
Skullians
Skullians•3d ago
make sure it is "Server only" selected
Mateita
MateitaOP•3d ago
ok
Skullians
Skullians•3d ago
then do next and execute
Mateita
MateitaOP•3d ago
aioght its installing itself
Skullians
Skullians•3d 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•3d ago
aight im in type and networking
Skullians
Skullians•3d ago
just hit next
Mateita
MateitaOP•3d ago
ok do i need to change "development computer"?
Skullians
Skullians•3d ago
nope when you get to Accounts and Roles select a good root acc password
Mateita
MateitaOP•3d ago
do i use strong password?
Skullians
Skullians•3d ago
yes
Mateita
MateitaOP•3d ago
or legacy
Skullians
Skullians•3d ago
strong
Mateita
MateitaOP•3d ago
my password says weak 😦
Skullians
Skullians•3d ago
specify a good root password make it stronger then lol
Mateita
MateitaOP•3d ago
now its strong
Skullians
Skullians•3d ago
also do Add User
Mateita
MateitaOP•3d ago
its something with user acc now uhh what do i fill in username?
Skullians
Skullians•3d ago
anything memorable (write it down) then specify a password and also write that down
Mateita
MateitaOP•3d ago
aight "windows service"
Skullians
Skullians•3d ago
then next once done yep fine
Mateita
MateitaOP•3d ago
what name do i give it
Skullians
Skullians•3d ago
what's the default
Mateita
MateitaOP•3d ago
MYSQL80
Skullians
Skullians•3d ago
keep it like that
Mateita
MateitaOP•3d ago
"yes grant perms" "yes but let me review" no i will manage perms
Skullians
Skullians•3d ago
default one
Mateita
MateitaOP•3d ago
ok im in apply config
Skullians
Skullians•3d ago
execute or whatever
Mateita
MateitaOP•3d ago
ok aight its done now how do i link my serv?
Skullians
Skullians•3d ago
open the MySQL 8.0 command line client and enter the root password you specified
Mateita
MateitaOP•3d ago
aight
Skullians
Skullians•3d ago
lmk once you're in
Mateita
MateitaOP•3d ago
welcome to mysql monitor it says
Skullians
Skullians•3d ago
cool now
Mateita
MateitaOP•3d ago
ok
Skullians
Skullians•3d 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•3d ago
uhh pressed enter but just goes one line down with the ->
Skullians
Skullians•3d ago
did you type ; at the end
Mateita
MateitaOP•3d ago
oh
Skullians
Skullians•3d ago
lol
Mateita
MateitaOP•3d ago
you have an error in sql syntax for the right syntax use /g /h
Skullians
Skullians•3d ago
just press CTRL + C and then do the command correctly always have ; on the end of the commands
Mateita
MateitaOP•3d ago
oki works
Skullians
Skullians•3d ago
sweet
Mateita
MateitaOP•3d ago
created database
Skullians
Skullians•3d ago
what did you call it
Mateita
MateitaOP•3d ago
Hikaru
Skullians
Skullians•3d ago
so if you do SHOW DATABASES; it should show Hikaru at the bottom?
Mateita
MateitaOP•3d ago
ok lemme see
Skullians
Skullians•3d ago
or somewhere in the table
Mateita
MateitaOP•3d ago
hikaru #1 in the list
Skullians
Skullians•3d ago
right so can you show what SELECT user,host FROM mysql.user; outputs
Mateita
MateitaOP•3d ago
admin\ mysql. something on 3 rows and root
Skullians
Skullians•3d ago
screenshot please
Mateita
MateitaOP•3d ago
uhh 1s
Skullians
Skullians•3d ago
well alright
Mateita
MateitaOP•3d ago
doesnt work on the pc
Skullians
Skullians•3d ago
just what did you call your user that you created when installing
Mateita
MateitaOP•3d ago
administrator had no good names
Skullians
Skullians•3d ago
so it says administrator and then % next to it
Mateita
MateitaOP•3d ago
and it says at top Administrator host x
Skullians
Skullians•3d ago
in the table?
Mateita
MateitaOP•3d ago
yea not x
Skullians
Skullians•3d ago
okay
Mateita
MateitaOP•3d ago
XD
Skullians
Skullians•3d ago
GRANT ALL PRIVILEGES ON Hikaru.* TO 'Administrator'@'%' WITH GRANT OPTION;
Mateita
MateitaOP•3d ago
do i paste this?
Skullians
Skullians•3d ago
yeah
Mateita
MateitaOP•3d ago
You are not allowed to create a user on grant with grant*
Skullians
Skullians•3d ago
oh wait try now (edited)
Mateita
MateitaOP•3d ago
ok query oki
Skullians
Skullians•3d ago
neat now just exit
Mateita
MateitaOP•3d ago
ok question what do i fill in
Skullians
Skullians•3d ago
shoot
Mateita
MateitaOP•3d ago
in the redis thing
Skullians
Skullians•3d 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•3d ago
what
Skullians
Skullians•3d ago
hold why use redis why not PLUGINMESSAGING
Mateita
MateitaOP•3d ago
plugin message didnt work since same error XD
Skullians
Skullians•3d ago
was it the mysql error
Mateita
MateitaOP•3d ago
yea
Skullians
Skullians•3d ago
yeah not related
Mateita
MateitaOP•3d ago
....
Skullians
Skullians•3d ago
you can go back to PLUGINMESSAGING no need to set up redis which is another software lol
Mateita
MateitaOP•3d ago
welp gotta set it back up
Skullians
Skullians•3d ago
pluginmessaging is built in proxy well no need
Mateita
MateitaOP•3d ago
why?
Skullians
Skullians•3d ago
just set the BungeeMethod to PLUGINMESSAGING and that's it no need for redis
Mateita
MateitaOP•3d ago
ok but
Skullians
Skullians•3d ago
let me know once you've edited that
Mateita
MateitaOP•3d ago
in the hostname
Skullians
Skullians•3d ago
(i think it's all backends and proxy?)
Mateita
MateitaOP•3d ago
do i need to put % yea probs
Skullians
Skullians•3d ago
hostname?
Mateita
MateitaOP•3d ago
yeah
Skullians
Skullians•3d ago
where's this
Mateita
MateitaOP•3d ago
my bad not hostmane name host
Skullians
Skullians•3d ago
oh no, just localhost
Mateita
MateitaOP•3d 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•3d ago
uh
Mateita
MateitaOP•3d ago
default is true on mainmysql
Skullians
Skullians•3d ago
it's up to you
Mateita
MateitaOP•3d ago
ig ill enablre whats the worst
Skullians
Skullians•3d ago
yeah
Mateita
MateitaOP•3d ago
that could happenm
Skullians
Skullians•3d 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•3d ago
aight switching all servs to plugin messaging
Skullians
Skullians•3d ago
neat
Mateita
MateitaOP•3d ago
oh i wont port forward 3306 too lazy
Skullians
Skullians•3d 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•3d ago
oh : ( public key retrieval is not allowed on proxy
Skullians
Skullians•3d ago
where's this? send the entire log
Skullians
Skullians•3d ago
mclo.gs - Paste, share & analyse your Minecraft logs
Easily paste your Minecraft logs to share and analyse them.
Mateita
MateitaOP•3d ago
Skullians
Skullians•3d ago
right go to bungeeconfig.yml
Mateita
MateitaOP•3d ago
oki
Skullians
Skullians•3d ago
you see #PublicKeyRetrieval: false and how it is commented out? uncomment it and set it to true
Mateita
MateitaOP•3d ago
oh ok do i have to do on all servs? in the backend?
Skullians
Skullians•3d ago
yes
Mateita
MateitaOP•3d ago
ok lemme do it Done
Skullians
Skullians•3d ago
mfw this could all be so much less effort if you used a shared host 😭 okay
Mateita
MateitaOP•3d ago
do i restart?
Skullians
Skullians•3d ago
yep
Mateita
MateitaOP•3d ago
cool if less effort i like learning some new stuff
Skullians
Skullians•3d ago
fair
Mateita
MateitaOP•3d ago
may come in handy in a lifetime aight im restarting NO WAY IT HAS NO ERROR ON PROXY
Skullians
Skullians•3d ago
it booted?
Mateita
MateitaOP•3d ago
yea
Skullians
Skullians•3d ago
:LETSGO:
Mateita
MateitaOP•3d ago
lemme check backend
Skullians
Skullians•3d ago
backend time! :)
Mateita
MateitaOP•3d ago
oh i got an error about some month
Skullians
Skullians•3d ago
send it
Mateita
MateitaOP•3d ago
ok 1s
Skullians
Skullians•3d ago
no rush
Mateita
MateitaOP•3d ago
Skullians
Skullians•3d ago
[18:18:59] [VotingPlugin - Task Executor #1/ERROR] [com.velocitypowered.proxy.console.VelocityConsole]: java.nio.file.AccessDeniedException: hrmmmm
Mateita
MateitaOP•3d ago
idk man
Skullians
Skullians•3d ago
stop all the servers
Mateita
MateitaOP•3d ago
ok all and proxy?
Skullians
Skullians•3d ago
yes then hop into task manager and see if there's any java instances running still
Mateita
MateitaOP•3d ago
ok "java update scheduler"
Skullians
Skullians•3d ago
kill it tbh
Mateita
MateitaOP•3d ago
"java update checker
Skullians
Skullians•3d ago
uh kill
Mateita
MateitaOP•3d ago
done start server? started proxy no problems! 0 error
Skullians
Skullians•3d ago
NICE! now try backends
Mateita
MateitaOP•3d ago
backends got erro 2 of them waiting for last
Skullians
Skullians•3d ago
send em over are they the same error
Mateita
MateitaOP•3d ago
all 3 error lemme chcekl the lobby got those hikari errors proxy had same lifesteal
Skullians
Skullians•3d ago
did you configure the database in the backends too
Mateita
MateitaOP•3d ago
uhhh
Skullians
Skullians•3d ago
:P
Mateita
MateitaOP•3d ago
0 idea
Skullians
Skullians•3d ago
check in Config.yml
Mateita
MateitaOP•3d ago
oh in config?? shi mb aight restarting them after changes
Skullians
Skullians•3d ago
fingers crossed
Mateita
MateitaOP•3d ago
litterally SMOOOTH OPERATOR tysm man
Skullians
Skullians•3d ago
no problem lol

Did you find this page helpful?