Geoblocker stopping me login

Nextcloud version (eg, 20.0.5): 28
Operating system and version (eg, Ubuntu 22.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.25
PHP version (eg, 7.4): 8.1

The issue you are facing:
Just setup a new Nextcloud server, setup Geoblocker and set my country on whitelist. Switched on 2FA.

Logged out and tried to test it, now I cannot log back in as Geoblocker says I’m not in the UK. Any ideas how to switch off Geoblocker in SSH?

Is this the first time you’ve seen this error? (Y/N):yes

Any help would be appreciated to save me rebuilding.

Many thanks.

Thanks, I tried these commnd lines but they do not work, and I’m not using docker.

Everytime I replace my username, it returns user unknown and I’ve tried to run it as it says

Geoblocker is causing an exception during the login:

  • Option 1: Deactivate the Geoblocker App over the command line
    • sudo -u %NEXTCLOUD_INSTANCE_USER% php occ app:disable geoblocker

The occ is fairly central to a lot of admin tasks in Nextcloud. Running it does very a bit depending on OS and installation method. You may need to adapt it to your environment.

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#using-the-occ-command

Thanks, I solved it using this command to disable the Geoblocker.

sudo -u www-data php occ app:disable geoblocker

I think with 2FA you do not need a Geoblocker.

Thanks it was a mistake I made. Managed to thankfully deactivate it with the above command line.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.