8000 UserManager.jar Fails to link to admin cert on fresh install · Issue #52 · TAK-Product-Center/Server · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

UserManager.jar Fails to link to admin cert on fresh install #52

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

Open
anxzik opened this issue Oct 2, 2024 · 2 comments
Open

UserManager.jar Fails to link to admin cert on fresh install #52

anxzik opened this issue Oct 2, 2024 · 2 comments
< 8000 div id="discussion_bucket">

Comments

@anxzik
Copy link
anxzik commented Oct 2, 2024

i have tried every which way you can to execute java -jar /opt/tak/utils/UserManager.jar certmod -A /opt/tak/certs/files/admin.pem

and in return i get: root@tak:/opt/tak# java -jar /opt/tak/utils/UserManager.jar certmod -A /opt/tak/certs/files/admin.pem java.lang.reflect.InvocationTargetException java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at com.bbn.marti.takcl.cli.CommandCommon.invokeMethodFromModuleWithParams(CommandCommon.java:85) at com.bbn.marti.takcl.cli.advanced.AdvancedParamParser.execute(AdvancedParamParser.java:285) at com.bbn.marti.takcl.cli.advanced.AdvancedCliMainHelper.main(AdvancedCliMainHelper.java:131) at com.bbn.marti.UserManager.main(UserManager.java:61) Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at com.bbn.marti.takcl.cli.CommandCommon.invokeMethodFromModuleWithParams(CommandCommon.java:52) ... 3 more Caused by: class org.apache.ignite.IgniteException: Failed to find deployed service: distributed-user-file-manager at org.apache.ignite.internal.processors.service.GridServiceProxy.invokeMethod(GridServiceProxy.java:202) at org.apache.ignite.internal.processors.service.GridServiceProxy$ProxyInvocationHandler.invoke(GridServiceProxy.java:511) at jdk.proxy2/jdk.proxy2.$Proxy40.getUsers(Unknown Source) at com.bbn.marti.takcl.AppModules.OnlineFileAuthModule.innerUserCertMod(OnlineFileAuthModule.java:137) at com.bbn.marti.takcl.AppModules.OnlineFileAuthModule.certmod(OnlineFileAuthModule.java:213) ... 8 more java.lang.reflect.InvocationTargetException root@tak:/opt/tak#

I have spun up multiple instances looked at multiple guides and the comand is the same in all. I am not sure if i am executing this correctly or theres an issue with java in 5.2.

It is a ubuntu GCP instance. side note i originally had postgres iissues aswell, with versioning and possibly that has something to do with it? i have since been able to connect db and look at it on pgadmin4 and it appears to be populated properly

@starkindustries
Copy link

Also having the same issue:

$ sudo java -jar /opt/tak/utils/UserManager.jar certmod -A /opt/tak/certs/files/admin.pem
java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at com.bbn.marti.takcl.cli.CommandCommon.invokeMethodFromModuleWithParams(CommandCommon.java:85)
	at com.bbn.marti.takcl.cli.advanced.AdvancedParamParser.execute(AdvancedParamParser.java:285)
	at com.bbn.marti.takcl.cli.advanced.AdvancedCliMainHelper.main(AdvancedCliMainHelper.java:131)
	at com.bbn.marti.UserManager.main(UserManager.java:61)
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at com.bbn.marti.takcl.cli.CommandCommon.invokeMethodFromModuleWithParams(CommandCommon.java:52)
	... 3 more
Caused by: class org.apache.ignite.IgniteException: Failed to find deployed service: distributed-user-file-manager
	at org.apache.ignite.internal.processors.service.GridServiceProxy.invokeMethod(GridServiceProxy.java:202)
	at org.apache.ignite.internal.processors.service.GridServiceProxy$ProxyInvocationHandler.invoke(GridServiceProxy.java:511)
	at jdk.proxy2/jdk.proxy2.$Proxy40.getUsers(Unknown Source)
	at com.bbn.marti.takcl.AppModules.OnlineFileAuthModule.innerUserCertMod(OnlineFileAuthModule.java:137)
	at com.bbn.marti.takcl.AppModules.OnlineFileAuthModule.certmod(OnlineFileAuthModule.java:213)
	... 8 more
java.lang.reflect.InvocationTargetException

@tangothr33
Copy link

Hi there! Try the following:

  1. Stop the takserver via systemctl stop takserver
  2. Modify /opt/tak/CoreConfig.xml file's tag information. Make sure it lines up with the filenames you provided when you created the certificates (with makeCert.sh)
  3. Restart the takserver and check /opt/tak/logs for ERRORs.
  4. Run sudo java -jar /opt/tak/utils/UserManager.jar certmod -A /opt/tak/certs/files/$(yourAdminFile).pem

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

3 participants
0