[Bug 1325683] [NEW] Having the string '$pid' in the config file breaks the init script

2014-06-02 Thread wereHamster
Public bug reported:

I have the following line in the main config file
(/etc/nginx/nginx.conf):

log_format syslog 'nginx[$pid]: $host $remote_addr $remote_user
"$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';

This line alone makes it impossible to start nginx. The init script
parses the pid file path from the config file, but does that in a
unreliable way:

PID=$(awk -F'[ \t;]+' '/[^#]pid/ {print $2}' /etc/nginx/nginx.conf)

For my config file, this returns two lines, the first one with the pid
file, the second line with just 'log_format':

$ awk -F'[ \t;]+' '/[^#]pid/ {print $2}' /etc/nginx/nginx.conf
/var/run/nginx.pid
log_format
$

Later on when the init script attempts to start nginx, it fails:

$ start-stop-daemon --start --quiet --pidfile /var/run/nginx.pid log_format 
--exec /usr/sbin/nginx --
nginx: invalid option: "log_format"

Ubuntu 14.04, everything updated today.

** Affects: nginx (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nginx in Ubuntu.
https://bugs.launchpad.net/bugs/1325683

Title:
  Having the string '$pid' in the config file breaks the init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1325683/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 380663] Re: open-iscsi initiator tries to resolve ipv6 address of target and fails

2009-07-24 Thread wereHamster
This is not a bug in OpenSolaris, it is a problem in open-iscsi. The
OpenSolaris iscsi implementation sends all IP addresses through which
hosts can connect to it. In my case these are three addresses: IPv4,
IPv6 link local and IPv6 global:

iscsiadm: finished reading text PDU, 48 hdr, 0 ah, 591 data, 1 pad
iscsiadm: >TargetName=iqn.1986-03.com.sun:02:xxx
iscsiadm: >TargetAddress=192.168.0.80,1
iscsiadm: >TargetAddress=[fe80::230:1bff:fe12:3456],1
iscsiadm: >TargetAddress=[2001:1234:5678:0:230:1bff:fe12:3456],1

The problem is that the second address, the IPv6 link local one, can
only be used to connect to the host when the application supplies the
'zone index' to the kernel (interface which the kernel should use). This
is a property of IPv6 link local addresses. Open-iscsi doesn't support
this logic yet, but when it encounters such address it skips the whole
target and goes to the next one. This even if there are other addresses
which would work fine.

The attached patch fixes it by not failing when encountering an unknown
target address. When it does it skips the address and tries the next
one. With this patch I can connect to targets on OpenSolaris just fine.

** Attachment added: "open-iscsi-try-all-target-addresses.patch"
   
http://launchpadlibrarian.net/29488027/open-iscsi-try-all-target-addresses.patch

** Changed in: open-iscsi (Ubuntu)
   Status: Invalid => New

-- 
open-iscsi initiator tries to resolve ipv6 address of target and fails
https://bugs.launchpad.net/bugs/380663
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to open-iscsi in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs