iSCSI not starting...deeper issue?

Status
Not open for further replies.

voyager529

Dabbler
Joined
Jul 27, 2011
Messages
36
Hi there, everyone!

I'm attempting to make an iSCSI target on my FreeNAS, but the iSCSI service won't start. When I attempt to do so, the log reads as follows:

Code:
Jun 25 16:24:08 freenas notifier:   File "/usr/local/libexec/nas/generate_ctl_conf.py", line 301, in
Jun 25 16:24:08 freenas notifier:     main()
Jun 25 16:24:08 freenas notifier:   File "/usr/local/libexec/nas/generate_ctl_conf.py", line 136, in main
Jun 25 16:24:08 freenas notifier:     auth_group_config(auth_tag, auth_list)
Jun 25 16:24:08 freenas notifier:   File "/usr/local/libexec/nas/generate_ctl_conf.py", line 79, in auth_group_config
Jun 25 16:24:08 freenas notifier:     auth.iscsi_target_auth_secret,
Jun 25 16:24:08 freenas notifier: UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 1: ordinal not in range(128)
Jun 25 16:24:08 freenas root: /etc/rc.d/ctld: WARNING: /etc/ctl.conf is not readable.
Jun 25 16:24:08 freenas notifier: /etc/rc.d/ctld: WARNING: /etc/ctl.conf is not readable.
Jun 25 16:24:08 freenas root: /etc/rc.d/ctld: WARNING: failed precmd routine for ctld
Jun 25 16:24:08 freenas notifier: /etc/rc.d/ctld: WARNING: failed precmd routine for ctld


When I attempted to create a user for authorized access, I get this:

Code:
 
Jun 25 16:24:08 freenas root: /etc/rc.d/ctld: WARNING: /etc/ctl.conf is not readable.
Jun 25 16:24:08 freenas notifier: /etc/rc.d/ctld: WARNING: /etc/ctl.conf is not readable.
Jun 25 16:24:08 freenas root: /etc/rc.d/ctld: WARNING: failed precmd routine for ctld
Jun 25 16:24:08 freenas notifier: /etc/rc.d/ctld: WARNING: failed precmd routine for ctld
Jun 25 16:29:31 freenas notifier: Will not 'reload' ctld because ctld_enable is NO.
Jun 25 16:29:51 freenas notifier: Will not 'reload' ctld because ctld_enable is NO.
Jun 25 16:30:01 freenas notifier: Will not 'reload' ctld because ctld_enable is NO.
Jun 25 16:30:47 freenas notifier: Will not 'reload' ctld because ctld_enable is NO.


And the UI says this:
Unable to load /api/v1.0/services/iscsi/authcredential/ status: 500

Also of note - and possibly involved with the actual problem - is that the /etc/ctl.conf file indicated as 'unreadable' above, does not appear in the /etc folder at all. I'd create an empty one using the 'touch' command, but I sense that it'd not really be helpful.

I attempted to search the forums here. The results I found seemed to reference an issue back in 2014. My current version is "FreeNAS-9.3-STABLE-201506162331" - a release or two behind, but the changelog doesn't seem to directly reference these (If an update will absolutely fix the issue I'll do it, but I tend to do updates monthly where possible).

I appreciate any and all assistance in this regard.

Joey
 
D

dlavigne

Guest
Can you update to the latest SU and let us know if that fixed it or if the errors change?
 

voyager529

Dabbler
Joined
Jul 27, 2011
Messages
36
Can you update to the latest SU and let us know if that fixed it or if the errors change?
Just ran an update. No change; same behavior, same errors.
 
D

dlavigne

Guest
Please create a bug report at bugs.freenas.org and post the issue number here. Include the errors and the build version in the bug report.
 

Jimm Chen

Dabbler
Joined
Apr 20, 2015
Messages
30
This is serious. I encountered this problem as well.

Restoring a backup(WebUI, System -> General -> Upload Config) to a freshly installed FreeNAS caused iSCSI configuration error.

FreeNAS backup machine and restore machine both run FreeNAS-9.3-STABLE-201506292332.iso .

UjXcZ.png


tJ69s.png


I feel lucky that I run FreeNAS as a VM inside VMware ESXi 6, and I have a snapshot of version of FreeNAS-9.3-STABLE-201506042008 . Going back to 20150604 and find that backup/restore works well.
 
Last edited:
D

dlavigne

Guest
I don't know. Has anyone created a bug report? If so, what is it?
 
Status
Not open for further replies.
Top