2
bl_root@bL:~$ service tgt status
tgt start/running, process 1544

bl_root@bL:~$  tgtadm --lld iscsi --op show --mode target
tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected

The error code indicates the daemon is not running -- why?

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
CodeMagic
  • 161
  • 1
  • 5

2 Answers2

4

The daemon really is running. You will need to use sudo to gain enough privileges to communicate with it, though:

sudo tgtadm --lld iscsi --op show --mode target
roaima
  • 107,089
  • 14
  • 139
  • 261
CodeMagic
  • 161
  • 1
  • 5
-1

Are you by chance running the daemon with a control-port (-C *int*)? I got this same error on these commands and realized I need to also specify the -C *int* option on the admin tools to get it to talk to the correct instance.

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
dbanks
  • 1
  • I added a little formatting to indicate that `-C *int*` is something to type as part of the command. You might add a description indicating whether `*int*` is literal or, as I'm guessing, it indicates an integer of some sort. – Jeff Schaller Aug 07 '19 at 12:12
  • I'll also point out that this particular question appears to have been self-answered by the OP a few years ago (and only a couple weeks after they asked it). It's missing the check-mark to indicate an *accepted* answer, but it's worth noticing that the OP probably already solved their problem. – Jeff Schaller Aug 07 '19 at 12:13