# Updating Ubuntu from 20.04 to 22.04 borked config (redis WRONGPASS)

**URL:** <https://help.nextcloud.com/t/updating-ubuntu-from-20-04-to-22-04-borked-config-redis-wrongpass/167280>\
**Category:** ℹ️ Support\
**Created:** [July 31, 2023, 5:14pm UTC](https://help.nextcloud.com/t/updating-ubuntu-from-20-04-to-22-04-borked-config-redis-wrongpass/167280 "2023-07-31T17:14:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wizkid](https://help.nextcloud.com/letter_avatar/wizkid/32/5_5575768a8748004e209b776fc1b2916d.png) [@wizkid](https://help.nextcloud.com/u/wizkid)\
**Post date:** [July 31, 2023, 5:14pm UTC](https://help.nextcloud.com/t/updating-ubuntu-from-20-04-to-22-04-borked-config-redis-wrongpass/167280/1 "2023-07-31T17:14:47Z")

</div>

**[I was being dumb as usual, I use split config.php approach and was trying to update only config.php instead of xyz.config.php]**  
I don’t have any issue anymore, I may just delete the thread in a day.

I upgraded from Ubuntu 20.04 to 22.04 and not instead of login page I see `internal server error`

After checking around some more:  
Running any occ command  
`sudo -u www-data php occ`  
returns:

```auto
RedisException: ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct? in /var/www/nextcloud/lib/private/RedisFactory.php:143

```

I’m using unix socket, most of the suggested solutions didn’t help ([SOLVED: RedisException ERR AUTH \<password\> (Level 3 Nextcloud Log Error) - #4 by buzz](https://help.nextcloud.com/t/solved-redisexception-err-auth-password-level-3-nextcloud-log-error/88175/4) - if I add password to redis.conf then error goes from ERR AUTH to WRONGPASS. At the point it’s suggested I used ‘user’ =\> ‘default’ in config.php but that doesn’t help either)

Attaching config.php (tried with/without user default) - currently trying without any authentication

```auto
<?php
$CONFIG = array (
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'dbindex' => 0,
    'timeout' => 1.5,
  ),
  'overwrite.cli.url' => 'https://<server address>/',
  'htaccess.RewriteBase' => '/',
  'objectstore' =>
  array (
    'class' => 'OC\\Files\\ObjectStore\\S3',
    'arguments' =>
    array (
      'bucket' => '<bucket name>',
      'autocreate' => false,
      'key' => '<key>',
      'secret' => '<secret>',
      'hostname' => 's3.eu-central-1.wasabisys.com',
      'port' => 443,
      'use_ssl' => true,
      'region' => 'eu-central-1',
      'use_path_style' => false,
    ),
  ),
  'instanceid' => '<id>',
  'passwordsalt' => '<pass>',
  'secret' => '<secret>',
  'trusted_domains' =>
  array (
    0 => '<server address>',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '25.0.9.2',
  'dbname' => '<db name>',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'db_',
  'mysql.utf8mb4' => true,
  'dbuser' => '<user>',
  'dbpassword' => '<pass>',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'admin',
  'mail_domain' => '<mail>',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => '<smtp.mail>',
  'mail_smtpport' => '587',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '<email from>',
  'mail_smtppassword' => '<pass>',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 0,
  'encryption.legacy_format_support' => false,
  'encryption.key_storage_migrated' => false,
  'default_phone_region' => 'DE',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'updater.secret' => '<secret>',
);

```

Following redis-cli works

```auto
{14:40}/var/www/nextcloud ➭ sudo -u www-data redis-cli -s /var/run/redis/redis.sock
redis /var/run/redis/redis.sock> AUTH default <pass>
OK
redis /var/run/redis/redis.sock> PING
PONG

```

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 12:50pm UTC](https://help.nextcloud.com/t/updating-ubuntu-from-20-04-to-22-04-borked-config-redis-wrongpass/167280/3 "2024-12-14T12:50:56Z")

</div>


