Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am getting activation error 0xC004F074 #92

Closed
kvashninsa opened this issue Jun 7, 2023 · 2 comments
Closed

I am getting activation error 0xC004F074 #92

kvashninsa opened this issue Jun 7, 2023 · 2 comments

Comments

@kvashninsa
Copy link

kvashninsa commented Jun 7, 2023

This works for me on Debia.

Installed on AlmaLinux, dont work

# systemctl status py3-kms
● py3-kms.service - py3-kms
     Loaded: loaded (/etc/systemd/system/py3-kms.service; enabled; preset: disabled)
     Active: active (running) since Wed 2023-06-07 13:52:43 +07; 8min ago
   Main PID: 2519 (python3)
      Tasks: 3 (limit: 22799)
     Memory: 14.6M
        CPU: 658ms
     CGroup: /system.slice/py3-kms.service
             └─2519 /usr/bin/python3 /opt/py-kms/py-kms/pykms_Server.py 0.0.0.0 1688 -V DEBUG -F /var/log/pykms_logserver.log

Jun 07 13:52:43 *** systemd[1]: Started py3-kms.

tcp LISTEN 0 5 0.0.0.0:1688 0.0.0.0:* users:(("python3",pid=2519,fd=6))

Log pykms_logserver.log

Wed, 07 Jun 2023 14:06:30 INFO     Connection accepted: 192.168.0.***:57760
Wed, 07 Jun 2023 14:06:30 INFO     RPC bind request received.
Wed, 07 Jun 2023 14:06:30 DEBUG    RPC Bind Request Bytes: 

                                   05000b1310000000a000000002000000d016d0160000000003000000000001007521c8514e845047b0d8ec255555bc060100
                                   0000045d888aeb1cc9119fe808002b10486002000000010001007521c8514e845047b0d8ec255555bc060100000033057171
                                   babe37498319b5dbef9ccc3601000000020001007521c8514e845047b0d8ec255555bc06010000002c1cb76c129840450300
                                   00000000000001000000

Wed, 07 Jun 2023 14:06:30 DEBUG    RPC Bind Request: 

                                   MSRPCHeader
                                   ver_major: {5}
                                   ver_minor: {0}
                                   type: {11}
                                   flags: {19}
                                   representation: {16}
                                   frag_len: {160}
                                   auth_len: {0}
                                   call_id: {2}
                                   dataLen: {144}
                                   pduData: {b'\xd0\x16\xd0\x16\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x01\x00u!\xc8QN\x84PG\xb0\xd8\x
                                   ec%UU\xbc\x06\x01\x00\x00\x00\x04]\x88\x8a\xeb\x1c\xc9\x11\x9f\xe8\x08\x00+\x10H`\x02\x00\x00\x00\x0
                                   1\x00\x01\x00u!\xc8QN\x84PG\xb0\xd8\xec%UU\xbc\x06\x01\x00\x00\x003\x05qq\xba\xbe7I\x83\x19\xb5\xdb\
                                   xef\x9c\xcc6\x01\x00\x00\x00\x02\x00\x01\x00u!\xc8QN\x84PG\xb0\xd8\xec%UU\xbc\x06\x01\x00\x00\x00,\x
                                   1c\xb7l\x12\x98@E\x03\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00'}
                                   _pad: {0}
                                   pad: {''}
                                   _sec_trailer: {0}
                                   sec_trailer: {''}
                                   auth_dataLen: {0}
                                   auth_data: {''}

                                   MSRPCBind
                                   max_tfrag: {5840}
                                   max_rfrag: {5840}
                                   assoc_group: {0}
                                   ctx_num: {3}
                                   Reserved: {0}
                                   Reserved2: {0}
                                   _ctx_items: {132}
                                   ctx_items: {<pykms_RpcBind.MSRPCBind.CtxItemArray object at 0x7f75e8024fd0>}

Wed, 07 Jun 2023 14:06:30 DEBUG    RPC Bind Response: 

                                   MSRPCBindAck
                                   ver_major: {5}
                                   ver_minor: {0}
                                   type: {12}
                                   flags: {19}
                                   representation: {16}
                                   frag_len: {108}
                                   auth_len: {0}
                                   call_id: {2}
                                   max_tfrag: {5840}
                                   max_rfrag: {5840}
                                   assoc_group: {274972479}
                                   SecondaryAddrLen: {5}
                                   SecondaryAddr: {'1688'}
                                   Pad: {b'\x00'}
                                   ctx_num: {3}
                                   ctx_items: {b'\x00\x00\x00\x00\x04]\x88\x8a\xeb\x1c\xc9\x11\x9f\xe8\x08\x00+\x10H`\x02\x00\x00\x00\x
                                   02\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x
                                   00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}
                                   sec_trailer: {b''}
                                   auth_data: {b''}
                                   pduData: {b''}
                                   pad: {b''}

Wed, 07 Jun 2023 14:06:30 DEBUG    RPC Bind Response Bytes: 

                                   05000c13100000006c00000002000000d016d0163fbf631005003136383800000300000000000000045d888aeb1cc9119fe8
                                   08002b1048600200000002000200000000000000000000000000000000000000000003000300000000000000000000000000
                                   0000000000000000

Wed, 07 Jun 2023 14:06:30 INFO     RPC bind acknowledged.
Wed, 07 Jun 2023 14:06:30 INFO     Received activation request.
Wed, 07 Jun 2023 14:06:30 DEBUG    RPC Message Request Bytes: 

                                   050000031000000024010000020000000c010000000000000401000004010000000006004fc9476914fe82209afe3d38eebc
                                   f13ad73bdbd7b88405b5bd6b4e9766ed847fd75ae75c1e1c240fc18ec5878ee6643a2771ea23b722bcac1582dacdb880eadd
                                   efd8c64e92409219b52d1878220d2b7c18c06b79c1e85eee9e3008611e14f294cd589be0f3de4567d4e7a64de620db470f23
                                   3db5e2d69fffad1875dc87968847cdf368d2934f7f13d505afe3ba74e1dfeaa8a87844c40275ef846b58feb898bf9b8a8890
                                   b970010a8b2f1a791179b7a1295f6507d667120a052245127dc78579e79b3db6a4b5ffbf26b83514483d30f32b81b01f686a
                                   a02c1ebecb44b37c1908819f842aa52e4d719ee75c22c5928ece8c57b0e16e69af023afb55ccdc785bf1

Wed, 07 Jun 2023 14:06:30 DEBUG    RPC Message Request: 

                                   MSRPCRequestHeader
                                   ver_major: {5}
                                   ver_minor: {0}
                                   type: {0}
                                   flags: {3}
                                   representation: {16}
                                   frag_len: {292}
                                   auth_len: {0}
                                   call_id: {2}
                                   alloc_hint: {268}
                                   ctx_id: {0}
                                   op_num: {0}
                                   _uuid: {0}
                                   uuid: {''}
                                   dataLen: {268}
                                   pduData: {b'\x04\x01\x00\x00\x04\x01\x00\x00\x00\x00\x06\x00O\xc9Gi\x14\xfe\x82 \x9a\xfe=8\xee\xbc\x
                                   f1:\xd7;\xdb\xd7\xb8\x84\x05\xb5\xbdkN\x97f\xed\x84\x7f\xd7Z\xe7\\\x1e\x1c$\x0f\xc1\x8e\xc5\x87\x8e\
                                   xe6d:\'q\xea#\xb7"\xbc\xac\x15\x82\xda\xcd\xb8\x80\xea\xdd\xef\xd8\xc6N\x92@\x92\x19\xb5-\x18x"\r+|\
                                   x18\xc0ky\xc1\xe8^\xee\x9e0\x08a\x1e\x14\xf2\x94\xcdX\x9b\xe0\xf3\xdeEg\xd4\xe7\xa6M\xe6 \xdbG\x0f#=
                                   \xb5\xe2\xd6\x9f\xff\xad\x18u\xdc\x87\x96\x88G\xcd\xf3h\xd2\x93O\x7f\x13\xd5\x05\xaf\xe3\xbat\xe1\xd
                                   f\xea\xa8\xa8xD\xc4\x02u\xef\x84kX\xfe\xb8\x98\xbf\x9b\x8a\x88\x90\xb9p\x01\n\x8b/\x1ay\x11y\xb7\xa1
                                   )_e\x07\xd6g\x12\n\x05"E\x12}\xc7\x85y\xe7\x9b=\xb6\xa4\xb5\xff\xbf&\xb85\x14H=0\xf3+\x81\xb0\x1fhj\
                                   xa0,\x1e\xbe\xcbD\xb3|\x19\x08\x81\x9f\x84*\xa5.Mq\x9e\xe7\\"\xc5\x92\x8e\xce\x8cW\xb0\xe1ni\xaf\x02
                                   :\xfbU\xcc\xdcx[\xf1'}
                                   _pad: {0}
                                   pad: {''}
                                   _sec_trailer: {0}
                                   sec_trailer: {''}
                                   auth_dataLen: {0}
                                   auth_data: {''}

Wed, 07 Jun 2023 14:06:30 INFO     Received V6 request on Wed Jun 07 14:06:30 2023.
Wed, 07 Jun 2023 14:06:30 DEBUG    KMS Request Bytes: 

                                   00000600010000000100000060f403003427c95582d6714d983ed6ec3f16059f6078d79b319b7b4b96ad2564017315bfe463
                                   42b7920fc646bcf8c11d5efe29590412a6baac491f45b1e3db6699980159050000001465b2950e99d9010000000000000000
                                   00000000000000007300720076002d006d007300730071006c0031002e00740064007300690062002e0063006f0072007000
                                   0000524d2f58724d4c322f534c2f7632223e3c736c3a7072696f726974793e3530303c2f736c3a7072696f726974793e3c73
                                   6c3a706f6c696379496e74206e616d653d2253656375726974792d5350502d5265736572

Wed, 07 Jun 2023 14:06:30 DEBUG    KMS Request: 

                                   kmsRequestStruct
                                   versionMinor: {0}
                                   versionMajor: {6}
                                   isClientVm: {1}
                                   licenseStatus: {1}
                                   graceTime: {259168}
                                   applicationId:{
                                       raw: {b"4'\xc9U\x82\xd6qM\x98>\xd6\xec?\x16\x05\x9f"}
                                   }
                                   skuId:{
                                       raw: {b'`x\xd7\x9b1\x9b{K\x96\xad%d\x01s\x15\xbf'}
                                   }
                                   kmsCountedId:{
                                       raw: {b'\xe4cB\xb7\x92\x0f\xc6F\xbc\xf8\xc1\x1d^\xfe)Y'}
                                   }
                                   clientMachineId:{
                                       raw: {b'\x04\x12\xa6\xba\xacI\x1fE\xb1\xe3\xdbf\x99\x98\x01Y'}
                                   }
                                   requiredClientCount: {5}
                                   requestTime: {133305951904228628}
                                   previousClientMachineId:{
                                       raw: {b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}
                                   }
                                   machineName: {b's\x00r\x00v\x00-\x00m\x00s\x00s\x00q\x00l\x001\x00.\x00t\x00d\x00s\x00i\x00b\x00.\x0
                                   0c\x00o\x00r\x00p\x00'}
                                   _mnPad: {84}
                                   mnPad: {b'RM/XrML2/SL/v2"><sl:priority>500</sl:priority><sl:policyInt name="Security-SPP-Reser'}

Wed, 07 Jun 2023 14:06:30 INFO     Connection closed: 192.168.0.*:57760
@didotb
Copy link

didotb commented Jun 7, 2023

Error 0xC004F074 means your device cannot contact the KMS host.
Make sure it's accessible on the port you specified.

How do you start the app? via provided release binary, or via docker? I suggest using docker and allow docker in firewall

@kvashninsa
Copy link
Author

App launch systemd, firewall disabled. Host and port are available, checked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants