minio won't start after adding certificate

Status
Not open for further replies.

MasterTacoChief

Explorer
Joined
Feb 20, 2017
Messages
67
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 anymore. 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. No clue how permissions got changed, could be a bug.
 

MasterTacoChief

Explorer
Joined
Feb 20, 2017
Messages
67
On reboot the permissions were reset on this directory, and minio wouldn't start again.
 
D

dlavigne

Guest
Is this an issue on 11.1-U2? If so, please create a report at bugs.freenas.org and post the issue number here.
 

MasterTacoChief

Explorer
Joined
Feb 20, 2017
Messages
67
Appears to be working correctly under U2.
 

MasterTacoChief

Explorer
Joined
Feb 20, 2017
Messages
67
Last edited:
Status
Not open for further replies.
Top