nextcloud / suspicious_login

Detect and warn about suspicious IPs logging into Nextcloud
GNU Affero General Public License v3.0
81 stars 25 forks source link

WebDAV connections fail with Suspicious Login enabled [Flysystem] #509

Open Fraggle-Kong opened 3 years ago

Fraggle-Kong commented 3 years ago

Hi all,

when Suspicious Login is enabled, all WebDAV connection attempts fail and following fatal log message is generated:

TypeError: Argument 1 passed to League\Flysystem\Filesystem::__construct() must be an instance of League\Flysystem\AdapterInterface, instance of League\Flysystem\Local\LocalFilesystemAdapter given, called in /var/www/nextcloud/apps/suspicious_login/vendor/rubix/ml/src/Persisters/Filesystem.php on line 32

Could someone please give me a clue for a workaround or is this really something that needs to be fixed? I'm not a coder, unfortunately, I cannot address the problem on my own.

Kind regards,

christian

ChristophWurst commented 3 years ago

Sounds like this app ships flysystem and this conflicts with another app or nextcloud server dependencies

Fraggle-Kong commented 3 years ago

The problem did not occur with nextcloud 20. Since Nextcloud 21.0.1, it came up. So, I will have to leave Suspicious Login disabled until someone can show me the way. 😉

Chr157i4n commented 3 years ago

I had the same error today. In my case it was the app "External Storage: OneDrive" after disabling the app, i could login again. Try disabling your nextcloud apps, that you installed when the error first occured and then try to login.

ChristophWurst commented 3 years ago

"External Storage: OneDrive" after disabling the app

:eyes:

this conflicts with another app

bingo!

Fraggle-Kong commented 3 years ago

Yeah! That's the solution. Thanks a bunch. I really prefer Suspicious Login over External Storage: One Drive. 😉 Have a great day!

froid-san commented 2 years ago

Duplicati is also being blocked by this, any solutions? or just disable the app?

ChristophWurst commented 2 years ago

Right now there is no real workaround as long as Flysystem is a hard requirement of this app's dependencies.