Nextcloud Snap - how to check for login attempts?

I’m curious to know if anyone else has been trying to log into my Nextcloud

Well, there’s your Nextcloud logs. :slight_smile:

Admin → Logging

Afaik, login attempts are not logged in nextcloud server log.

you must activate the audit logfile (as a file, not in syslog). Then you can monitor all login attempts with a jq-filter:

tail -F /path/to/audit.log | jq -r 'select(.message | test("Login|Logout")) | [.time, .remoteAddr, .user, .method, .url, .message, .userAgent] | join(" - ")'

Here I explained it more in deep:

Much luck,
ernolf

1 Like

strange thing.

My Snap autoupdated today to 29.0.4snap2. I’m currently at my work, and don’t have access to the server.

I’m seeing ā€œWe have detected multiple invalid login attemptsā€ on the login page. Right now, I can’t login via web browser, but I can still access the app from my iPhone just fine.

I tried to use VPN on my Steam Deck and disable my WiFi on my phone to make sure that I’m using 5G (and get different public IP), but I’m still seeing that error.

29.0.2snap2 was fine and I didn’t experience any issues.

Did something happened?

the issue you are describing is certainly not an autoupdate issue. depending on which apps are enabled… I’m guessing ā€˜suspicious login app’ you may want to double check on that and whitelist your ā€œworkā€ IP.

you may want to try disabling the app

but without information about your system, we’re all poking around in the dark. please consider raising an issue here and run the debugging script before raising an issue

weird thing is that it wasn’t tied to my work IP

It happened on 5G, Proton VPN, Private Internet Access VPN and home network.

It did disappear after 24h so I didn’t revert anything