I just upgraded to OMV 6, and when I try to log in, I get the error 500 - Internal Server Error. It never proceeds past the login screen, and I get the error whether or not I enter correct or incorrect login information.
Getting "500-Internal Server Error" on login screen
-
-
Sometimes it helps to clear the browser cache.
-
Yup, tried that, didn't help. Even tried a different computer. No dice.
-
Run as root
omv-salt stage run deploy
and post the output here, if there are errors.
-
Code
Alles anzeigenID: remove_apt_sources_list_security_0 Function: module.run Result: False Comment: An exception occurred in this state: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/state.py", line 2172, in call *cdata["args"], **cdata["kwargs"] File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__ return self.loader.run(run_func, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as return _func_or_method(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 2316, in wrapper return f(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/utils/decorators/__init__.py", line 746, in _decorate return self._call_function(kwargs) File "/usr/lib/python3/dist-packages/salt/utils/decorators/__init__.py", line 377, in _call_function six.reraise(*sys.exc_info()) File "/usr/lib/python3/dist-packages/salt/ext/six.py", line 693, in reraise raise value File "/usr/lib/python3/dist-packages/salt/utils/decorators/__init__.py", line 360, in _call_function return self._function(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/states/module.py", line 428, in run _func, returner=kwargs.get("returner"), func_args=kwargs.get(func) File "/usr/lib/python3/dist-packages/salt/states/module.py", line 473, in _call_function mret = salt.utils.functools.call_function(__salt__[name], *func_args, **func_kwargs) File "/usr/lib/python3/dist-packages/salt/utils/functools.py", line 159, in call_function return salt_function(*function_args, **function_kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__ return self.loader.run(run_func, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as return _func_or_method(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/modules/aptpkg.py", line 1892, in del_repo refresh_db() File "/usr/lib/python3/dist-packages/salt/modules/aptpkg.py", line 406, in refresh_db raise CommandExecutionError(comment) salt.exceptions.CommandExecutionError: E: The repository 'http://security.debian.org/debian-security buster-security Release' does not have a Release file.
I got a similar message for refresh_apt_database, omvextrasbaserepo, deb [arch=amd64] https://download.docker.com/linux/debian buster stable, and refresh_database_apt.
At this point, I no longer get the error, instead it hangs and then times out on login.
-
E: The repository 'http://security.debian.org/debian-security buster-security Release' does not have a Release file.
This is still buster.
Are you sure you upgraded to OMV6/bullseye?
check the output of
cat /etc/debian_version
dpkg -l | grep openmediavault
-
Code
Alles anzeigenroot@omvserver:~# cat /etc/debian_version 10.13 root@omvserver:~# root@omvserver:~# dpkg -l | grep openmediavault ii openmediavault 6.0.42-2 all openmediavault - The open network attached storage solution rc openmediavault-clamav 5.0.13-1 all openmediavault ClamAV plugin ii openmediavault-diskstats 6.0.1-1 all openmediavault disk monitoring plugin ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive ii openmediavault-lvm2 6.0.1-1 all openmediavault Logical Volume Manager (LVM2) plugin rc openmediavault-minidlna 5.0.4 all OpenMediaVault miniDLNA (DLNA server) plugin ii openmediavault-omvextrasorg 6.1.1 all OMV-Extras.org Package Repositories for OpenMediaVault rc openmediavault-tgt 5.1.2 all OpenMediaVault tgt plugin
-
I just upgraded to OMV 6,
How did you upgrade?
The output says you are still on Buster / Debian 10, but that you have OMV6 installed.
Try to run omv-release-upgrad, but might be the script is already removed.
If you get "command not found" replace buster by bullseye in the sources lists.
Codesed -i 's/buster/bullseye/g' /etc/apt/sources.list sed -i 's/buster/bullseye/g' /etc/apt/sources.list.d/*.list sed -i 's#/debian-security bullseye/updates# bullseye-security#g' /etc/apt/sources.list
Then run apt update.
If there are errors post here.
If not run apt upgrade
-
I upgraded using omv-release-upgrade, but that script is no longer there, as you suggested.
Running apt update, I got these errors:
CodeErr:16 http://deb.debian.org/debian-security bullseye/updates Release 404 Not Found [IP: 199.232.162.132 80] Hit:17 http://ppa.launchpad.net/jcfp/sab-addons/ubuntu focal InRelease Hit:18 http://packages.openmediavault.org/public shaitan InRelease Hit:19 https://packages.sury.org/php bullseye InRelease Reading package lists... Done E: The repository 'http://deb.debian.org/debian-security bullseye/updates Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
-
Did you run the sed commands in the code box? They are written in my post before apt update
-
Yes, I got those errors after that. Here is my sources.list file.
Codedeb http://deb.debian.org/debian bullseye main deb-src http://deb.debian.org/debian bullseye main deb http://deb.debian.org/debian-security/ bullseye/updates main deb-src http://deb.debian.org/debian-security/ bullseye/updates main deb http://deb.debian.org/debian bullseye-updates main deb-src http://deb.debian.org/debian bullseye-updates main
-
cat /etc/apt/sources.list.d/*.list
-
cat /etc/apt/sources.list.d/*.list
Code
Alles anzeigen# ls -l /etc/apt/sources.list.d/*.list -rw-r--r-- 1 root root 126 Oct 9 15:50 /etc/apt/sources.list.d/jcfp-ubuntu-nobetas-focal.list -rw-r--r-- 1 root root 132 Oct 9 15:50 /etc/apt/sources.list.d/jcfp-ubuntu-sab-addons-focal.list -rw-r--r-- 1 root root 511 Oct 9 15:50 /etc/apt/sources.list.d/mysql.list -rw-r--r-- 1 root root 158 Oct 9 15:50 /etc/apt/sources.list.d/omvextras.list -rw-r--r-- 1 root root 80 Oct 9 15:50 /etc/apt/sources.list.d/openmediavault-kernel-backports.list -rw-r--r-- 1 root root 205 Oct 9 15:50 /etc/apt/sources.list.d/openmediavault.list -rw-r--r-- 1 root root 60 Oct 9 15:50 /etc/apt/sources.list.d/openmediavault-local.list -rw-r--r-- 1 root root 178 Oct 9 15:50 /etc/apt/sources.list.d/openmediavault-os-security.list -rw-r--r-- 1 root root 49 Oct 9 15:50 /etc/apt/sources.list.d/php.list # cat /etc/apt/sources.list.d/*.list deb http://ppa.launchpad.net/jcfp/nobetas/ubuntu focal main # deb-src http://ppa.launchpad.net/jcfp/nobetas/ubuntu focal main deb http://ppa.launchpad.net/jcfp/sab-addons/ubuntu focal main # deb-src http://ppa.launchpad.net/jcfp/sab-addons/ubuntu focal main ### THIS FILE IS AUTOMATICALLY CONFIGURED ### # You may comment out entries below, but any other modifications may be lost. # Use command 'dpkg-reconfigure mysql-apt-config' as root for modifications. deb http://repo.mysql.com/apt/debian/ bullseye mysql-apt-config deb http://repo.mysql.com/apt/debian/ bullseye mysql-8.0 deb http://repo.mysql.com/apt/debian/ bullseye mysql-tools # deb http://repo.mysql.com/apt/debian/ bullseye mysql-tools-preview deb-src http://repo.mysql.com/apt/debian/ bullseye mysql-8.0 deb https://openmediavault-plugin-developers.github.io/packages/debian shaitan main deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable deb http://httpredir.debian.org/debian bullseye-backports main contrib non-free deb http://packages.openmediavault.org/public/ shaitan main deb https://openmediavault.github.io/packages/ shaitan main # deb http://downloads.sourceforge.net/project/openmediavault/packages/ shaitan main deb [trusted=yes] file:/var/cache/openmediavault/archives / deb http://security.debian.org/debian-security bullseye-security main contrib non-free deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free deb https://packages.sury.org/php/ bullseye main
-
Why do you have these sources?
Code-rw-r--r-- 1 root root 126 Oct 9 15:50 /etc/apt/sources.list.d/jcfp-ubuntu-nobetas-focal.list -rw-r--r-- 1 root root 132 Oct 9 15:50 /etc/apt/sources.list.d/jcfp-ubuntu-sab-addons-focal.list -rw-r--r-- 1 root root 511 Oct 9 15:50 /etc/apt/sources.list.d/mysql.list -rw-r--r-- 1 root root 49 Oct 9 15:50 /etc/apt/sources.list.d/php.list
-
Why do you have these sources?
Because docker is hard... lol
-
comment these lines in sources.list by adding a # in front
deb http://deb.debian.org/debian-security/ bullseye/updates main
deb-src http://deb.debian.org/debian-security/ bullseye/updates main
you have the correct lines in
/etc/apt/sources.list.d/openmediavault-os-security.list
-
OK, removed those, reran apt-update and apt-upgrade. Still getting same error from OMV.
-
Still getting same error from OMV.
Which one?
-
500 - Internal Server Error (when I try logging in)
-
Where are we now?
cat /etc/debian_version
dpkg -l | grep openmediavault
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!