[SOLVED] Issue updating form 5.0 to 5.1

killmasta93

Renowned Member
Aug 13, 2017
973
57
68
30
Hi,
I was wondering if someone could shed some light on the issue im having. Currently want to update from 5.0 to 5.1 after it updates cant access the webgui i try checking netstat -apn | grep 8006 but i get no response i then check the pveproxy status and it says does not exists
any ideas?

Thank you
 
Thanks for the reply im getting this error
Code:
root@pmg:~# apt-get install proxmox-mailgateway
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package proxmox-mailgateway is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'proxmox-mailgateway' has no installation candidate
 
do you have a valid repo configured?

post the output of:

> apt-get update
 
Thanks for the reply i added this repo

Code:
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription


Code:
root@pmg:~# apt-get update
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://ftp.debian.org/debian stretch InRelease
Ign:3 https://enterprise.proxmox.com/debian/pmg stretch InRelease
Hit:4 http://ftp.debian.org/debian stretch-updates InRelease
Ign:5 https://enterprise.proxmox.com/debian/pmg stretch Release
Ign:6 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise amd64 Packages
Hit:7 http://ftp.debian.org/debian stretch Release
Ign:8 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise all Packages
Ign:10 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise Translation-en_US
Get:11 http://download.proxmox.com/debian/pve stretch InRelease [3,052 B]
Ign:12 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise Translation-en
Ign:6 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise amd64 Packages
Get:13 http://download.proxmox.com/debian/pve stretch/pve-no-subscription amd64 Packages [370 kB]
Ign:8 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise all Packages
Ign:10 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise Translation-en_US
Ign:12 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise Translation-en
Ign:6 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise amd64 Packages
Ign:8 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise all Packages
Ign:10 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise Translation-en_US
Ign:12 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise Translation-en
Ign:6 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise amd64 Packages
Ign:8 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise all Packages
Ign:10 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise Translation-en_US
Ign:12 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise Translation-en
Ign:6 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise amd64 Packages
Ign:8 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise all Packages
Ign:10 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise Translation-en_US
Ign:12 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise Translation-en
Err:6 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise amd64 Packages
  401  Unauthorized
Ign:8 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise all Packages
Ign:10 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise Translation-en_US
Ign:12 https://enterprise.proxmox.com/debian/pmg stretch/pmg-enterprise Translation-en
Fetched 373 kB in 2s (127 kB/s)
Reading package lists... Done
W: The repository 'https://enterprise.proxmox.com/debian/pmg stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://enterprise.proxmox.com/debian/pmg/dists/stretch/pmg-enterprise/binary-amd64/Packages  401  Unauthorized
E: Some index files failed to download. They have been ignored, or old ones used instead.
 
Thanks for the reply i added this repo

Code:
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription

So it works or why do you do not send the requested apt-get update output?
 
Thanks for the reply, sorry didnt read well was actually looking at the proxmox Virtual part.

so i added

Code:
deb http://download.proxmox.com/debian/pmg stretch pmg-no-subscription

that did the trick
 
Update: so everything was working well until i was getting this.
Code:
/usr/local/sbin/clamav-unofficial-sigs.sh: line 1069: kill: (8076) - No such process Failed to restart clamav-daemon.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files See system logs and 'systemctl status clamav-daemon.service' for details.
i saw clamav daemon was not running i tried running manual and i get this

Code:
root@pmg:~# service clamav-daemon status
● clamav-daemon.service - Clam AntiVirus userspace daemon
   Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/clamav-daemon.service.d
           └─extend.conf
   Active: active (running) since Tue 2018-12-18 08:34:10 -05; 1s ago
     Docs: man:clamd(8)
           man:clamd.conf(5)
           https://www.clamav.net/documents/
  Process: 8831 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS)
  Process: 8828 ExecStartPre=/bin/mkdir /run/clamav (code=exited, status=1/FAILURE)
 Main PID: 8834 (clamd)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/clamav-daemon.service
           └─8834 /usr/sbin/clamd --foreground=true

Dec 18 08:34:10 pmg systemd[1]: Starting Clam AntiVirus userspace daemon...
Dec 18 08:34:10 pmg mkdir[8828]: /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
Dec 18 08:34:10 pmg systemd[1]: Started Clam AntiVirus userspace daemon.
Dec 18 08:34:10 pmg clamd[8834]: Received 0 file descriptor(s) from systemd.
Dec 18 08:34:10 pmg clamd[8834]: clamd daemon 0.100.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Dec 18 08:34:10 pmg clamd[8834]: Running as user clamav (UID 105, GID 110)
Dec 18 08:34:10 pmg clamd[8834]: Log file size limited to 4294967295 bytes.
Dec 18 08:34:10 pmg clamd[8834]: Reading databases from /var/lib/clamav/
Dec 18 08:34:10 pmg clamd[8834]: Bytecode: Security mode set to "TrustSigned".

I get it to work if i reboot the machine
so then i tried to rename /run/clamav.old and reboot i was getting this ill post back any updates
Code:
root@pmg:~# service clamav-daemon status
● clamav-daemon.service - Clam AntiVirus userspace daemon
   Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/clamav-daemon.service.d
           └─extend.conf
   Active: active (running) since Tue 2018-12-18 08:44:52 -05; 2min 12s ago
     Docs: man:clamd(8)
           man:clamd.conf(5)
           https://www.clamav.net/documents/
  Process: 800 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS)
  Process: 796 ExecStartPre=/bin/mkdir /run/clamav (code=exited, status=0/SUCCESS)
 Main PID: 802 (clamd)
    Tasks: 2 (limit: 4915)
   CGroup: /system.slice/clamav-daemon.service
           └─802 /usr/sbin/clamd --foreground=true

Dec 18 08:45:09 pmg clamd[802]: Detection of broken executables enabled.
Dec 18 08:45:09 pmg clamd[802]: Mail files support enabled.
Dec 18 08:45:09 pmg clamd[802]: OLE2 support enabled.
Dec 18 08:45:09 pmg clamd[802]: OLE2: Blocking all VBA macros.
Dec 18 08:45:09 pmg clamd[802]: PDF support enabled.
Dec 18 08:45:09 pmg clamd[802]: SWF support enabled.
Dec 18 08:45:09 pmg clamd[802]: HTML support enabled.
Dec 18 08:45:09 pmg clamd[802]: XMLDOCS support enabled.
Dec 18 08:45:09 pmg clamd[802]: HWP3 support enabled.
Dec 18 08:45:09 pmg clamd[802]: Self checking every 3600 seconds.
 
Update, so clamav still keeps turning off keep saying this when i try to start

Code:
Dec 19 00:20:49 pmg systemd[1]: Starting Clam AntiVirus userspace daemon...
Dec 19 00:20:49 pmg mkdir[14643]: /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
Dec 19 00:20:49 pmg systemd[1]: Started Clam AntiVirus userspace daemon.
Dec 19 00:20:50 pmg clamd[14648]: Received 0 file descriptor(s) from systemd.
Dec 19 00:20:50 pmg clamd[14648]: clamd daemon 0.100.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Dec 19 00:20:50 pmg clamd[14648]: Running as user clamav (UID 105, GID 110)
Dec 19 00:20:50 pmg clamd[14648]: Log file size limited to 4294967295 bytes.
Dec 19 00:20:50 pmg clamd[14648]: Reading databases from /var/lib/clamav/
Dec 19 00:20:50 pmg clamd[14648]: Bytecode: Security mode set to "TrustSigned".

Anyideas?
 
Maybe ClamAV is crashing as described before with similar error because of the yara rules. I posted therefor two solutions: One should just fix the yara rules, which have problems, second disable yara rules at all. I recently preferred to choose the second way right now.

However, I may stop continuing to "support" my own ClamAV adjustments as after checking all antivirus options and discussing about BitDefender, ESET and Avast, I will purchase license for Avast and enable this one and may disable ClamAV. It's because ClamAV has worse detection quality, also with the additional signatures and some of the unofficial sigs provide false-positives, as they try to determine phishing, which isn't phishing.

For Avast I currently work out to get a partner/reseller, so you may in future be able to purchase license cheaper through me. Unsure, if Proxmox will in future offer Avast licenses together with their subscriptions, would be a good idea.
 
Thanks for the reply, i disabled all yara rules but i guess im just going to format and start again no big deal. As for the Avast let me know im pretty interested.

Thank you again
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!