WorldGuard

WorldGuard

8M Downloads

Failed to initialize SQLite profile cache / Flags don't work

LadyCailinBot opened this issue ยท 14 comments

commented

WORLDGUARD-3611 - Reported by psychodeath666

Hi,

I'm running worldguard/worldedit 6.1 on Spigot 1.8.8. Everytime the server restarts I get after enabling worldguard the following warning:

[21:22:55] [Server thread/INFO]: [WorldGuard] Enabling WorldGuard v6.1
[21:22:59] [Server thread/WARN]: [WorldGuard] Failed to initialize SQLite profile cache

Worldguard is set to use the local SQLite database (default). The database is always empty. Defining regions works fine, ingame flags don't work.
I tried to use a database with MySQL, no connection errors but the database is empty, too.
If I write "/wg reload" the config is reloading, the set flags are not shown in the "chat history"

Seems like worldguard doesn't write/save some data?!?

Could there be a disturbing plugin?
Other Running plugins:

  • BungeeServerSigns
  • Essentials
  • Essentials Chat
  • LaggRemover
  • multiworld
  • Parkour
  • PermissionsEX
  • ServerSigns
  • SingColorz
  • Vault
  • VoxelSniper
commented

Comment by psychodeath666

Here is the log:
http://pastebin.com/6b8ypg2X

Problem:
The ingame flags of worldguard are not working. I just wondered whether it depends on the console warning "Failed to initialize SQLite profile cache"...

commented

Comment by wizjany

yes, you already said they "are not working". perhaps you should give this a read: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

commented

Comment by psychodeath666

Ok, so here is my procedure to define a region and flag it:

  • //wand
  • setting up the region with left-/rightclick
  • //expand vert
  • /rg define
  • /rg flag <true/false/...>
  • /rg priority <number of priority (most times "1")>
  • (adding owners/users: /rg addowner )
  • /rg save
  • /rg info (the shown information is right but take no affect, just protection works)

My config of worldguard is attached.

I hope this is more helpful for you... ;)

commented

Comment by wizjany

can you give me a sample output of /rg info? i don't understand if the flags aren't getting set in the first place or are just disappearing after say, a server restart.

(the shown information is right but take no affect, just protection works)
this implies that the flags are being set correctly, but are not doing what they should, HOWEVER, build protection is also handled by a flag (which just has different defaults). can you elaborate on what flags you are setting and how they aren't working in specific?

commented

Comment by psychodeath666

The sample output of the /rg info and the "flag-report" are attached.

commented

Comment by wizjany

passthrough: working as intended, build overrides it
other-explosion: working as intended, tnt is covered by its own flag ("tnt")
ghast-fireball: seems this is a really old bug, should be fixed in latest build. fireballs were being protected for block damage but not entity damage i guess.
water-flow/lava-flow: you need to enable "high-frequency-flags" in your config.yml before these will take effect.
invincible: no idea what an invincible potion is? if the flag is set to "deny" it will override worldguard's godmode, if it's set to "allow" it will prevent players from harm. that's basically it. seems to work fine as well.
game-mode: are you testing this as a server op or with * permissions? it won't change your gamemode if you are. working as intended.

commented

Comment by psychodeath666

I've exclusive tested all the listed flags with a non-op user. The only permission addicted to worldguard he got is "worldguard.region.flag.flags.*"

commented

Comment by wizjany

is that user also the given owner of the region?

commented

Comment by psychodeath666

No, cause I want to flag some creative/survival regions for non-owners/non-members of the region...

commented

Comment by wizjany

not sure, it's working out of the box for me: https://gfycat.com/NeighboringWatchfulHeron
the only thing (in WG) i could think of is that you have movement events off, but your config seems to be fine. does the "entry" flag work? (eg "/rg flag entry deny")

commented

Comment by psychodeath666

Yes, the entry-deny flag works...

commented

Comment by wizjany

worldguard doesn't support sqlite for regions. the "SQLite profile cache" it's talking about is the UUID<>Username cache. If there's an issue with your flags, it's unrelated to that line and we need more info.

commented

Comment by psychodeath666

What kind of more info? There are no more warns or errors in the log...it seems like all is running normal, folder structures and files are ok, all the configs per world are ok and flags are written...

commented

Comment by wizjany

pastebin your log and describe what's not working.