Page 1 of 1

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

Published: April 30, 2020 - 4:45 PM
by gavit
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,

Re: Windows Agent OSError(13, 'Permission denied')

Published: April 30, 2020 - 5:48 PM
by eblaudy
Hello,
did you correctly launch postconf.sh on your server during the update to 1.8.1?

Re: Windows Agent OSError(13, 'Permission denied')

Published: April 30, 2020 - 5:49 PM
by eblaudy
Otherwise, can you tell me the permissions on /var/www/html/ssl?

Re: Windows Agent OSError(13, 'Permission denied')

Published: May 4, 2020 - 4:01 PM
by gavit
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