You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Developers must not be retarded to write cloud-related software.
Often in kubernetes and other orchestrators you need to create "Jobs" to perform some tasks. In those environments filesytem is often read-only !
Actual behavior
Developers of minio are retarded.
In mc, main.go
// initMC - initialize 'mc'.
func initMC() {
// Check if mc config exists.
if !isMcConfigExists() {
err := saveMcConfig(newMcConfig())
That is executing before reading environment variables. Therefore disregarding the fact env is defined, it still requires config.json to exist on filesystem.
Steps to reproduce the behavior
mount the filesystem read-only, without config.json
run mc admin idp openid info client
see error:
_mc: <ERROR> Unable to save new mc config. mkdir /minio/.mc/: file exists.
_mc: <ERROR> Unable to save new mc config. open /mnt/minio/$tmpfile.config.json.3462122313: read-only file system
(3) main.go:270 cmd.initMC(..)
(2) config.go:145 cmd.saveMcConfig(..) Tags: [/mnt/minio/config.json]
(1) config-v10.go:161 cmd.saveConfigV10(..) Tags: [/mnt/minio/config.json]
(0) config-v10.go:161 cmd.saveConfigV10(..)
Release-Tag:2.3.0-9 | Commit:DEVELOPMENT. | Host:test-hook-ffpbz | OS:linux | Arch:amd64 | Lang:go1.19.4 | Mem:2.5 MiB/19 MiB | Heap:2.5 MiB/7.3 MiB.
_mc: <ERROR> Unable to save new mc config. mkdir /minio/.mc/: file exists.
mc --version
(paste output of mc --version)
_mc version 2.3.0-9 (commit-id=DEVELOPMENT.GOGET)
Runtime: go1.19.4 linux/amd64
Copyright (c) 2015-0000 MinIO, Inc.
License GNU AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html
System information
Linux blah-blah SMP Wed Apr 28 10:54:41 UTC 2021 (ba3c2e9) x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered:
Expected behavior
Developers must not be retarded to write cloud-related software.
Often in kubernetes and other orchestrators you need to create "Jobs" to perform some tasks. In those environments filesytem is often read-only !
Actual behavior
Developers of minio are retarded.
In mc, main.go
That is executing before reading environment variables. Therefore disregarding the fact env is defined, it still requires config.json to exist on filesystem.
Steps to reproduce the behavior
mc --version
mc --version
)_mc version 2.3.0-9 (commit-id=DEVELOPMENT.GOGET)
Runtime: go1.19.4 linux/amd64
Copyright (c) 2015-0000 MinIO, Inc.
License GNU AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html
System information
Linux blah-blah SMP Wed Apr 28 10:54:41 UTC 2021 (ba3c2e9) x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: