#1099914 redmine: warning during configuration

#1099914#5
Date:
2025-03-09 14:34:21 UTC
From:
To:
Dear Debian Ruby Team,

during configuration in the postinst script, bundle is called with a user id
different from root. If the TMPDIR of root is not accessible for other users
there appears the warning

TMPDIR is not writable

Maybe TMPDIR should be redefined when calling bundle.

By the way, there's also a warning that /var/www (owned by root) is not writeable.

Regards,
Jörg.

#1099914#10
Date:
2025-03-27 23:58:24 UTC
From:
To:
I think this represents a change in the default bundler behavior as
nothing has been done to Redmine as far as I know to make this change.
This replaces the previous warning about how bundler should not be run
as root.

This warning doesn’t appear to cause any problems, but I would be
willing set TMPDIR just to get rid of the warning.  However, maybe it
makes more sense to deal with this in the bundler package (set a
usable default TMPDIR).

Probably related to the above.

I am copying debian-ruby to see if anyone has any ideas as to the best
way to address this.

#1099914#13
Date:
2025-03-27 23:58:24 UTC
From:
To:
I think this represents a change in the default bundler behavior as
nothing has been done to Redmine as far as I know to make this change.
This replaces the previous warning about how bundler should not be run
as root.

This warning doesn’t appear to cause any problems, but I would be
willing set TMPDIR just to get rid of the warning.  However, maybe it
makes more sense to deal with this in the bundler package (set a
usable default TMPDIR).

Probably related to the above.

I am copying debian-ruby to see if anyone has any ideas as to the best
way to address this.

#1099914#18
Date:
2025-06-13 17:44:29 UTC
From:
To:
When configuring Redmine, bundler produces /var/www writability warnings.

Processing triggers for redmine (6.0.5+ds-1) ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
Don't run Bundler as root. Installing your bundle as root will break this
application for all non-root users on this machine.
dbconfig-common: flushing administrative password
`/var/www` is not writable.
Bundler will use `/tmp/bundler20250609-4141343-hlgvjq4141343' as your home
directory temporarily.
`/var/www` is not writable.
Bundler will use `/tmp/bundler20250609-4141535-90mw5b4141535' as your home
directory temporarily.
Some configuration data is already loaded.

Is this expected?  It doesn’t appear to cause problems because it falls back
to a temporary location.  Is there some way to suppress this message?

#1099914#25
Date:
2025-08-15 23:20:11 UTC
From:
To:
I am reassigning this to the bundler package as it appears that is the correct
place to deal with this warning.

#1099914#32
Date:
2025-08-15 23:20:11 UTC
From:
To:
I am reassigning this to the bundler package as it appears that is the correct
place to deal with this warning.