jefferbrecht opened a new issue, #5261:
URL: https://github.com/apache/couchdb/issues/5261

   ## Description
   
   On older versions (i.e. 3.3.3) couchdb would write to 
`/var/log/couchdb/couchdb.log` by default. As of 3.4.x this no longer appears 
to be the case. This is specific to RHEL 8 (I can't repro this on other Linux 
distros).
   
   ## Steps to Reproduce
   
   ```
   [jefferbrecht@couchdb2 ~]$ cat install
   sudo yum install -y yum-utils
   sudo yum-config-manager --add-repo 
https://couchdb.apache.org/repo/couchdb.repo
   sudo yum install -y couchdb
   cat << EOF > local.ini
   [couchdb]
   [couch_peruser]
   [chttpd]
   [httpd]
   [chttpd_auth]
   [ssl]
   [vhosts]
   [admins]
   admin = otelp
   EOF
   sudo mv local.ini /opt/couchdb/etc/local.ini
   sudo chown couchdb:couchdb /opt/couchdb/etc/local.ini
   sudo chmod 0755 /opt/couchdb/etc/local.ini
   sudo systemctl enable couchdb 
   sudo systemctl restart couchdb
   
   [jefferbrecht@couchdb2 ~]$ sudo bash install
   ...<truncated>...
   Installed:
     couchdb-3.4.1-1.el8.x86_64                                                 
                                                                                
                                                                                
                                  
   
   Complete!
   Created symlink /etc/systemd/system/multi-user.target.wants/couchdb.service 
→ /usr/lib/systemd/system/couchdb.service.
   
   [jefferbrecht@couchdb2 ~]$ sudo cat /var/log/couchdb/couchdb.log
   cat: /var/log/couchdb/couchdb.log: No such file or directory
   
   [jefferbrecht@couchdb2 ~]$ sudo ls /var/log
   audit  boot.log  btmp  chrony  cron  dnf.librepo.log  dnf.log  dnf.rpm.log  
firewalld  hawkey.log  kdump.log  lastlog  maillog  messages  private  qemu-ga  
secure  spooler  sssd  tuned  wtmp
   
   [jefferbrecht@couchdb2 ~]$ sudo cat /var/log/messages | grep "Apache CouchDB"
   Sep 27 16:03:05 couchdb2 systemd[1]: Started Apache CouchDB.
   Sep 27 16:03:06 couchdb2 couchdb[30145]: [info] 2024-09-27T16:03:06.139728Z 
couchdb@127.0.0.1 <0.231.0> -------- Apache CouchDB 3.4.1 is starting.
   Sep 27 16:03:06 couchdb2 couchdb[30145]: [info] 2024-09-27T16:03:06.229326Z 
couchdb@127.0.0.1 <0.231.0> -------- Apache CouchDB has started. Time to relax.
   Sep 27 16:03:06 couchdb2 couchdb[30145]: [info] 2024-09-27T16:03:06.458724Z 
couchdb@127.0.0.1 <0.327.0> -------- Apache CouchDB has started. Time to relax.
   Sep 27 16:03:06 couchdb2 couchdb[30145]: [info] 2024-09-27T16:03:06.459530Z 
couchdb@127.0.0.1 <0.327.0> -------- Apache CouchDB has started on 
http://127.0.0.1:5984/
   ```
   
   ## Expected Behaviour
   
   couchdb should write to `/var/log/couchdb/couchdb.log` by default
   
   ## Your Environment
   
   * CouchDB version used: 3.4.1
   * Browser name and version: N/A
   * Operating system and version: Rocky Linux 8
   
   ```
   [jefferbrecht@couchdb2 ~]$ curl http://127.0.0.1:5984/
   
{"couchdb":"Welcome","version":"3.4.1","git_sha":"f504e38a5","uuid":"5281f9398739edc80fc04692299c0db0","features":["access-ready","partitioned","pluggable-storage-engines","reshard","scheduler"],"vendor":{"name":"The
 Apache Software Foundation"}}
   [jefferbrecht@couchdb2 ~]$ cat /etc/os-release 
   NAME="Rocky Linux"
   VERSION="8.10 (Green Obsidian)"
   ID="rocky"
   ID_LIKE="rhel centos fedora"
   VERSION_ID="8.10"
   PLATFORM_ID="platform:el8"
   PRETTY_NAME="Rocky Linux 8.10 (Green Obsidian)"
   ANSI_COLOR="0;32"
   LOGO="fedora-logo-icon"
   CPE_NAME="cpe:/o:rocky:rocky:8:GA"
   HOME_URL="https://rockylinux.org/";
   BUG_REPORT_URL="https://bugs.rockylinux.org/";
   SUPPORT_END="2029-05-31"
   ROCKY_SUPPORT_PRODUCT="Rocky-Linux-8"
   ROCKY_SUPPORT_PRODUCT_VERSION="8.10"
   REDHAT_SUPPORT_PRODUCT="Rocky Linux"
   REDHAT_SUPPORT_PRODUCT_VERSION="8.10"
   ```
   
   ## Additional Context
   
   I couldn't find anything in the 3.4.x release notes about changes to log 
writer defaults.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to