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

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
marcolefo
Messages: 27
Registration: Oct 02, 2018 - 11:13

August 28, 2019 - 4:44 PM

  • 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?
Last edited by marcolefo on August 29, 2019 - 10:40, edited 1 time.
WAPT Enterprise Server: 2.6.0.17343 / Server OS: Debian bookworm /
Administration/package creation machine OS: macOS 15
marcolefo
Messages: 27
Registration: Oct 02, 2018 - 11:13

August 28, 2019 - 5:41 PM

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
WAPT Enterprise Server: 2.6.0.17343 / Server OS: Debian bookworm /
Administration/package creation machine OS: macOS 15
Yoann
Messages: 51
Registration: July 24, 2019 - 09:39

August 28, 2019 - 5:48 PM

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.
WAPT Community 1.8
marcolefo
Messages: 27
Registration: Oct 02, 2018 - 11:13

August 28, 2019 - 5:53 PM

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.
WAPT Enterprise Server: 2.6.0.17343 / Server OS: Debian bookworm /
Administration/package creation machine OS: macOS 15
marcolefo
Messages: 27
Registration: Oct 02, 2018 - 11:13

August 29, 2019 - 10:39

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.
WAPT Enterprise Server: 2.6.0.17343 / Server OS: Debian bookworm /
Administration/package creation machine OS: macOS 15
Locked