[SOLVED] Windows Agent OSError(13, 'Permission denied')

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
gavit
Messages: 25
Registration: Apr 30, 2020 - 4:21 p.m.

April 30, 2020 - 4:45 PM

Good morning,

Windows 10 Client - 1909
Wapt version:
  • WAPT Server version: 1.8.1
  • WAPT Agent version: 1.8.1.6756
  • WAPT Setup version: 1.8.1.6756
  • WAPT Deploy version: 1.8.1.6756
  • Database status: OK (1.7.6.6)
My new Windows 10 agents are not showing up in the administration console since the update to 1.8.1.

When I run the command `wapt-get register /S`, I get the following result:

Code: Select all

2020-04-30 16:36:11,367 CRITICAL Bad persistent dir for package WUA-All
Error when registering host against server https://sdlwapt.int.rcacloud.it: Error on server:
OSError(13, 'Permission denied')

Here is the result of the command wapt-get register -ldebug:

Code: Select all

2020-04-30 16:18:26,059 DEBUG Default encoding : ascii
2020-04-30 16:18:26,061 DEBUG Setting encoding for stdout and stderr to cp850
2020-04-30 16:18:26,065 DEBUG Python path ['C:\\Program Files (x86)\\wapt', 'C:\\Program Files (x86)\\wapt', 'C:\\Program Files (x86)\\wapt\\python27.zip', 'C:\\Program Files (x86)\\wapt\\DLLs', 'C:\\Program Files (x86)\\wapt\\lib', 'C:\\Program Files (x86)\\wapt\\lib\\plat-win', 'C:\\Program Files (x86)\\wapt\\lib\\lib-tk', 'C:\\Program Files (x86)\\wapt', 'C:\\Program Files (x86)\\wapt\\lib\\site-packages', 'C:\\Program Files (x86)\\wapt\\lib\\site-packages\\pywin32-227-py2.7-win32.egg', 'C:\\Program Files (x86)\\wapt\\lib\\site-packages\\win32', 'C:\\Program Files (x86)\\wapt\\lib\\site-packages\\win32\\lib', 'C:\\Program Files (x86)\\wapt\\lib\\site-packages\\Pythonwin']
2020-04-30 16:18:26,066 INFO Using local waptservice configuration C:\Program Files (x86)\wapt\wapt-get.ini
2020-04-30 16:18:26,066 DEBUG Config file: C:\Program Files (x86)\wapt\wapt-get.ini
Using config file: C:\Program Files (x86)\wapt\wapt-get.ini
2020-04-30 16:18:26,071 DEBUG Thread 11484 is connecting to wapt db
2020-04-30 16:18:26,078 DEBUG Using host certificate C:\Program Files (x86)\wapt\private\rnd-c8ae2663-7034-4573-b1ee-48a0467ff58f.pem for repo global auth
2020-04-30 16:18:26,079 DEBUG Thread 11484 is connecting to wapt db
2020-04-30 16:18:26,079 DEBUG DB Start transaction
2020-04-30 16:18:26,081 DEBUG DB commit
2020-04-30 16:18:26,082 DEBUG Using host certificate C:\Program Files (x86)\wapt\private\rnd-c8ae2663-7034-4573-b1ee-48a0467ff58f.pem for repo wapt auth
2020-04-30 16:18:26,084 INFO Main repository: https://sdlwapt.int.rcacloud.it/wapt
2020-04-30 16:18:26,086 DEBUG Using host certificate C:\Program Files (x86)\wapt\private\rnd-c8ae2663-7034-4573-b1ee-48a0467ff58f.pem for repo wapt-host auth
2020-04-30 16:18:26,086 INFO User Groups:[]
2020-04-30 16:18:26,088 DEBUG WAPT base directory : C:\Program Files (x86)\wapt
2020-04-30 16:18:26,089 DEBUG Package cache dir : C:\Program Files (x86)\wapt\cache
2020-04-30 16:18:26,095 DEBUG WAPT DB Structure version;: 20190606
Registering host against server: https://sdlwapt.int.rcacloud.it
2020-04-30 16:18:26,099 DEBUG DB Start transaction
2020-04-30 16:18:26,108 DEBUG DB commit
2020-04-30 16:18:26,114 DEBUG DB Start transaction
2020-04-30 16:18:26,115 DEBUG DB commit
2020-04-30 16:18:26,121 DEBUG DB Start transaction
2020-04-30 16:18:26,121 DEBUG DB commit
2020-04-30 16:18:26,312 DEBUG DB Start transaction
2020-04-30 16:18:26,313 DEBUG DB commit
2020-04-30 16:18:26,321 DEBUG Stores cert chain check in cache
2020-04-30 16:18:26,390 INFO Run "dmidecode -q"
2020-04-30 16:18:26,398 INFO dmidecode -q command returns code 0
2020-04-30 16:18:27,910 CRITICAL Bad persistent dir for package WUA-All
2020-04-30 16:18:27,937 DEBUG Loading ssl context with cert C:\Program Files (x86)\wapt\private\rnd-c8ae2663-7034-4573-b1ee-48a0467ff58f.crt and key C:\Program Files (x86)\wapt\private\rnd-c8ae2663-7034-4573-b1ee-48a0467ff58f.pem
2020-04-30 16:18:27,944 DEBUG Starting new HTTPS connection (1): sdlwapt.int.rcacloud.it:443
2020-04-30 16:18:28,009 DEBUG https://sdlwapt.int.rcacloud.it:443 "POST /add_host HTTP/1.1" 200 104
Error when registering host against server https://sdlwapt.int.rcacloud.it: Error on server:
OSError(13, 'Permission denied')
Do you have any idea?

Sincerely,
User avatar
eblaudy
WAPT Expert
Messages: 16
Registration: August 5, 2019 - 2:15 PM

April 30, 2020 - 5:48 PM

Hello,
did you correctly launch postconf.sh on your server during the update to 1.8.1?
Developer WAPT at TRANQUIL IT
User avatar
eblaudy
WAPT Expert
Messages: 16
Registration: August 5, 2019 - 2:15 PM

April 30, 2020 - 5:49 PM

Otherwise, can you tell me the permissions on /var/www/html/ssl?
Developer WAPT at TRANQUIL IT
gavit
Messages: 25
Registration: Apr 30, 2020 - 4:21 p.m.

May 4, 2020 - 4:01 PM

Hello,

I restarted opt/wapt/waptserver/scripts/postconf.sh and it's working.

Thank you very much for your quick response.

Sincerely,
Gaëtan Vittaz
Locked