https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

            Bug ID: 41337
           Summary: koha-create --request-db and --populate-db creates log
                    files owned by root (intranet-error.log,
                    opac-error.log)
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Installation and upgrade (command-line installer)
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

When creating a new Koha instance using the two-step workflow (--request-db and
--populate-db), some log files under /var/log/koha/<instance>/ end up with
incorrect permissions. Specifically, intranet-error.log and opac-error.log are
created as root:root instead of <inst>-koha:<inst>-koha.

This causes Apache/Plack to fail to start cleanly until the ownership is
corrected manually.

Steps to Reproduce:

1. Run: koha-create --request-db test
2. Create the DB/user on the remote or local DB host as instructed.
3. Then run: koha-create --populate-db test
4. Check ownership of generated logs: ls -l /var/log/koha/test
Actual Result:
Two files are owned by root:root:
-rw-r--r-- 1 root      root    0 intranet-error.log
-rw-r--r-- 1 root      root    0 opac-error.log

All other logs have correct ownership (test-koha:test-koha).

Koha will not start smoothly until these two files are manually chowned.

Expected Result:
All log files under /var/log/koha/<instance>/ should be owned by
<instance>-koha:<instance>-koha, identical to a normal koha-create run without
the request/populate split.

Notes: This only happens when using the two-step creation (--request-db +
--populate-db). A normal one-step koha-create with --create-db assigns the
correct ownership.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to