SSH failure


#1

I followed the user guide and when I type the initall command using the scidb account, I met the follwing problems.

[code]scidb@ubuntu:~$ scidb.py initall test1
checking (server 0 (localhost) local instance 0) …
Found 0 scidb processes
This will delete all data and reinitialize storage [n]|y: y
init(server 0 (localhost) local instance 0)
Initializing local scidb instance/storage.

Cleaning up old logs and storage files.
Removing data directory /home/scidb/data/000/0 on server 0 (localhost), local instance 0
Abnormal return code: 1
error in command /opt/scidb/12.12/bin/scidb --register -p 1239 --initialize -i localhost -s /home/scidb/data/000/0/storage.cfg -l /opt/scidb/12.12/share/scidb/log4cxx.properties --rle-chunk-format=True --chunk-segment-size=100485760 -c host=localhost port=5432 dbname=test1 user=test1user password=test1passwd:
Check logs in init-stderr.log init-stdout.log
[/code]

Then I logged into root account and exeute the initall again. Then I met the following problems. Could anyone help me? Thanks!!

root@ubuntu:~# scidb.py initall test1 ssh failure: server=localhost port=22 Authentication failed.


#2

have u checked if port 22 is open? firewall? I’d run this :
netstat -an | grep "LISTEN "

to see a list of listening port…


#3

[quote=“yakoozee”]have u checked if port 22 is open? firewall? I’d run this :
netstat -an | grep "LISTEN "

to see a list of listening port…[/quote]

After I ran

netstat -an | grep "LISTEN "

I got this result:

tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:5432            0.0.0.0:*               LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN     
tcp6       0      0 ::1:631                 :::*                    LISTEN     
tcp6       0      0 :::5432                 :::*                    LISTEN  

But I still get the same problem after I run scidb.py initall test1, that is :

ssh failure: server=localhost port=22 Authentication failed.

#4

Maybe the problem is because (i) the variables was not exported; (ii) SSH was not started; or (iii) the ssh-keygen was not executed:

export SCIDB_VER=12.12
export PATH=/opt/scidb/$SCIDB_VER/bin:/opt/scidb/$SCIDB_VER/share/scidb:$PATH
export LD_LIBRARY_PATH=/opt/scidb/$SCIDB_VER/lib:$LD_LIBRARY_PATH

#5

Set up ssh with (leaving the passphrase empty):

ssh-keygen -t rsa

and then,

cd ~/.ssh
cat *.pub >> authorized_keys
chmod 600 authorized_keys

Then see if you can ssh into your machine without a password, from itself. For example:

ssh localhost uptime

The first time you do this, you will be asked to store a key. Say ‘y’ to this. Then do this for every machine in your cluster.

–Bryan


#6

The user does not have permission to create the base-path=/home/scidb. But if sudo the number of arguments changed.

I encountered the same problem. ssh-keygen doesn’t cause the problem. I changed base-path to my home directory. It works now.