Created attachment 232677 [details]
Although -c in thin should take the process to WWWDIR, starting redmine complains it can not create /log. The full error is:
Traceback (most recent call last):
13: from /usr/local/bin/thin:25:in `<main>'
12: from /usr/local/bin/thin:25:in `load'
11: from /usr/local/lib/ruby/gems/2.7/gems/thin-1.8.1/bin/thin:6:in `<top (required)>'
10: from /usr/local/lib/ruby/gems/2.7/gems/thin-1.8.1/lib/thin/runner.rb:159:in `run!'
9: from /usr/local/lib/ruby/gems/2.7/gems/thin-1.8.1/lib/thin/runner.rb:203:in `run_command'
8: from /usr/local/lib/ruby/gems/2.7/gems/thin-1.8.1/lib/thin/controllers/controller.rb:62:in `start'
7: from /usr/local/lib/ruby/gems/2.7/gems/thin-1.8.1/lib/thin/daemonizing.rb:56:in `daemonize'
6: from /usr/local/lib/ruby/2.7/fileutils.rb:211:in `mkdir_p'
5: from /usr/local/lib/ruby/2.7/fileutils.rb:211:in `each'
4: from /usr/local/lib/ruby/2.7/fileutils.rb:226:in `block in mkdir_p'
3: from /usr/local/lib/ruby/2.7/fileutils.rb:226:in `reverse_each'
2: from /usr/local/lib/ruby/2.7/fileutils.rb:228:in `block (2 levels) in mkdir_p'
1: from /usr/local/lib/ruby/2.7/fileutils.rb:250:in `fu_mkdir'
/usr/local/lib/ruby/2.7/fileutils.rb:250:in `mkdir': Read-only file system @ dir_s_mkdir - /log (Errno::EROFS)
Tweaking the /usr/local/etc/rc.d/redmine like I did (included in the uploaded file) the error goes away and everything works, but I'm not too happy about it.
How do you start redmine? I can't reproduce your problem here.
service redmine restart
And where are these messages printed?
I don't know if it makes any difference, but it's in a jail provisioned via this ansible role: https://github.com/mekanix/jail-redmine/tree/master/ansible/roles/redmine
One more thing is changed compared to default port options which I don't think influences this error is that I'm using PostgreSQL instead of MySQL. The full info on the packages is:
pkg info redmine42
Name : redmine42
Version : 4.2.4_1
Installed on : Mon Mar 28 10:46:31 2022 CEST
Origin : www/redmine42
Architecture : FreeBSD:13:*
Prefix : /usr/local
Categories : www
Licenses : GPLv2
Maintainer : mikael@FreeBSD.org
WWW : https://www.redmine.org/
Comment : Flexible project management web application
MARKDOWN : on
MYSQL : off
POSTGRESQL : on
RMAGIC : on
THIN : on
cpe : cpe:2.3:a:redmine:redmine:4.2.4:::::freebsd13:x64:1
repo_type : binary
repository : tilda
Flat size : 12.7MiB
Redmine is a flexible project management web application
written using Ruby on Rails framework, it is cross-platform
* Multiple projects support
* Flexible role based access control
* Flexible issue tracking system
* Gantt chart and calendar
* News, documents & files management
* Feeds & email notifications
* Per project wiki
* Per project forums
* Time tracking
* Custom fields for issues, time-entries, projects and users
* SCM integration (SVN, CVS, Git, Mercurial, Bazaar and Darcs)
* Issue creation via email
* Multiple LDAP authentication support
* User self-registration support
* Multilanguage support
* Multiple databases support