Project

General

Profile

Bug #28784

Fix minio config directory permissions

Added by James Beams almost 2 years ago. Updated over 1 year ago.

Status:
Done
Priority:
No priority
Assignee:
John Hixson
Category:
OS
Target version:
Seen in:
Severity:
Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

I had configured S3 (minio) and it was running with no issues. I then created a self-signed certificate and assigned it to minio in the GUI. After this change, minio won't start any more. I checked /var/log/minio.log and see this:

time="2018-02-18T17:28:52-06:00" level=fatal msg="Unable to initialize minio config for the first time." cause="open /usr/local/etc/minio/$tmpfile.config.json.726342174: permission denied" source="[common-main.go:61:initConfig()]"

I opened a console and browsed to this location, to find that there weren't any write permissions set for this directory:

root@nas2:/usr/local/etc # ls -al | grep minio
dr-xr-xr-x 3 minio minio 64 Feb 18 11:14 minio

So I instated write permissions for the user and group:
root@nas2:/usr/local/etc # chmod 775 minio

Then minio started up again.

Present in 11.1-U1 and U2.


Related issues

Related to FreeNAS - Bug #34459: Recompile minio to allow S3 service to startDone

Associated revisions

Revision 9ecac73a (diff)
Added by John Hixson over 1 year ago

Make minio config directory permissions happier Ticket: #28784

Revision 75596860 (diff)
Added by John Hixson over 1 year ago

Make minio config directory permissions happier Ticket: #28784

Revision a14a6acb (diff)
Added by John Hixson over 1 year ago

Make minio config directory permissions happier Ticket: #28784 (cherry picked from commit 75596860c4585efd55786fd2f6a58316bdf6faf0)

Revision 8f42d84c (diff)
Added by John Hixson about 1 year ago

Make minio config directory permissions happier Ticket: #28784

Revision 4de797e0 (diff)
Added by John Hixson about 1 year ago

Make minio config directory permissions happier Ticket: #28784

Revision bb25bb73 (diff)
Added by John Hixson about 1 year ago

Make minio config directory permissions happier Ticket: #28784

Revision 029737fe (diff)
Added by John Hixson about 1 year ago

Make minio config directory permissions happier Ticket: #28784

Revision bcb1dff6 (diff)
Added by John Hixson 8 months ago

Make minio config directory permissions happier Ticket: #28784

Revision a5d90d59 (diff)
Added by John Hixson 8 months ago

Make minio config directory permissions happier Ticket: #28784

Revision de859998 (diff)
Added by John Hixson 8 months ago

Make minio config directory permissions happier Ticket: #28784

Revision 5a6bd506 (diff)
Added by John Hixson 8 months ago

Make minio config directory permissions happier Ticket: #28784

Revision 170830c9 (diff)
Added by John Hixson 5 months ago

Make minio config directory permissions happier Ticket: #28784

Revision 0e723752 (diff)
Added by John Hixson 3 months ago

Make minio config directory permissions happier Ticket: #28784

History

#1 Updated by Dru Lavigne almost 2 years ago

  • Assignee changed from Release Council to Alexander Motin
  • Target version set to 11.2-RC2

Sasha: please load balance.

#2 Updated by John Hixson over 1 year ago

  • Assignee changed from Alexander Motin to John Hixson

#3 Updated by John Hixson over 1 year ago

  • Severity set to Medium

#4 Updated by John Hixson over 1 year ago

I am trying to reproduce this, and it doesn't work on 11 nightlies for another reason:

[root@devnas ~]# tail -f /var/log/minio.log 
minio: <ERROR> Go runtime version check failed. Minio is not compiled by Go >= 1.9.4.  Please recompile accordingly

So, this needs fixed before I can proceed further here.

#5 Updated by John Hixson over 1 year ago

Fixed in commit:75596860c4585efd55786fd2f6a58316bdf6faf0

PR: https://github.com/freenas/ports/pull/105

#6 Updated by John Hixson over 1 year ago

  • Status changed from Not Started to Ready for Testing

#7 Updated by Dru Lavigne over 1 year ago

  • Subject changed from minio won't start after adding certificate to Fix minio config directory permissions
  • Status changed from Ready for Testing to In Progress
  • Target version changed from 11.2-RC2 to 11.2-BETA1
  • Needs Doc changed from Yes to No

#8 Updated by John Hixson over 1 year ago

  • Status changed from In Progress to Done

#9 Updated by Dru Lavigne over 1 year ago

  • Status changed from Done to In Progress

John: this still needs to be merged.

#10 Updated by John Hixson over 1 year ago

  • Status changed from In Progress to Done

Dru Lavigne wrote:

John: this still needs to be merged.

Merged!

#11 Updated by Dru Lavigne over 1 year ago

  • Status changed from Done to Ready for Testing
  • Needs Merging changed from Yes to No

#12 Updated by Eric Pardee over 1 year ago

Using latest version of FreeNAS (11.1-U5) and minio is now broken, getting:

freenas01# cat /var/log/minio.log 
minio: <ERROR> Go runtime version check failed. Minio is not compiled by Go >= 1.9.4.  Please recompile accordingly

Was getting the permission error prior but changing the permissions on /usr/local/etc/minio would fix it.

#13 Updated by Dru Lavigne over 1 year ago

Eric: the update to this port only affects the upcoming release (11.2-BETA1) as it would be too disruptive for the 11.1 branch.

#14 Updated by Eric Pardee over 1 year ago

Dru:
What I find strange from my perspective, we went from stable FreeNAS 11.1-U4 to FreeNAS 11.1-U5.
Minio was working on our production server in FreeNAS 11.1-U4, after we fixed permissions on /usr/local/etc/minio (this commit will fix)

After updating to FreeNAS 11.1-U5, minio is now broken and the error in /var/log/minio.log:

minio: <ERROR> Go runtime version check failed. Minio is not compiled by Go >= 1.9.4.  Please recompile accordingly

That message leads me to believe that the version of minio may have been changed in U5 to a binary compiled by Go version < 1.9.3?

Is that possible?

#15 Updated by Kyle Wade over 1 year ago

Having the same issue with Minio not working in 11.1-U5. It is most likely not related to the directory permission stuff here.

/var/log/minio.log

minio: <ERROR> Go runtime version check failed. Minio is not compiled by Go >= 1.9.4.  Please recompile accordingly

There is a new issue created for this:
https://redmine.ixsystems.com/issues/34459

#16 Updated by Dru Lavigne over 1 year ago

  • Related to Bug #34459: Recompile minio to allow S3 service to start added

#17 Updated by Joe Maloney over 1 year ago

  • Status changed from Ready for Testing to Passed Testing

#18 Updated by Dru Lavigne over 1 year ago

  • Status changed from Passed Testing to Done
  • Needs QA changed from Yes to No

Also available in: Atom PDF