FS#67456 - [moosefs] /var/lib/mfs not owned by user mfs

Attached to Project: Community Packages
Opened by Hao Long (imlonghao) - Saturday, 01 August 2020, 10:08 GMT
Last edited by Alexander F. Rødseth (xyproto) - Thursday, 02 February 2023, 11:37 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When starting moosefs-chunkserver or moosefs-master, moosefs need to create a lock file in directory /var/lib/mfs.
moosefs is run by user mfs, but the directory /var/lib/mfs is owned by user root.

Additional info:

* package version(s)
3.0.111-1

* config and/or log files etc.

```
# mfschunkserver start
open files limit has been set to: 16384
working directory: /var/lib/mfs
can't create lockfile in working directory: EACCES (Permission denied)
```

* link to upstream bug report, if any

N/A

Steps to reproduce:
1. pacman -S moosefs
2. mfschunkserver start
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Thursday, 02 February 2023, 11:37 GMT
Reason for closing:  Fixed
Comment by Alexander F. Rødseth (xyproto) - Sunday, 02 August 2020, 10:26 GMT
The permissions are specified in `moosefs.sysusers`, and should be handled by the installation.
Perhaps this is just a matter of logging out and in, or using the `newgrp` command after installation?

I will try to reproduce the issue.
Comment by Simon Ser (emersion) - Tuesday, 17 January 2023, 20:22 GMT
  • Field changed: Percent Complete (100% → 0%)
I just hit the same issue.

I believe the package needs to add a moosefs.tmpfiles file with the following contents:

d /var/lib/moosefs 0750 mfs mfs -
Comment by Alexander F. Rødseth (xyproto) - Thursday, 02 February 2023, 11:37 GMT
Thanks! Updated the package.

Loading...