yuuvis® Q&A

+1 vote
in yuuvis Momentum by (2.4k points)

Hi yuuvis team

I am struggling to get the commander working. I want to reindex our ElasticSearch Index due to Schema changes (to field types).

I have read the help page, but cannot connect to the commander. I cannot seem to authenticate:

 ssh -o "ServerAliveInterval 20" -l root -p 8022 127.0.0.1

Password authentication

Password:

Password authentication

Password:

Password authentication

Password:

root@127.0.0.1's password:

Permission denied, please try again.

root@127.0.0.1's password:

Permission denied, please try again.

root@127.0.0.1's password:

In the log output of the commander I can see a password that was generated, but it does not work. I cannot see the user name and just assumed this is root, user or admin, but none worked.

2021-03-23 14:45:43.566  INFO [commander,,,] 7 --- [           main] c.o.s.h.c.config.ElasticsearchConfig     : rest client es timeout: 30000

Warning: Nashorn engine is planned to be removed from a future JDK release

2021-03-23 14:45:48.292  INFO [commander,,,] 7 --- [           main] s.s.s.server.SshdServerConfiguration     : ********** User password not set. Use following password to login: db95c948-...-fb0d3576d750 **********

2021-03-23 14:45:48.679  INFO [commander,,,] 7 --- [           main] .b.BouncyCastleSecurityProviderRegistrar : getOrCreateProvider(BC) created instance of org.bouncycastle.jce.provider.BouncyCastleProvider

2021-03-23 14:45:49.275  INFO [commander,,,] 7 --- [           main] o.a.s.c.i.DefaultIoServiceFactoryFactory : No detected/configured IoServiceFactoryFactory using Nio2ServiceFactoryFactory

2021-03-23 14:45:49.309  INFO [commander,,,] 7 --- [           main] s.s.s.server.SshdServerConfiguration     : SSH server started on port 8022

Is there a yaml file or helm chart to start the service? I created the image on my own as follows:

apiVersion: v1

kind: Pod

metadata:

  name: commander

spec:

  containers:

  - name: commander

    image: docker.yuuvis.org/yuuvis/commander:4.5.9

    env:

    - name: JAVA_OPTS

      value: -Xmx128m -XX:+ExitOnOutOfMemoryError

    - name: SPRING_PROFILES_ACTIVE

      value: prod,docker,jpapostgres,dbs,kubernetes,metrics

    - name: SPRING_CLOUD_CONFIG_URI

      valueFrom:

        configMapKeyRef:

          name: yuuvis-common-env

          key: CONFIGSERVICEURL

    ports:

    - containerPort: 8022

  imagePullSecrets:

  - name: yuuvisorg

Do I need to add more or other profiles?

Can you please advise in more detail on how to start the commander service and connect?

Kind regards
Nicole

1 Answer

0 votes
by (1.8k points)
selected by
 
Best answer

You can set a user and a password to access the commander in the environment variables of the deployment like this:

          env:
            - name: JAVA_OPTS
              value: '-Xmx128m'
            - name: SERVER_PORT
              value: '7412'
            - name: SPRING_PROFILES_ACTIVE
              value: 'prod,docker,kubernetes,es,dbs'
            - name: SPRING_CLOUD_CONFIG_URI
              value: 'http://configservice/config'
            - name: SSHD_SHELL_USERNAME
              value: admin
            - name: SSHD_SHELL_PASSWORD
              value: mypassword
...