Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2013 12:14:37 GMT
From:      "Mikhail T." <m.tsatsenko@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/184721: [pkgng] www/nginx: purges /var/tmp/nginx on pkg upgrade
Message-ID:  <201312121214.rBCCEb7F002422@oldred.freebsd.org>
Resent-Message-ID: <201312121220.rBCCK0in030020@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         184721
>Category:       ports
>Synopsis:       [pkgng] www/nginx: purges /var/tmp/nginx on pkg upgrade
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 12 12:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Mikhail T.
>Release:        9.2
>Organization:
>Environment:
>Description:
While updating www/nginx from binary packages its tmp directory being deleted, resulting requests errors
2013/12/12 15:12:58 [crit] 34584#0: *118412 open() "/var/tmp/nginx/client_body_temp/0000013299" failed (2: No such file or directory)
After that it is required to manually create /var/tmp/nginx or restart nginx (rc.d script takes care of it).

Looks like pkgng does not set UPGRADE_PORT variable and plist knows nothing about upgrade.

>How-To-Repeat:

>Fix:
Perhaps add an plist entry to create tmp directory on pkg installation or just remove following line:
@unexec if [ -z ${UPGRADE_PORT} ] ; then rm -fr %%NGINX_TMPDIR%%; fi


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312121214.rBCCEb7F002422>