cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
542
Views
0
Helpful
5
Replies

Looking for admin SSH patch for 2.7 - java errors trying to login

jmumm
Beginner
Beginner
java.net.ConnectException: Connection refused (Connection refused)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at java.net.Socket.connect(Socket.java:538)
        at java.net.Socket.<init>(Socket.java:434)
        at java.net.Socket.<init>(Socket.java:244)
        at com.cisco.ca.ss.lcm.adminshell.client.ShellClient.main(ShellClient.java:51)
Error occured: could not connect to the database server.
Please make sure mysql database server is up and running. 


This seems very similar to the issue posted at https://community.cisco.com/t5/smart-net-total-care-portal-and/unable-to-login-to-the-cli-of-cspc/td-p/2855959 except I'm on collector 2.7 and I don't want to risk installing that older patch on 2.7. Thanks
1 Accepted Solution

Accepted Solutions

EDIT

 

This issue has gone away and is no longer present. Please close this thread. Thanks for the assistance.

View solution in original post

5 Replies 5

jofrumki
Cisco Employee
Cisco Employee
The error you are seeing has no relation to the previous post. Do you have access to the Linux users 'collectorlogin' or 'root'?


@jofrumki wrote:
The error you are seeing has no relation to the previous post. Do you have access to the Linux users 'collectorlogin' or 'root'?

Yes, I have access to both.

please login as 'collectorlogin', then su to 'root'
from 'root' run the command;
service adminshell restart
and update with any changes

[root@USCSPC27 collectorlogin]# service adminshell restart
Stopping Adminshell server:                              [   OK   ]
Stopping Derby DB:                               [   OK   ]
Starting Derby DB:                               [   OK   ]
Starting Adminshell server:                              [   OK   ]
[root@USCSPC27 collectorlogin]# 

I was able to successfully restart adminshell, but I still see the same exact errors as in my original post when trying to login as admin.

EDIT

 

This issue has gone away and is no longer present. Please close this thread. Thanks for the assistance.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers