[RESOLVED] Packages that won't install

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
Locked
agatoi
Messages: 23
Registration: Apr 05, 2017 - 12:03

April 23, 2019 - 2:49 PM

Good morning,
An issue on Windows 10 Education machines outside the domain.
The client installation (1.7.3.5) was done manually.
Upon shutdown, the packages do not install.
However, from the console of another computer, I can trigger updates and other installations.

Versions:
WAPT Server version: 1.7.3.5
WAPT Agent version: 1.7.3.5
WAPT Setup version: 1.7.3.5
WAPT Deploy version: 1.7.3.5
DB status: OK (1.7.3.2)


Below is a log file:

Code: Select all

Get packages index
u'235 paquet(s) dans le d\xe9p\xf4t\nLe syst\xe8me est \xe0 jour'
Get packages index
u'1 nouveau(x) paquet(s)\n236 paquet(s) dans le d\xe9p\xf4t\nPaquets \xe0 mettre \xe0 jour : admin-secret.stemarie-aizenay.local(=1),aiz-oembackgrounds(=1-2)'
2019-04-23 14:22:10,473 ERROR Traceback (most recent call last):

  File "C:\Program Files (x86)\wapt\lib\site-packages\rocket\worker.py", line 171, in run
    self.run_app(conn)

  File "C:\Program Files (x86)\wapt\lib\site-packages\rocket\methods\wsgi.py", line 245, in run_app
    output = self.app(environ, self.start_response)

  File "C:\Program Files (x86)\wapt\lib\site-packages\flask\app.py", line 2309, in __call__
    return self.wsgi_app(environ, start_response)

  File "C:\Program Files (x86)\wapt\lib\site-packages\flask\app.py", line 2295, in wsgi_app
    response = self.handle_exception(e)

  File "C:\Program Files (x86)\wapt\lib\site-packages\flask\app.py", line 1741, in handle_exception
    reraise(exc_type, exc_value, tb)

  File "C:\Program Files (x86)\wapt\lib\site-packages\flask\app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()

  File "C:\Program Files (x86)\wapt\lib\site-packages\flask\app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)

  File "C:\Program Files (x86)\wapt\lib\site-packages\flask\app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)

  File "C:\Program Files (x86)\wapt\lib\site-packages\flask\app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()

  File "C:\Program Files (x86)\wapt\lib\site-packages\flask\app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)

  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 102, in decorated
    return f(*args, **kwargs)

  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 708, in upgrade
    wapt().update()

  File "C:\Program Files (x86)\wapt\common.py", line 4181, in update
    self._update_repos_list(force=force,filter_on_host_cap=filter_on_host_cap)

  File "C:\Program Files (x86)\wapt\common.py", line 4136, in _update_repos_list
    self.waptdb.db.execute('delete from wapt_package where repo not in (%s)' % (','.join('"%s"'% r.name for r in self.repositories)))

OperationalError: database is locked

2019-04-23 14:22:11,342 ERROR Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\lib\site-packages\rocket\main.py", line 144, in start
    time.sleep(THREAD_STOP_CHECK_INTERVAL)
IOError: [Errno 4] Interrupted function call
Last edited by agatoi on Apr 24, 2019 - 10:58, edited 1 time.
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

April 23, 2019 - 3:16 PM

Hello,
I suspect a conflict between waptservice and wapt-get.
When stopped, the waptexit application attempts to trigger the upgrade via waptservice.
If waptservice doesn't respond (quickly enough...), it tries to launch the upgrade directly using the wapt-get upgrade command (possible because it's running in the system account).

In your case, it's likely that the upgrade task is indeed launched but returns control to waptexit too late, and that simultaneously, wapt-get upgrade, which was mistakenly launched in parallel, is locking the database.

You should try with wapt 1.7.4 (release candidate), as waptexit's behavior has been changed. (https://wapt.tranquil.it/wapt/releases/wapt-1.7.4-rc1/ )
Specifically, waptservice returns control to waptexit before calculating the updates to apply, thus reducing the probability of a timeout.
Tranquil IT
agatoi
Messages: 23
Registration: Apr 05, 2017 - 12:03

April 23, 2019 - 3:24 PM

Thanks for the info.
My server is running Debian 9.8 (64-bit)
Which ".deb" file should I use?
Command uneme -r:

Code: Select all

Linux srvwapt 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linux
agatoi
Messages: 23
Registration: Apr 05, 2017 - 12:03

April 24, 2019 - 10:28

The server and console updates went smoothly.

However, in the console, all devices appear as disconnected (including those that are powered on), but the console still indicates which devices require an update. I observed this with the Google Chrome package update. But since they are marked as disconnected, I cannot force updates from the console, particularly WAPT upgrade.

On one of the workstations that is giving me trouble, I manually updated the agent and it now shows up correctly in the console and is marked as connected when it is turned on.

The updates happen on shutdown, so my main problem is solved.

However, on the machine in question, the WAPT upgrade package generates an error (due to the fact that I have already manually updated the client?):

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 3700, in install_wapt
    packagetempdir = entry.unzip_package(cabundle=self.cabundle)
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 2094, in unzip_package
    raise e
IOError: [Errno 22] invalid mode ('rb') or filename: u'c:\\windows\\temp\\wapth0dac7\\waptagent.exe'
IOError: [Errno 22] invalid mode ('rb') or filename: u'c:\\windows\\temp\\wapth0dac7\\waptagent.exe'
agatoi
Messages: 23
Registration: Apr 05, 2017 - 12:03

April 24, 2019 - 10:58

Okay, after several restarts, the Wapt upgrade package is no longer showing an error and the computer is correctly detected.

However, I would appreciate a solution for computers that are listed as disconnected (even though they are powered on) in the console.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

April 30, 2019 - 09:14

The wapt package installs a task scheduled for an hour plus a few minutes.

Therefore, during this time the machine appears disconnected.
Locked