[Resolved] Upload_package folder does not exist

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
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
perch
Messages: 18
Registration: Nov 08, 2017 - 09:28

November 15, 2017 - 4:23 PM

Hello,


I just created my first package, and the `wapt-get build-upload` command fails to upload it to the server because the destination folder doesn't seem to exist.
On my system, it should be accessible at https://wapt.hugo.local/upload_package/.

I installed the server on Debian. Is there a command or parameter I need to use to set up the `upload_package` share?

In the meantime, I generated the package locally using `wapt-get build-package` and uploaded it via the console.
Last edited by percherie on 21 Nov 2017 - 17:14, edited 1 time.
perch
Messages: 18
Registration: Nov 08, 2017 - 09:28

November 21, 2017 - 5:13 PM

I simply misused the command. I thought this command was for creating the package and sending it immediately.

You can close the thread.
erict
Messages: 56
Registration: December 22, 2017 - 7:09 PM

December 22, 2017 - 7:21 PM

Good morning,

Now, I'd appreciate it if you could explain your last post. Indeed, after reading the documentation, it's clear to me that this command is supposed to create the package and send it immediately:
On the page: https://www.wapt.fr/fr/doc/CreationPaqu ... index.html I read:
Once the package project is created, you can launch the package build without modification from the Windows command prompt.

`wapt-get build-upload -ic:\waptdev\tis-tightvnc-wapt`

Note:

When you run this command, here's what actually happens:

The manifest file is generated with the list of files contained in the package;
The directory C:\waptdev\tis-tightvnc-wapt is compressed with a canonical name for WAPT packages;
The signature is added (requires the presence of the private key);
The WAPT file is uploaded via HTTP to the WAPT repository;
The index file http://wapt/wapt/Packages , taking into account the new package or the new version of the package if it already existed;

The package is ready to be deployed.
So, I don't understand why this directory (upload_package) doesn't exist on the server, and why I'm getting a 502 error, even though it just asks me for the login/password to connect to the server??
Especially since it's this command that initiates the upload; I didn't ask it to!

If someone can shed some light on this, I'm completely lost.

Thanks in advance
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

December 22, 2017 - 7:39 PM

Upload package is not a directory:

https://github.com/tranquilit/WAPT/blob ... er.py#L418

To address error 502:
viewtopic.php?f=13&t=887

Without this essential information, I unfortunately cannot do anything.
erict
Messages: 56
Registration: December 22, 2017 - 7:09 PM

December 22, 2017 - 9:08 PM

Hello,

Server: Debian (Linux): Wapt 1.3.13
Development machine: Windows 10

Regarding `upload_package`, it is indeed a function, but the error message I receive refers to a directory:
FATAL ERROR: HTTPError: 502 Server Error: Bad Gateway for url: https://srvwapt.chezmoi.fr/upload_packa ... 1_all.wapt
(chezmoi is not the actual domain name, of course).
Obviously, there is no trace of this directory on the server, in /var/www/.

Regards
erict
Messages: 56
Registration: December 22, 2017 - 7:09 PM

December 22, 2017 - 9:10 PM

Further to this...

I should clarify, of course, that the directive in the wapt-get.ini file is correct:
repo_url=http://srvwapt.chezmoi.fr/wapt
erict
Messages: 56
Registration: December 22, 2017 - 7:09 PM

December 22, 2017 - 9:16 PM

Continued...

To add to that, I've just taken a closer look at the code in the link you sent me, and it seems to me that line 218 refers to this directory:

Code: Select all

@app.route('/upload_package/<string:filename>',methods=['POST'])
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

December 22, 2017 - 9:26 PM

Can you explain how you're using the build-upload command?

This is the first time I've encountered this kind of problem.

Edit:

To test:

We agree that when you use the "import from file" button and select the file generated during your build upload in c:\waptdev, it works, right?
erict
Messages: 56
Registration: December 22, 2017 - 7:09 PM

December 22, 2017 - 10:12 PM

I'm using it by following this documentation to the letter:
https://www.wapt.fr/fr/doc/CreationPaqu ... index.html

First, with the command:
`wapt-get make-template c:\download\ganttproject.exe yourprefix-ganttproject`.

Then, I make a few modifications to the `control` file in pyscript (which is launched automatically by the previous command). Just the name of the package maintainer, the version number, and then I modify the `uninstallkey` in setup.py (variable and function parameter).

After saving these two files, I run the command:

`wapt-get build-upload -ic:\waptdev\yourprefix-ganttproject`.

Everything goes well. It creates the `.wapt` file, then asks me for the server username and password, but the script ends with the error I mentioned earlier.

Indeed, I can confirm that if I use "import from file" from the console on the development machine, the package is successfully imported into the repository.

The development machine on which I perform these operations is, of course, not the Windows machine used as the administration console (as specified in the documentation).
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

December 22, 2017 - 10:52 PM

Indeed, I don't really have an explanation; I've never encountered this problem.

The error returned is a 502 error:
https://fr.wikipedia.org/wiki/Liste_des ... pplication.

The fact that it works when imported as a file means that the upload is working.


If you are in the testing phase with Wapt, we advise you to go directly to version 1.5 without going through 1.3.13.

There was a bug with package uploads that has been fixed.

This will also save you from having to migrate from 1.3 to 1.5

: https://www.wapt.fr/wapt-1.5/Installati ... nux-debian
Locked