[Koha-bugs] [Bug 25284] Can't open /var/log/koha/kohadev/opac-error.log (Permission denied)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 20 00:00:36 CEST 2020


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

--- Comment #17 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
My steps to reproduce:

$ mkdir stretch ; cd stretch
$ vagrant init debian/stretch64
$ vagrant up
$ vagrant ssh
root at stretch:~# apt update ; apt install wget gnupg
root at stretch:~# echo 'deb http://debian.koha-community.org/koha 19.11 main' >
/etc/apt/sources.list.d/koha.list
root at stretch:~# wget -q -O- https://debian.koha-community.org/koha/gpg.asc |
apt-key add -
root at stretch:~# apt update
root at stretch:~# ls /var/log
alternatives.log  apache2  apt  auth.log  btmp  daemon.log  debug  dpkg.log 
exim4  faillog  fontconfig.log  installer  kern.log  lastlog  messages  mysql 
syslog  user.log  wtmp
root at stretch:~# apt install koha-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  letsencrypt
The following NEW packages will be installed:
  koha-common
0 upgraded, 1 newly installed, 0 to remove and 72 not upgraded.
Need to get 0 B/32.1 MB of archives.
After this operation, 468 MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package koha-common.
(Reading database ... 58880 files and directories currently installed.)
Preparing to unpack .../koha-common_19.11.05-1_all.deb ...
Unpacking koha-common (19.11.05-1) ...
Processing triggers for systemd (232-25+deb9u8) ...
Setting up koha-common (19.11.05-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for systemd (232-25+deb9u8) ...
root at stretch:~# koha-create --create-db t_e_s_t
Koha instance is empty, no staff user created.
[ ok ] Starting Koha indexing daemon for t_e_s_t:.

root at stretch:~# ls -l /var/log/koha/t_e_s_t/
total 4
-rw-r--r-- 1 t_e_s_t-koha t_e_s_t-koha    0 May 19 21:54 indexer-error.log
-rw-r--r-- 1 t_e_s_t-koha t_e_s_t-koha 2380 May 19 21:54 indexer-output.log
-rw-r--r-- 1 root         root            0 May 19 21:54 intranet-error.log
-rw-r--r-- 1 root         root            0 May 19 21:54 opac-error.log
-rw-r--r-- 1 t_e_s_t-koha t_e_s_t-koha    0 May 19 21:54 zebra-error.log
-rw-r--r-- 1 t_e_s_t-koha t_e_s_t-koha    0 May 19 21:54 zebra-output.log
root at stretch:~#

To test:
1. Built a package with the patch
2. Installed it (I really had it previously created and on the 'stretch'
directory so the deb files were in /vagrant inside the box
3. Created a new instance
=> SUCCESS: The permissiosn are correct

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list