Página 1 de 2

[RESUELTO] Error del cliente

Publicado: 23 de marzo de 2018 - 10:16
por eayglon
Hola a todos,

antes que nada, gracias por este software. Actualmente lo uso en 3 sitios y estoy completamente satisfecho.
Estoy teniendo un problema en uno de los sitios con la versión 15 (1.5.1.21).

Después de la implementación del cliente, se registra este error en las máquinas (Windows 7 Pro):
2018-03-23 ​​​​09:20:44,516 ADVERTENCIA No se puede actualizar el estado del servidor: com_error: (-2147024893, 'No se pudo encontrar la ruta de acceso específica.', Ninguno, Ninguno)

¿Tienen alguna sugerencia para resolver esto?

Re: Error del cliente

Publicado: 23 de marzo de 2018 - 14:00
por dcardon
Hola eayglon,
eayglon escribió: 23 de marzo de 2018 - 10:16 AM En primer lugar, gracias por este software. Actualmente lo estoy usando en 3 sitios y estoy completamente satisfecho.
Estoy encontrando un problema en uno de los sitios con la versión 15 (1.5.1.21).

Después de la implementación del cliente, este error se registra en las máquinas (Windows 7 Pro):
2018-03-23 ​​​​09:20:44,516 ADVERTENCIA No se puede actualizar el estado del servidor: com_error: (-2147024893, 'No se pudo encontrar la ruta de acceso específica.', Ninguno, Ninguno)

¿Tiene alguna sugerencia para resolver esto?
El código de error de Windows es bastante genérico y no permite identificar el problema por sí solo. Debería reiniciar el servicio en modo de depuración y proporcionar más información:

Código: Seleccionar todo

net stop waptservice
cd c:\program files (x86)\wapt
waptpython waptservice\waptservice.py -l debug
Solo por curiosidad, ¿podría haber dos máquinas en la misma LAN con el mismo nombre NetBIOS? ¿Funciona correctamente la capa WMI/WBEM?

Atentamente,

Denis

Re: Error del cliente

Publicado: 23 de marzo de 2018 - 15:01
por eayglon
Gracias por el pedido. Ambos registros provienen de la misma máquina.

El primer bloque corresponde a los registros posteriores a una instalación mediante GPO.

Código: Seleccionar todo

DEBUG Starting new HTTPS connection (1): xxxxxxxx
2018-03-23 14:29:52,808 DEBUG https://xxxxxxxx:443 "GET /socket.io/?login=%7B%22uuid%22%3A+%225C6EFB2C-
[.....]
3&transport=polling&t=1521811792744-0 HTTP/1.1" 401 12
2018-03-23 14:29:52,808 INFO Error in socket io connection ConnectionError(u'unexpected status code (401 Unauthorized)',)
El segundo corresponde a una instalación manual, todo funciona.

Código: Seleccionar todo

2018-03-23 14:34:36,157 DEBUG Starting new HTTPS connection (1): xxxxxxxxx
2018-03-23 14:34:36,230 DEBUG https://xxxxxxx:443 "GET /socket.io/?login=%7B%22uuid%22%3A+%225C6EFB2C-16BF-11E5-BB6E-B0C873BC1400%22%2C+%22signature
[....]
C-16BF-11E5-BB6E-B0C873BC1400&EIO=3&transport=polling&t=1521812076147-0 HTTP/1.1" 200 119
2018-03-23 14:34:37,115 DEBUG Examining ThreadPool. 10 threads and 0 Q'd conxions
No hay duplicados y las capas WMI están bien.

Re: Error del cliente

Publicado: 23 de marzo de 2018 - 18:47
por dcardon
Hola eayglon,
eayglon escribió: 23 de marzo de 2018 - 15:01 Gracias por el pedido. Ambos registros provienen de la misma máquina.

El primer bloque corresponde a los registros posteriores a una instalación mediante GPO.

Código: Seleccionar todo

DEBUG Starting new HTTPS connection (1): xxxxxxxx
2018-03-23 14:29:52,808 DEBUG https://xxxxxxxx:443 "GET /socket.io/?login=%7B%22uuid%22%3A+%225C6EFB2C-
[.....]
3&transport=polling&t=1521811792744-0 HTTP/1.1" 401 12
2018-03-23 14:29:52,808 INFO Error in socket io connection ConnectionError(u'unexpected status code (401 Unauthorized)',)
¿Cuál es la configuración del servidor? ¿Podrías revisar el mensaje a nivel de servidor durante la instalación de la GPO aumentando el nivel de registro (loglevel=debug en waptserver.ini y reiniciando el servicio)?

También puede ser interesante aumentar el nivel de registro de nginx agregando debug a la línea error_log.

Atentamente,

Denis

Re: Error del cliente

Publicado: 26 de marzo de 2018 - 08:14
por eayglon
Hola,

haré las pruebas en cuanto vuelva al sitio, gracias.

Re: Error del cliente

Publicado: 28 de marzo de 2018 - 09:09
por eayglon
Buen día,

Con su consejo, aislé un período (conexión rechazada para un cliente instalado a través de un gpo)


nssm_waptserver.log

Código: Seleccionar todo

2018-03-28 08:55:51,209 DEBUG (3252) accepted ('127.0.0.1', 49493)
2018-03-28 08:55:51,210 INFO 3e09c76c09594cc29128e8de87ca7f46: Sending packet OPEN data {'pingInterval': 25000, 'pingTimeout': 60000, 'upgrades': ['websocket'], 'sid': '3e09c76c09594cc29128e8de87ca7f46'}
2018-03-28 08:55:51,213 DEBUG ('SELECT "t1"."host_certificate" FROM "hosts" AS t1 WHERE ("t1"."uuid" = %s) LIMIT 1', [u'66F5E88C-F2E7-11E3-87DE-E4B425491200'])
2018-03-28 08:55:51,216 WARNING SocketIO connection refused for uuid 66F5E88C-F2E7-11E3-87DE-E4B425491200, sid 3e09c76c09594cc29128e8de87ca7f46: Host is not registered or no host certificate found in database.
2018-03-28 08:55:51,216 DEBUG Returning 67378496 to pool.
2018-03-28 08:55:51,217 DEBUG Returning 67378496 to pool.
2018-03-28 08:55:51,217 INFO 3e09c76c09594cc29128e8de87ca7f46: Sending packet MESSAGE data 4
2018-03-28 08:55:51,217 WARNING Application rejected connection
2018-03-28 08:55:51,219 INFO 127.0.0.1 - - [28/Mar/2018 08:55:51] "GET /socket.io/?login=%7B%22uuid%22%3A+%2266F5E88C-F2E7-11E3-87DE-E4B425491200%22%2C+%22signature[...]22signed_attributes%22%2C+%22signer%22%2C+%22signature_date%22%2C+%22signer_certificate%22%5D%2C+%22signer_certificate%22%3A+%22-----BEGIN+CERTIFICATE-----[....]-END+CERTIFICATE-----%5Cn%22%2C+%22signature_date%22%3A+%222018-03-28T06%3A55%3A51.229000%22%2C+%22signer%22%3A+%2266F5E88C-F2E7-11E3-87DE-E4B425491200%22%7D&uuid=66F5E88C-F2E7-11E3-87DE-E4B425491200&EIO=3&transport=polling&t=1522220151236-0 HTTP/1.1" 401 196 0.008000
registro de errores (nginx)

Código: Seleccionar todo

2018/03/28 08:51:51 [debug] 5872#4968: *1135 http upstream request: "/socket.io/?login=%7B%22uuid%22%3A+%2266F5E88C-F2E7-11E3-87DE-E4B425491200%22%2C+%22signature[...]5sda%
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http upstream process header
2018/03/28 08:51:51 [debug] 5872#4968: *1135 malloc: 02AA4F28:4096
2018/03/28 08:51:51 [debug] 5872#4968: *1135 WSARecv: fd:808 rc:0 196 of 4096
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http proxy status 401 "401 UNAUTHORIZED"
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http proxy header: "Content-Type: text/plain"
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http proxy header: "Access-Control-Allow-Origin: *"
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http proxy header: "Access-Control-Allow-Credentials: true"
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http proxy header: "Content-Length: 12"
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http proxy header: "Date: Wed, 28 Mar 2018 06:51:51 GMT"
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http proxy header done
2018/03/28 08:51:51 [debug] 5872#4968: *1135 HTTP/1.1 401 UNAUTHORIZED
Server: nginx/1.13.5
Date: Wed, 28 Mar 2018 06:51:51 GMT
Content-Type: text/plain
Content-Length: 12
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true

2018/03/28 08:51:51 [debug] 5872#4968: *1135 write new buf t:1 f:0 02AAC8FC, pos 02AAC8FC, size: 230 file: 0, size: 0
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http write filter: l:0 f:0 s:230
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http proxy filter init s:401 h:0 c:0 l:12
2018/03/28 08:51:51 [debug] 5872#4968: *1135 tcp_nodelay
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http upstream process non buffered downstream
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http output filter "/socket.io/?login=%7B%22uuid%22%3A+%2266F5E88C-F2E7-11E3-87DE-E4B425491200%22%2C+%22signature[...]2By5
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http copy filter: "/socket.io/?login=%7B%22uuid%22%3A+%2266F5E88C-F2E7-11E3-87DE-E4B425491200%22%2C+%22signature[...]By5e
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http postpone filter "/socket.io/?login=%7B%22uuid%22%3A+%2266F5E88C-F2E7-11E3-87DE-E4B425491200%22%2C+%22signature[...]a%2B
2018/03/28 08:51:51 [debug] 5872#4968: *1135 write old buf t:1 f:0 02AAC8FC, pos 02AAC8FC, size: 230 file: 0, size: 0
2018/03/28 08:51:51 [debug] 5872#4968: *1135 write new buf t:0 f:0 00000000, pos 02AA4FE0, size: 12 file: 0, size: 0
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http write filter: l:0 f:1 s:242
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http write filter limit 0
2018/03/28 08:51:51 [debug] 5872#4968: *1135 WSASend: fd:792, s:242
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http write filter 00000000
2018/03/28 08:51:51 [debug] 5872#4968: *1135 http copy filter: 0 "/socket.io/?login=%7B%22uuid%22%3A+%2266F5E88C-F2E7-11E3-87DE-E4B425491200%22%2C+%22signature[....]%2By
2018/03/28 08:51:51 [debug] 5872#4968: *1135 finalize http upstream request: 0
2018/03/28 08:51:51 [debug] 5872#4968: *1135 finalize http proxy request

Re: Error del cliente

Publicado: 28 de marzo de 2018 - 09:34
por sfonteneau
En una máquina que tiene problemas, ¿puede usted:

Código: Seleccionar todo

wapt-get register -ldebug

Re: Error del cliente

Publicado: 28 de marzo de 2018 - 10:08 a. m.
por eayglon

Código: Seleccionar todo

2018-03-28 10:07:47,615 DEBUG Default encoding : ascii 
2018-03-28 10:07:47,615 DEBUG Setting encoding for stdout and stderr to cp850 
2018-03-28 10:07:47,615 DEBUG Python path ['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-221-py2.7-win32.egg']
2018-03-28 10:07:47,615 INFO Using local waptservice configuration C:\Program Files (x86)\wapt\wapt-get.ini 
2018-03-28 10:07:47,615 DEBUG Config file: C:\Program Files (x86)\wapt\wapt-get.ini
2018-03-28 10:07:47,625 DEBUG Thread 6056 is connecting to wapt db
2018-03-28 10:07:47,631 INFO Unknown UUID or hostname has changed: reading host UUID
2018-03-28 10:07:47,631 INFO reading custom host UUID from WMI System Information.
2018-03-28 10:07:47,661 DEBUG Thread 6056 is connecting to wapt db
2018-03-28 10:07:47,664 DEBUG DB Start transaction
2018-03-28 10:07:47,665 DEBUG DB commit
2018-03-28 10:07:47,737 DEBUG DB Start transaction
2018-03-28 10:07:47,740 DEBUG DB commit
2018-03-28 10:07:47,788 INFO User Groups:[]
2018-03-28 10:07:47,788 DEBUG WAPT base directory : C:\Program Files (x86)\wapt
2018-03-28 10:07:47,788 DEBUG Package cache dir : C:\Program Files (x86)\wapt\cache
2018-03-28 10:07:47,788 DEBUG WAPT DB Structure version;: 20180303
2018-03-28 10:07:47,789 DEBUG DB Start transaction
2018-03-28 10:07:47,792 DEBUG DB commit
FATAL ERROR : com_error: (-2147024893, 'Le chemin d\x92acc\xe8s sp\xe9cifi\xe9 est introuvable.', None, None)
Traceback (most recent call last):
  File "<string>", line 1215, in <module>
  File "<string>", line 1004, in main
  File "C:\Program Files (x86)\wapt\common.py", line 4686, in register_computer
    inv = self.inventory()
  File "C:\Program Files (x86)\wapt\common.py", line 5024, in inventory
    inv['host_info'] = setuphelpers.host_info()
  File "C:\Program Files (x86)\wapt\setuphelpers.py", line 2642, in host_info
    info['windows_startup_items'] = win_startup_info()
  File "C:\Program Files (x86)\wapt\setuphelpers.py", line 2434, in win_startup_info
    for lnk in glob.glob(makepath(startup(1),'*.lnk')):
  File "C:\Program Files (x86)\wapt\lib\site-packages\winshell.py", line 186, in startup
    return get_path ((shellcon.CSIDL_STARTUP, shellcon.CSIDL_COMMON_STARTUP)[common])
  File "C:\Program Files (x86)\wapt\lib\site-packages\winshell.py", line 140, in get_path
    return shell.SHGetFolderPath (0, folder_id, None, 0)
pywintypes.com_error: (-2147024893, 'Le chemin d\x92acc\xe8s sp\xe9cifi\xe9 est introuvable.', None, None)
Exception at 0043EC7F: EPyException:
com_error: (-2147024893, 'Le chemin d\x92acc\xe8s sp\xe9cifi\xe9 est introuvable.', None, None).

Re: Error del cliente

Publicado: 28 de marzo de 2018 - 10:45 a. m.
por htouvet
Extraño.
Parece que la carpeta .CSIDL_COMMON_STARTUP no existe en el cliente.
He añadido una alternativa en la función win_startup_info():

https://github.com/tranquilit/WAPT/comm ... 8d7208d8c6

Re: Error del cliente

Publicado: 29 de marzo de 2018 - 08:42
por eayglon
Hola,

mañana hago el examen.