Page 1 of 1

[Solved] waptupgrade: 404 Client Error: Not Found for url

Published: August 28, 2019 - 4:44 PM
by marcolefo
  • WAPT Server version: 1.7.4
  • WAPT Agent version: 1.7.4.6165
  • Server OS: Debian Stretch (9.9)
  • Windows 10 administration machine operating system/package creation
Good morning,

We have just updated our server (1.6 => 1.7).
We are experiencing a problem with the package update waptupgrade.

We can generate it and upload it to the server without any problem.

When we attempt an update on a client (W10):

Code: Select all

id;Description;Résumé;Heure de début;Traces;Créé par
22;Installation of iut-waptupgrade(=1.7.4.6165-25) (task #22);"Exception: Erreur lors de l'installation de [u'iut-waptupgrade(=1.7.4.6165-25)']: erreurs dans les paquets [[(u'https://waptserver/wapt/iut-waptupgrade_1.7.4.6165-25_all.wapt', '404 Client Error: Not Found for url: https://waptserver/wapt/iut-waptupgrade_1.7.4.6165-25_all.wapt'), None], [u'iut-waptupgrade(=1.7.4.6165-25)', PackageEntry(u'iut-waptupgrade',u'1.7.4.6165-25') , u'Traceback (most recent call last):\n  File ""C:\\Program Files (x86)\\wapt\\common.py"", line 4367, in install\n    raise EWaptDownloadError(\'Package file %s not downloaded properly.\' % p.filename)\nEWaptDownloadError: Package file iut-waptupgrade_1.7.4.6165-25_all.wapt not downloaded properly.\n']]";2019-08-28T15:38:36.069000;"Traceback (most recent call last):
  File ""C:\Program Files (x86)\wapt\waptservice\service.py"", line 1374, in run
    self.running_task.run()
  File ""C:\Program Files (x86)\wapt\waptservice\waptservice_common.py"", line 515, in run
    self._run()
  File ""C:\Program Files (x86)\wapt\waptservice\waptservice_common.py"", line 960, in _run
    self.result.get('errors',[])))
Exception: Erreur lors de l'installation de [u'iut-waptupgrade(=1.7.4.6165-25)']: erreurs dans les paquets [[(u'https://waptserver/wapt/iut-waptupgrade_1.7.4.6165-25_all.wapt', '404 Client Error: Not Found for url: https://waptserver/wapt/iut-waptupgrade_1.7.4.6165-25_all.wapt'), None], [u'iut-waptupgrade(=1.7.4.6165-25)', PackageEntry(u'iut-waptupgrade',u'1.7.4.6165-25') , u'Traceback (most recent call last):\n  File ""C:\\Program Files (x86)\\wapt\\common.py"", line 4367, in install\n    raise EWaptDownloadError(\'Package file %s not downloaded properly.\' % p.filename)\nEWaptDownloadError: Package file iut-waptupgrade_1.7.4.6165-25_all.wapt not downloaded properly.\n']]

Exception: Erreur lors de l'installation de [u'iut-waptupgrade(=1.7.4.6165-25)']: erreurs dans les paquets [[(u'https://waptserver/wapt/iut-waptupgrade_1.7.4.6165-25_all.wapt', '404 Client Error: Not Found for url: https://waptserver/wapt/iut-waptupgrade_1.7.4.6165-25_all.wapt'), None], [u'iut-waptupgrade(=1.7.4.6165-25)', PackageEntry(u'iut-waptupgrade',u'1.7.4.6165-25') , u'Traceback (most recent call last):\n  File ""C:\\Program Files (x86)\\wapt\\common.py"", line 4367, in install\n    raise EWaptDownloadError(\'Package file %s not downloaded properly.\' % p.filename)\nEWaptDownloadError: Package file iut-waptupgrade_1.7.4.6165-25_all.wapt not downloaded properly.\n']]
Traceback (most recent call last):
  File ""C:\Program Files (x86)\wapt\waptservice\service.py"", line 1374, in run
    self.running_task.run()
  File ""C:\Program Files (x86)\wapt\waptservice\waptservice_common.py"", line 515, in run
    self._run()
  File ""C:\Program Files (x86)\wapt\waptservice\waptservice_common.py"", line 960, in _run
    self.result.get('errors',[])))
Exception: Erreur lors de l'installation de [u'iut-waptupgrade(=1.7.4.6165-25)']: erreurs dans les paquets [[(u'https://waptserver/wapt/iut-waptupgrade_1.7.4.6165-25_all.wapt', '404 Client Error: Not Found for url: https://waptserver/wapt/iut-waptupgrade_1.7.4.6165-25_all.wapt'), None], [u'iut-waptupgrade(=1.7.4.6165-25)', PackageEntry(u'iut-waptupgrade',u'1.7.4.6165-25') , u'Traceback (most recent call last):\n  File ""C:\\Program Files (x86)\\wapt\\common.py"", line 4367, in install\n    raise EWaptDownloadError(\'Package file %s not downloaded properly.\' % p.filename)\nEWaptDownloadError: Package file iut-waptupgrade_1.7.4.6165-25_all.wapt not downloaded properly.\n']]
";orga

We can see that he is trying to download iut-waptupgrade_1.7.4.6165-25_all.wapt but it doesn't exist on the server (it's missing) _all (to the file):

Code: Select all

waptserver:/var/www/wapt # ls -al iut-wapt*
-rw-r--r-- 1 wapt www-data 27125044 août  28 15:37 iut-waptupgrade_1.7.4.6165-25.wapt
If I create a symbolic link iut-_all.waptwaptupgrade_1.7.4.6165-25 => iut-waptupgrade_1.7.4.6165-25.wapt So it works.

Amazing, isn't it?

Re: waptupgrade: 404 Client Error: Not Found for url

Published: August 28, 2019 - 5:41 PM
by marcolefo
We tried editing the package with pyscripter and indeed:
  • The architecture indicated in the control is all
  • The generated and uploaded file does not have the _all

Re: waptupgrade: 404 Client Error: Not Found for url

Published: August 28, 2019 - 5:48 PM
by Yoann
Hello,

I had the same problem yesterday after migrating from version 1.6 to 1.7 on CentOS 7.
I could no longer download packages from the WAPT console in version 1.6 and the official repository (https://store.wapt.fr/).

When you run the postconf.sh, the packages in the repository are renamed.
In version 1.6, the packages are in the form xxx-xxxxx_xxxx_all.wapt , and in version 1.7, they are in the form xxx-xxxxx_xxxx.wapt.

The problem is that WAPT agents in version 1.6 cannot find and download the new package generated in version 1.7 with the new form (xxx-waptupgrade.wapt). A symbolic link or a copy of the package solves this problem.

Regards.

Re: waptupgrade: 404 Client Error: Not Found for url

Published: August 28, 2019 - 5:53 PM
by marcolefo
Ah, thank you for that answer.

That explains everything. I didn't see that in the update documentation :).

Okay, we'll update via GPO; that should fix the problem.

Re: waptupgrade: 404 Client Error: Not Found for url

Published: August 29, 2019 - 10:39
by marcolefo
So I can confirm that deployment via GPO bypasses the problem.

I wish I had known this before performing the update; we would have saved valuable time.