This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

iscsi_initiator errno=61

iSCSI over TCP/IP.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
d0hboy
NewUser
NewUser
Posts: 7
Joined: 30 Nov 2012 20:32
Status: Offline

iscsi_initiator errno=61

Post by d0hboy »

Hi folks -- after configuration of some iSCSI targets pointing to volumes, I noticed that rebooting the NAS4free server would result in and endless startup loop below. I'm showing the manual command because I can replicate it at will.

Code: Select all

box:/etc/rc.d# ./iscsi_initiator start
Starting iscsi_initiator.
errno=61
connect: Connection refused
errno=61
connect: Connection refused
...
If I press Ctrl-C at the local console, it would happily continue .
Editing the /var/rc.conf line:
iscsi_initiator_enable="YES"
to
iscsi_initiator_enable="NO"

..wouldn't work, as it appears the value gets reset to "YES" automatically by nas4free each reboot.

My iscsi shares are otherwise listable and connectable, so I'm trying to find out what /var/log file i should be looking at . Has anybody seen this iscsi_initiator errno=61 code??

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: iscsi_initiator errno=61

Post by raulfg3 »

enyone more that can confirm this?.

Please can anyone try to do minidlna_enable=No and test if still load? ( minidlna or what other package that is used)

I detect the same problem in a jail , I change kissdx_enable to NO and still is launch on start up.

Code: Select all

login as: root
root@192.168.1.17's password:
Last login: Sun Dec 16 09:58:47 2012
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

Welcome to NAS4Free!
rnas:~# jls
   JID  IP Address      Hostname                      Path
     1  192.168.1.201   proto                         /jail/proto
     2  192.168.1.202   upnp                          /jail/upnp
rnas:~# jexec 2 csh
You have mail.
root@upnp:/ # ps ax
 PID TT  STAT    TIME COMMAND
3757 ??  SsJ  0:00.01 /usr/sbin/syslogd -s
3820 ??  SsJ  0:00.02 sendmail: accepting connections (sendmail)
3825 ??  IsJ  0:00.01 /usr/sbin/cron -s
3837 ??  IJ   0:00.00 /usr/local/sbin/kissdx -kd
4162  0  SJ   0:00.15 csh
4164  0  R+J  0:00.02 ps ax
root@upnp:/ # cat /etc/rc.conf
kissdx_enable="NO"
root@upnp:/ #
this outpu is after change to No and reset the NAS. and you can see that PID 3837 is kissdx running.

Why is it running if I configure rc.conf to NO?
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
daoyama
Developer
Developer
Posts: 394
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

Re: iscsi_initiator errno=61

Post by daoyama »

Hi,
d0hboy wrote: If I press Ctrl-C at the local console, it would happily continue .
Editing the /var/rc.conf line:
iscsi_initiator_enable="YES"
to
iscsi_initiator_enable="NO"

..wouldn't work, as it appears the value gets reset to "YES" automatically by nas4free each reboot.
What version did you use? Early verison does not wait network starts. Try 9.1.0.1.531 if you didn't test with it.
I did'n test. but If you want to start it manually, you may use "PreInit" type command script from System|Advanced|Command scripts like this:

/usr/local/sbin/rconf attribute set iscsi_initiator_enable NO

Daisuke Aoyama
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

d0hboy
NewUser
NewUser
Posts: 7
Joined: 30 Nov 2012 20:32
Status: Offline

Re: iscsi_initiator errno=61

Post by d0hboy »

Thanks, I gave the pre-init command (which I believe did the same thing as what I was manually editing by hand) a try, but each time, Nas4free appeared to overwrite /etc/rc.conf with iscsi_initiator_enable="YES".
raulfg3: yes, that's the same issue you and I both have, not being able to commit any changes to /etc/rc.conf through reboots. I've read somewhere else that you need to make changes to /conf/base/etc/rc.conf to make these changes stick but haven't pursued it further.

I AM using 9.1.0.1 revision 531 (the latest; started this whole journey a few weeks ago :) )

Anyway, I found the culprit: I setup a NAS4Free iSCSI initiator (disks -> iscsi initiator -> (+) )to point back to itself back when I was troubleshooting another issue -- circular dependancies. It's too bad that the iscsi_initiator service didn't give me more errors even when I set VERBOSE_LOGGING=ON in /boot/loader.conf.. I would have spotted the error a bit faster. Sigh, FreeBSD.

Apart from that, for future reference, are there any log files to debug the startup & iscsi_initiator process that I missed? I had been looking at:

Code: Select all

/var/etc/iscsi/
/var/log/system.log
/var/log/daemon.log
--------

pankovea
NewUser
NewUser
Posts: 3
Joined: 26 Apr 2014 15:18
Status: Offline

Re: iscsi_initiator errno=61

Post by pankovea »

HELP!!!!
I have a iSCSI target. Configured initiator on itself. Everything worked until reboot.
When loading swears:
...
Starting iscsi_initiator.
errno = 61
connect: Connection refused
errno = 61
connect: Connection refused
...
And so on to infinity. What to do?!!!!
No web access. Tried safe mode - why it restarts after a few seconds of loading.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: iscsi_initiator errno=61

Post by raulfg3 »

boot from liveUSB or LiveCd and open a shell and try to remove bad config.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Post Reply

Return to “iSCSI (Internet Small Computer Systems Interface)”