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