Page 1 of 2

HTTP 404 error, wapt package update

Published: November 12, 2015 - 3:06 PM
by csinfo78
Hello,

I've made some progress on my WAPT setup, but I'm still having a few problems.

First, when I try to update the WAPT client on a workstation, I get an HTTP 404 error.
Also, on a client machine, when I type `wapt-get list` in the command line, it says there are no results, even though I do have packages in my private repository.

Could you please give me a hand, as there really isn't much community support for WAPT online?

Re: HTTP Error 404 wapt package update

Published: November 12, 2015 - 4:37 PM
by sfonteneau
Hello,

the "update the WAPT client on a machine" option no longer exists.

This function posed a security risk, so it has been removed. The button, however, is still present.

The client is now updated with the waptupgrade package, which is automatically generated when the waptagent is created.

The error is therefore normal;

`wapt-get list` lists the packages installed on the machine. If nothing is installed, it will display nothing.

https://dev.tranquil.it/wiki/WAPT_-_Uti ... e_commande

Simon

Re: HTTP Error 404 wapt package update

Published: November 12, 2015 - 10:19 PM
by csinfo78
Thanks for the clarification, Simon.

Indeed, I didn't read the documentation properly.

However, I'm encountering another, more annoying problem: package installation on a client machine isn't working.
When I drag and drop a package and save it, I see a popup on the client machine indicating that the packages are updating, but no packages are actually installed, and the package I'm trying to install doesn't install at all.

The firewall is disabled, and the machine responds to pings from both the console machine and the server.

I can't figure out why this is frustrating, as I'm really close to the end.

Thanks in advance for any help you can offer.

Re: HTTP Error 404 wapt package update

Published: November 13, 2015 - 11:39
by Floflobel
Which package are you trying to install?

If it's a package you created, try using a package from the public repository.

Re: HTTP Error 404 wapt package update

Published: November 13, 2015 - 1:11 PM
by csinfo78
I'm trying to install the tis-audacity 2.0.5-1 package on a Windows 7 Pro client machine.
I'm importing from official repositories.

I see the popup on the client machine indicating package updates, but the software doesn't install.

Re: HTTP Error 404 wapt package update

Published: November 13, 2015 - 2:30 PM
by Floflobel
Try going to the local PC's website, localhost:8088, to see what's going on?

Re: HTTP Error 404 wapt package update

Published: November 13, 2015 - 2:44 PM
by csinfo78
I don't have any further information.

It doesn't show me the available packages.
However, it does list the tasks performed.

Re: HTTP Error 404 wapt package update

Published: November 13, 2015 - 9:04 PM
by sfonteneau
Hi

Can you try this on the client?

Code: Select all

wapt-get install my-audacity 
* my represents the prefix you chose

This will help us to diagnose it.

Simon

Re: HTTP Error 404 wapt package update

Published: November 16, 2015 - 2:35 PM
by csinfo78
Here's what the command gives me:

Code: Select all



C:\Users\bob>wapt-get install test-audacity
installing WAPT packages test-audacity

Results :
Critical :
 === Unavailable packages ===
  test-audacity

I downloaded the package from the wapt website, I have the package present in /var/www/wapt, it is the correct size.
My wapt-get.ini file

Code: Select all

[global]
waptupdate_task_period=120
wapt_server=https://192.168.200.47
repo_url=https://192.168.200.47/wapt
use_hostpackages=1
The repository address is easily accessible via a web browser.


EDIT: I don't understand anything anymore, I came across a topic on the wapt forum which encountered the same problem as me.
I started by trying to read the /var/www/wapt/package file which displayed some beautiful hieroglyphs.
I had to restart my server to get a normal display.
After that, I started the apache2 and wapt-server services, which I do every time I start my VM, and magically, the package installation works and all the alerts appear in my console.

My question is, where could this be coming from? My server VM has already been restarted several times before, and that has never solved the problem.

I also tried to extract the file ma-vm.local.wapt from the /var/www/wapt-host folder without success.
I tested it on another machine which is running Windows 10 but it doesn't work; I have the impression that before deploying a package, the ma-vm.wapt package must be installed on the client machine.

Re: HTTP Error 404 wapt package update

Published: November 17, 2015 - 12:17 PM
by sfonteneau
Hello,

all .wapt packages and the Packages file are archives (you can extract them with 7-Zip).

The first package the client will want to install is their machine package:
https://yourwaptip/wapt-host/client'sPCname.wapt.

This package includes a version number and dependencies.

Each time software is added or removed (from the console, for example), this package will be modified to edit the WAPT\control file and add or remove packages in the dependencies section.
The package version will then be incremented to indicate a change in instructions.

Therefore, for you, in the Packages file (once extracted): https://wapt/wapt/Packages,

you should find the complete list of your available software in your private repository: https://wapt/wapt/.
You should also see them in the "Private Repository" section of the console.

From here, if everything is OK, you should be able to run: `wapt-get install test-audacity` on your client.

If not, it's probably because the client can't download https://wapt/wapt/Packages.

Simon