Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Dec 2024 16:40:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 283445] www/onlyoffice-documentserver wrong path in /usr/local/bin/documentserver-flush-cache.sh
Message-ID:  <bug-283445-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283445

            Bug ID: 283445
           Summary: www/onlyoffice-documentserver wrong path in
                    /usr/local/bin/documentserver-flush-cache.sh
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: mikael@FreeBSD.org
          Reporter: freebsd.org@vollkorn.cryptobitch.de
             Flags: maintainer-feedback?(mikael@FreeBSD.org)
          Assignee: mikael@FreeBSD.org

The script /usr/local/bin/documentserver-flush-cache.sh tries to create a f=
ile
in line 27:

```
# Save the hash to a variable in the configuration file
echo "set \$cache_tag \"$HASH\";" >
/usr/local/etc/onlyoffice/etc/nginx/includes/ds-cache.conf
```

Running the script fails:

```
# /usr/local/bin/documentserver-flush-cache.sh
/usr/local/bin/documentserver-flush-cache.sh: cannot create
/usr/local/etc/onlyoffice/etc/nginx/includes/ds-cache.conf: No such file or
directory
```

This path does not exist. Instead, there is:

/usr/local/etc/onlyoffice/documentserver/nginx/includes/

Changing line 27 to this path remedies this error.

This is related to nginx errors

```
# service  nginx start
Performing sanity check on nginx configuration:
nginx: [emerg] unknown "cache_tag" variable
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
Starting nginx.
nginx: [emerg] unknown "cache_tag" variable
/usr/local/etc/rc.d/nginx: WARNING: failed to start nginx
```

The above script is run automatically on documentserver startup, but when it
fails the tag is never declared and nginx fails, too.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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