Cant login after manual install

I did manual install from tar and occ after install i cant login with the given pass this are steps i did in ubuntu 22

sudo apt install apache2 mariadb-server libapache2-mod-php php-gd php-mysql php-curl php-mbstring php-intl php-gmp php-bcmath php-xml php-imagick php-zip
tar xjvf latest.tar.bz2
mv nextcloud /var/www/
chown -R www-data:www-data /var/www/nextcloud
vi /etc/apache2/sites-available/nextcloud.conf
a2ensite nextcloud.conf
a2enmod rewrite
service apache2 restart
sudo -u www-data php occ maintenance:install --database=‘mysql’ --database-name=‘nextcloud’ --database-user=‘nextcloud’ --database-pass=‘xxx’ --admin-user=‘admin’ --admin-pass=‘xxx’

After install i login in http://domain and try to login as user admin and pass xxx and doesnt work in nextcloud.log i see multiple times this error:

“message”:“Could not decrypt or decode encrypted session data”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36 Edg/”,“version”:“”,“exception”:{“Exception”:“Exception”,“Message”:“HMAC does not match.”,

Also login still show this after 1hour



you can find this issue here in the forum:

I hope this helps

it is a new install, how do i disable all those things?

  • truncating the oc_storages_credentials table in my database using a raw mysql client.
  • disabling totp twofactor for my account
  • disabling the default encryption module

Keep in mind this is a direction no neccesary a solution, depends on your configuration. All in all with a mysql client and occ

truncating the oc_storages_credentials

As he says with a raw mysql client. Maybe you can ask for help there.

disabling totp twofactor

some like:
occ twofactorauth:disable username or <uid>


disabling the default encryption module

occ encryption:disable

Hope this helps