1

Litebans Error

CBYT 9/30/21 5:28 pm history
505
10/3/2021 11:05 pm
Hello! I've recently purchased and attempted to setup the Litebans plugin for my servers website and im getting console errors. Here is the console message:

[23:24:13] [Server thread/INFO]: [LiteBans] Enabling LiteBans v2.7.5
[23:24:13] [Server thread/ERROR]: [LiteBans] [!!] Could not load config.yml.
[23:24:13] [Server thread/ERROR]: [LiteBans] [!!] Configuration error found: while scanning for the next token
found character '\t(TAB)' that cannot start any token. (Do not use \t(TAB) for indentation)
in 'string', line 1, column 1:
# LiteBans config.yml generated ...
^

[23:24:13] [Server thread/ERROR]: [LiteBans] [!!] Your configuration might be invalid. It can be checked using: yaml-online-parser.appspot.com/
[23:24:13] [Server thread/ERROR]: [LiteBans] [!!] LiteBans will use the default configuration until errors have been fixed.
[23:24:13] [Server thread/INFO]: [LiteBans] Loading SQL driver: h2 1.4.197 (org.h2.Driver)
[23:24:13] [Server thread/INFO]: [LiteBans] Connecting to database...
[23:24:13] [Server thread/INFO]: [LiteBans] litebans-pool - Starting...
[23:24:14] [Server thread/INFO]: [LiteBans] litebans-pool - Start completed.
[23:24:14] [Server thread/INFO]: [LiteBans] Connected to [jdbc:h2:///home/container/plugins/LiteBans/litebans] (163.2 ms).
[23:24:14] [Server thread/INFO]: [LiteBans] Database connection fully initialized (664.4 ms).
[23:24:14] [Server thread/INFO]: [LiteBans] v2.7.5 enabled. Startup took 761 ms.

And here is the config:

pastebin.com/ceErr2iu

I cant figure out why this isnt working, The Config for the website is but the plugin part of it isnt.
Posted by
CBYT
Level 8 : Apprentice Cake
2

  Have something to say?

JoinSign in

5

JohnPattox
09/30/2021 5:50 pm
Level 21 : Expert Network
I looked at the PasteBin, and the problem is very clear. The log tells you this:

found character '\t(TAB)' that cannot start any token. (Do not use \t(TAB) for indentation)
in 'string', line 1, column 1:

And look at the pastebin again, the first line. It has a tab, and after a while the #.

Remove the empty space before # and try again.
1
CBYT
09/30/2021 6:30 pm
Level 8 : Apprentice Cake
Diddn't notice that, thanks! For some reason the host im using has a auto indentation thing that made it do that.
1
JohnPattox
09/30/2021 5:31 pm
Level 21 : Expert Network
Can you use Pastebin to post the config?

Did you check the config at the site suggested in the config?
1
CBYT
09/30/2021 5:38 pm
Level 8 : Apprentice Cake
Also, I've made it into pastebin
1
CBYT
09/30/2021 5:35 pm
Level 8 : Apprentice Cake
Yes, It has the same error as the console messgage.
1

Welcome