games647 / FlexibleLogin

A Sponge minecraft server plugin for second factor authentication
https://forums.spongepowered.org/t/8872
MIT License
87 stars 23 forks source link

Error while creating file #156

Closed whoisyouwhoisme closed 5 years ago

whoisyouwhoisme commented 5 years ago

Hi, i use FlexibleLogin 0.17.4 with spongeforge-1.12.2-2768-7.1.6-RC3666, and i want to use local storage. With default config i have crash with error "Error while creating file "/plugins"" Any ideas?

Log: https://pastebin.com/v52h5hA6

games647 commented 5 years ago

Do you checked if the path already exists? Could please post the exact config value you chose, because /plugins doesn't refer to the subfolder plugins instead the leading / will go to the root directory.

whoisyouwhoisme commented 5 years ago

Hello, thanks for answer. Config is default.

Other plugins (for example, LuckPerms) create their files normally. The config is created normally, the localization file is created normally, but the database cannot be created.

Config: https://pastebin.com/ywJGw6NQ

games647 commented 5 years ago

Could you please test a development build? I think it's weird that FlexibleLogin wants to write in the plugins folder, although Sponge has a separate configs folder.

whoisyouwhoisme commented 5 years ago

Flexiblelogin 0.18 it's dev build? I tried, the same error, but the path in the error is different.

Log: https://pastebin.com/K1B0b1FQ

Updated Sponge to spongeforge-1.12.2-2768-7.1.6-RC3671 And forge to forge-1.12.2-14.23.5.2836-universal I also tried on the server without plugins and mods (except Sponge) and have same error

games647 commented 5 years ago

Do you have some kind of special characters in the absolute path to the server. Could you maybe also try a stable version of spongeforge? I just tried to reproduce it, but it worked for me using:

whoisyouwhoisme commented 5 years ago

No, there are no special characters in the path to the server folder (Tested on Windows 10 and Ubuntu with Java 8) Path to the plugins folder - C:\Users\aleee\Desktop\Server\plugins

I downloaded spongeforge-1.12.2-2768-7.1.5 and forge-1.12.2-14.23.5.2768-universal, and i have same error. Tested with Flexiblelogin 0.17.4 and 0.18 - no difference

Full server start log: https://pastebin.com/trcYfTNs Plugin config: https://pastebin.com/dqCZBvzn

games647 commented 5 years ago

I published a change that will output the generated jdbc could you run the newest build and post the again.

whoisyouwhoisme commented 5 years ago

Yes, i ran, log: https://pastebin.com/mCaw7FW4

games647 commented 5 years ago

Okay that took a while. I think I found it. Could you try it out?

whoisyouwhoisme commented 5 years ago

Yeah, tested. Log: https://pastebin.com/Dph6JSqD

whoisyouwhoisme commented 5 years ago

Yeah, thanks, build №61 worked