Absolute newbie, internal server error after updating OpenSUSE

Nextcloud version (eg, 20.0.5): command for version also doesn’t seem to work

 sudo -u www-data php occ
sudo: unknown user: www-data
sudo: error initializing audit plugin sudoers_audit

Operating system and version (eg, Ubuntu 20.04): openSUSE-20210616-0
Apache or nginx version (eg, Apache 2.4.25): Server version: Apache/2.4.51 (Linux/SUSE)
PHP version (eg, 7.4): apache2-mod_php7-7.4.24-1.1.x86_64

The issue you are facing:
Updated OpenSUSE software with zypper update.
Now I can login to nextcloud but get internal server error after that.

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

Steps to replicate it:

  1. Go to website
  2. Login
  3. Profit? :stuck_out_tongue:

I’m a complete noob who got it working with tutorials, but other than that i’m not sure where to start.

The output of your Nextcloud log in Admin > Logging:
Cant get here, unless I can pull it from the server?

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'instanceid' => 'ocgkl5o0buae',
  'passwordsalt' => '***',
  'secret' => '***',
  'trusted_domains' =>
  array (
  'datadirectory' => '/srv/www/htdocs/data',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => '',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '****',
  'dbpassword' => '****',
  'installed' => true,
  'maintenance' => false,

The output of your Apache/nginx/system log in /var/log/____:
I’m not sure how to get this, sorry. I have a couple of files in /var/log/apache2.
But i’m unsure how to properly read them and which one is needed.

openSUSE uses another user and group for webserver (and nextlloud).

user: www-data
group: www-data

user: wwwrun
group: www

sudo -u wwwrun ....
Hopefully all works fine with openSUSE and sudo.

Thank you for your quick answer, for some reason none of my passwords work on wwwrun.
So I might be F’ed here. Good thing it was a fairly fresh install so I can do it again but I won’t learn why it broke this way, which is a bummer.

You can use this:

Login with root or change to root and then:
su - wwwrun
or only
su wwwrun
sudo -u wwwrun -s

Hi @Stroopwafel

Not a direct answer to your question… But maybe as a complete newbie it would be better to use Ubuntu or Debian. Not because I think openSUSE is a poor distro or anything like that, but because Ubuntu and Debian are simply much more widespread and most tutorials out there are based on one of them. It’s also more likely to find help in the forums.

Regardless of that I wouldn’t recommend using a rolling release distro like openSUSE Tumbleweed for a server. If you want to stay with openSUSE, I would highly recommend switching to Leap.

Yea I understand, worked fine up until the update.
I’ll take a look at some other distro’s ^^ thanks :slight_smile: