[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-07-17 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Fridolin Somers  changed:

   What|Removed |Added

 Status|Pushed to oldoldoldstable   |Needs documenting

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-07-17 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Fridolin Somers  changed:

   What|Removed |Added

 CC||[email protected]
   ||m
 Version(s)|26.05.00,25.11.04,25.05.13  |26.05.00,25.11.04,25.05.13,
released in||24.11.18
 Status|Pushed to oldoldstable  |Pushed to oldoldoldstable

--- Comment #9 from Fridolin Somers  ---
Pushed to 24.11.x for 24.11.18

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-07-16 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Wainui Witika-Park  changed:

   What|Removed |Added

 Status|Pushed to oldstable |Pushed to oldoldstable

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-07-16 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Wainui Witika-Park  changed:

   What|Removed |Added

 Status|Pushed to stable|Pushed to oldstable
 CC||[email protected]
   ||et.nz
 Version(s)|26.05.00,25.11.04   |26.05.00,25.11.04,25.05.13
released in||

--- Comment #8 from Wainui Witika-Park  ---
Backported to 25.05.x for 25.05.13

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-04-13 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

--- Comment #7 from Jacob O'Mara  ---
Thanks all, pushed to 25.11.x

-- 
You are receiving this mail because:
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/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-04-13 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Jacob O'Mara  changed:

   What|Removed |Added

 Version(s)|26.05.00|26.05.00,25.11.04
released in||
 Status|Pushed to main  |Pushed to stable

-- 
You are receiving this mail because:
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/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-02-26 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

--- Comment #6 from Lucas Gass (lukeg)  ---
Nice work everyone!

Pushed to main for 26.05

-- 
You are receiving this mail because:
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/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-02-26 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Lucas Gass (lukeg)  changed:

   What|Removed |Added

 Version(s)||26.05.00
released in||
 Status|Passed QA   |Pushed to main

-- 
You are receiving this mail because:
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/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-02-20 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Andreas Roussos  changed:

   What|Removed |Added

  Text to go in the||This fixes the UNIX
  release notes||user/group ownership of the
   ||log files
   ||`intranet-error.log` and
   ||`opac-error.log` inside
   ||`/var/log/koha//`
   ||.
   ||Previously, running
   ||`koha-create --request-db`
   ||followed by `koha-create
   ||--populate-db` would result
   ||in the two log files being
   ||owned by root/root.
   ||The correct ownership is
   ||now applied, meaning the
   ||log files will be owned by
   ||the
   ||-koha/-
   ||koha UNIX user/group.

-- 
You are receiving this mail because:
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/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-02-16 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Jan Kissig  changed:

   What|Removed |Added

 QA Contact|[email protected] |[email protected]
   |y.org   |
 CC||[email protected]

-- 
You are receiving this mail because:
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/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-02-16 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Jan Kissig  changed:

   What|Removed |Added

 Attachment #193015|0   |1
is obsolete||

--- Comment #5 from Jan Kissig  ---
Created attachment 193247
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193247&action=edit
Bug 41337: Add missing Bash variable to `koha-create`

When creating a new Koha instance using the two-step workflow
(`koha-create --request-db `, followed by
`koha-create --populate-db `), some log files under
/var/log/koha// end up with incorrect ownership.

Specifically, intranet-error.log and opac-error.log are owned
by root:root instead of -koha:-koha.

This patch fixes that.

Test plan (tailored for KTD):

1) Before applying this patch, run the following commands
   inside your KTD Koha container:

   $ sudo koha-create --request-db test1
   $ SQLPASS=`sudo grep password: test1-db-request.txt | cut -c 16-`
   $ mysql -hdb -uroot -ppassword -e "CREATE DATABASE koha_test1;"
   $ mysql -hdb -uroot -ppassword -e "GRANT ALL PRIVILEGES ON koha_test1.* TO
'koha_test1'@'%' IDENTIFIED BY '${SQLPASS}';"
   $ mysql -hdb -uroot -ppassword -e "FLUSH PRIVILEGES;"
   $ sudo koha-create --populate-db test1

   $ ls -l /var/log/koha/test1/
 total 8
 -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:35 indexer-error.log
 -rw-r--r-- 1 test1-koha test1-koha 1278 Feb  9 15:35 indexer-output.log
 -rw-r--r-- 1 root   root  0 Feb  9 15:35 intranet-error.log
 -rw-r--r-- 1 root   root  0 Feb  9 15:35 opac-error.log
 -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:35 worker-error.log
 -rw-r--r-- 1 test1-koha test1-koha 1828 Feb  9 15:35 worker-output.log
 -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:35 zebra-error.log
 -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:35 zebra-output.log

   Notice the incorrect user/group ownership on two
   files: `intranet-error.log` and `opac-error.log`.

2) Apply this patch, remove the `test1` instance along
   with the database request text file, and copy the
   modified script to its system-wide location:

   $ sudo koha-remove test1
   $ sudo rm test1-db-request.txt
   $ sudo cp debian/scripts/koha-create /usr/sbin/koha-create

3) Repeat the commands in Step 1. This time, the output of
   the last command should resemble the following:

   total 8
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 indexer-error.log
   -rw-r--r-- 1 test1-koha test1-koha 1520 Feb  9 15:42 indexer-output.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 intranet-error.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 opac-error.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 worker-error.log
   -rw-r--r-- 1 test1-koha test1-koha 1828 Feb  9 15:42 worker-output.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 zebra-error.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 zebra-output.log

   All files should now have the correct user/group ownership.

Signed-off-by: Brendan Lawlor 
Signed-off-by: Jan Kissig 

-- 
You are receiving this mail because:
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/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-02-16 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Jan Kissig  changed:

   What|Removed |Added

 Status|Signed Off  |Passed QA

-- 
You are receiving this mail because:
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/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-02-12 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Brendan Lawlor  changed:

   What|Removed |Added

 Attachment #192822|0   |1
is obsolete||

--- Comment #4 from Brendan Lawlor  ---
Created attachment 193015
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193015&action=edit
Bug 41337: Add missing Bash variable to `koha-create`

When creating a new Koha instance using the two-step workflow
(`koha-create --request-db `, followed by
`koha-create --populate-db `), some log files under
/var/log/koha// end up with incorrect ownership.

Specifically, intranet-error.log and opac-error.log are owned
by root:root instead of -koha:-koha.

This patch fixes that.

Test plan (tailored for KTD):

1) Before applying this patch, run the following commands
   inside your KTD Koha container:

   $ sudo koha-create --request-db test1
   $ SQLPASS=`sudo grep password: test1-db-request.txt | cut -c 16-`
   $ mysql -hdb -uroot -ppassword -e "CREATE DATABASE koha_test1;"
   $ mysql -hdb -uroot -ppassword -e "GRANT ALL PRIVILEGES ON koha_test1.* TO
'koha_test1'@'%' IDENTIFIED BY '${SQLPASS}';"
   $ mysql -hdb -uroot -ppassword -e "FLUSH PRIVILEGES;"
   $ sudo koha-create --populate-db test1

   $ ls -l /var/log/koha/test1/
 total 8
 -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:35 indexer-error.log
 -rw-r--r-- 1 test1-koha test1-koha 1278 Feb  9 15:35 indexer-output.log
 -rw-r--r-- 1 root   root  0 Feb  9 15:35 intranet-error.log
 -rw-r--r-- 1 root   root  0 Feb  9 15:35 opac-error.log
 -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:35 worker-error.log
 -rw-r--r-- 1 test1-koha test1-koha 1828 Feb  9 15:35 worker-output.log
 -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:35 zebra-error.log
 -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:35 zebra-output.log

   Notice the incorrect user/group ownership on two
   files: `intranet-error.log` and `opac-error.log`.

2) Apply this patch, remove the `test1` instance along
   with the database request text file, and copy the
   modified script to its system-wide location:

   $ sudo koha-remove test1
   $ sudo rm test1-db-request.txt
   $ sudo cp debian/scripts/koha-create /usr/sbin/koha-create

3) Repeat the commands in Step 1. This time, the output of
   the last command should resemble the following:

   total 8
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 indexer-error.log
   -rw-r--r-- 1 test1-koha test1-koha 1520 Feb  9 15:42 indexer-output.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 intranet-error.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 opac-error.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 worker-error.log
   -rw-r--r-- 1 test1-koha test1-koha 1828 Feb  9 15:42 worker-output.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 zebra-error.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 zebra-output.log

   All files should now have the correct user/group ownership.

Signed-off-by: Brendan Lawlor 

-- 
You are receiving this mail because:
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/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-02-12 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Brendan Lawlor  changed:

   What|Removed |Added

 Status|Needs Signoff   |Signed Off

-- 
You are receiving this mail because:
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/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-02-09 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Andreas Roussos  changed:

   What|Removed |Added

 Attachment #192809|0   |1
is obsolete||

--- Comment #3 from Andreas Roussos  ---
Created attachment 192822
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=192822&action=edit
Bug 41337: Add missing Bash variable to `koha-create`

When creating a new Koha instance using the two-step workflow
(`koha-create --request-db `, followed by
`koha-create --populate-db `), some log files under
/var/log/koha// end up with incorrect ownership.

Specifically, intranet-error.log and opac-error.log are owned
by root:root instead of -koha:-koha.

This patch fixes that.

Test plan (tailored for KTD):

1) Before applying this patch, run the following commands
   inside your KTD Koha container:

   $ sudo koha-create --request-db test1
   $ SQLPASS=`sudo grep password: test1-db-request.txt | cut -c 16-`
   $ mysql -hdb -uroot -ppassword -e "CREATE DATABASE koha_test1;"
   $ mysql -hdb -uroot -ppassword -e "GRANT ALL PRIVILEGES ON koha_test1.* TO
'koha_test1'@'%' IDENTIFIED BY '${SQLPASS}';"
   $ mysql -hdb -uroot -ppassword -e "FLUSH PRIVILEGES;"
   $ sudo koha-create --populate-db test1

   $ ls -l /var/log/koha/test1/
 total 8
 -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:35 indexer-error.log
 -rw-r--r-- 1 test1-koha test1-koha 1278 Feb  9 15:35 indexer-output.log
 -rw-r--r-- 1 root   root  0 Feb  9 15:35 intranet-error.log
 -rw-r--r-- 1 root   root  0 Feb  9 15:35 opac-error.log
 -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:35 worker-error.log
 -rw-r--r-- 1 test1-koha test1-koha 1828 Feb  9 15:35 worker-output.log
 -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:35 zebra-error.log
 -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:35 zebra-output.log

   Notice the incorrect user/group ownership on two
   files: `intranet-error.log` and `opac-error.log`.

2) Apply this patch, remove the `test1` instance along
   with the database request text file, and copy the
   modified script to its system-wide location:

   $ sudo koha-remove test1
   $ sudo rm test1-db-request.txt
   $ sudo cp debian/scripts/koha-create /usr/sbin/koha-create

3) Repeat the commands in Step 1. This time, the output of
   the last command should resemble the following:

   total 8
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 indexer-error.log
   -rw-r--r-- 1 test1-koha test1-koha 1520 Feb  9 15:42 indexer-output.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 intranet-error.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 opac-error.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 worker-error.log
   -rw-r--r-- 1 test1-koha test1-koha 1828 Feb  9 15:42 worker-output.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 zebra-error.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 zebra-output.log

   All files should now have the correct user/group ownership.

-- 
You are receiving this mail because:
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/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-02-09 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Andreas Roussos  changed:

   What|Removed |Added

   See Also||https://bugs.koha-community
   ||.org/bugzilla3/show_bug.cgi
   ||?id=25284

-- 
You are receiving this mail because:
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/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-02-09 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

--- Comment #2 from Andreas Roussos  ---
Created attachment 192809
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=192809&action=edit
Bug 41337: Add missing Bash variable to `koha-create`

When creating a new Koha instance using the two-step workflow
(`koha-create --request-db `, followed by
`koha-create --populate-db `), some log files under
/var/log/koha// end up with incorrect ownership.

Specifically, intranet-error.log and opac-error.log are owned
by root:root instead of -koha:-koha.

This patch fixes that.

Test plan (tailored for KTD):

1) Before applying this patch, run the following commands
   inside your KTD Koha container:

   $ sudo koha-create --request-db test1
   $ SQLPASS=`sudo grep password: test1-db-request.txt | cut -c 16-`
   $ mysql -hdb -uroot -ppassword -e "CREATE DATABASE koha_test1;"
   $ mysql -hdb -uroot -ppassword -e "GRANT ALL PRIVILEGES ON koha_test1.* TO
'koha_test1'@'%' IDENTIFIED BY '${SQLPASS}';"
   $ mysql -hdb -uroot -ppassword -e "FLUSH PRIVILEGES;"
   $ sudo koha-create --populate-db test1

   $ ls -l /var/log/koha/test1/
 total 8
 -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:35 indexer-error.log
 -rw-r--r-- 1 test1-koha test1-koha 1278 Feb  9 15:35 indexer-output.log
 -rw-r--r-- 1 root   root  0 Feb  9 15:35 intranet-error.log
 -rw-r--r-- 1 root   root  0 Feb  9 15:35 opac-error.log
 -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:35 worker-error.log
 -rw-r--r-- 1 test1-koha test1-koha 1828 Feb  9 15:35 worker-output.log
 -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:35 zebra-error.log
 -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:35 zebra-output.log

   Notice the incorrect user/group ownership on two
   files: `intranet-error.log` and `opac-error.log`.

2) Apply this patch, and remove the `test1` instance along
   with the database request text file:

   $ sudo koha-remove test1
   $ sudo rm test1-db-request.txt

3) Repeat the commands in Step 1. This time, the output of
   the last command should resemble the following:

   total 8
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 indexer-error.log
   -rw-r--r-- 1 test1-koha test1-koha 1520 Feb  9 15:42 indexer-output.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 intranet-error.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 opac-error.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 worker-error.log
   -rw-r--r-- 1 test1-koha test1-koha 1828 Feb  9 15:42 worker-output.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 zebra-error.log
   -rw-r--r-- 1 test1-koha test1-koha0 Feb  9 15:42 zebra-output.log

   All files should now have the correct user/group ownership.

-- 
You are receiving this mail because:
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/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-02-09 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Andreas Roussos  changed:

   What|Removed |Added

 Status|ASSIGNED|Needs Signoff
   Patch complexity|--- |Small patch

-- 
You are receiving this mail because:
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/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-02-09 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Andreas Roussos  changed:

   What|Removed |Added

 Status|CONFIRMED   |ASSIGNED
   Assignee|[email protected] |[email protected]
   |ity.org |
 CC||[email protected]

-- 
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/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2026-02-09 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Andreas Roussos  changed:

   What|Removed |Added

 Status|NEW |CONFIRMED

--- Comment #1 from Andreas Roussos  ---
(In reply to Saiful Amin from comment #0)
> [...]
> Expected Result:
> All log files under /var/log/koha// should be owned by
> -koha:-koha, identical to a normal koha-create run
> without the request/populate split.
> [...]
Thank you, Saiful, for the detailed Bug Description and the steps to reproduce.

I can confirm this is still an issue, which relates to this line in the script:
https://git.koha-community.org/Koha-community/Koha/src/commit/c58989fc51bf41fc92fd568875f304c03aa075f6/debian/scripts/koha-create#L924

924 chown $username:$username /var/log/koha/$name/*.log

At this point in the script the $username variable is empty,
so the `chown` command becomes:

chown : /var/log/koha/test/*.log

The chown(1) man page states: "If only a colon is given, or if the
entire operand is empty, neither the owner nor the group is changed."

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
___
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/


[Koha-bugs] [Bug 41337] koha-create --request-db and --populate-db creates log files owned by root (intranet-error.log, opac-error.log)

2025-12-01 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41337

Saiful Amin  changed:

   What|Removed |Added

   Priority|P5 - low|P1 - high

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
___
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/