{"action":"created","issue":{"url":"https://api.github.com/repos/joeferner/redis-commander/issues/267","repository_url":"https://api.github.com/repos/joeferner/redis-commander","labels_url":"https://api.github.com/repos/joeferner/redis-commander/issues/267/labels{/name}","comments_url":"https://api.github.com/repos/joeferner/redis-commander/issues/267/comments","events_url":"https://api.github.com/repos/joeferner/redis-commander/issues/267/events","html_url":"https://github.com/joeferner/redis-commander/issues/267","id":332814835,"node_id":"MDU6SXNzdWUzMzI4MTQ4MzU=","number":267,"title":"Startup fails (on kubernetes)","user":{"login":"elm-","id":4736943,"node_id":"MDQ6VXNlcjQ3MzY5NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/4736943?v=4","gravatar_id":"","url":"https://api.github.com/users/elm-","html_url":"https://github.com/elm-","followers_url":"https://api.github.com/users/elm-/followers","following_url":"https://api.github.com/users/elm-/following{/other_user}","gists_url":"https://api.github.com/users/elm-/gists{/gist_id}","starred_url":"https://api.github.com/users/elm-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elm-/subscriptions","organizations_url":"https://api.github.com/users/elm-/orgs","repos_url":"https://api.github.com/users/elm-/repos","events_url":"https://api.github.com/users/elm-/events{/privacy}","received_events_url":"https://api.github.com/users/elm-/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-15T15:15:48Z","updated_at":"2018-11-19T20:34:15Z","closed_at":"2018-06-26T07:38:11Z","author_association":"NONE","body":"I'm getting the following error when running it on Kubernetes. The config looks correct to me, anyone has an idea how to check this further?\r\n\r\n\r\n```\r\nCreating custom redis-commander config.\r\nConfiguration:\r\n    {\r\n    \"sidebarWidth\":250,\r\n    \"locked\":false,\r\n    \"CLIHeight\":50,\r\n    \"CLIOpen\":false,\r\n    \"default_connections\": [\r\n        {\r\n            \"label\":\"redis\",\r\n            \"host\":\"redis\",\r\n            \"port\":\"6379\",\r\n            \"password\":\"\",\r\n            \"dbIndex\":0\r\n        }\r\n        ]\r\n    }\r\nnode ./bin/redis-commander --redis-port tcp://10.47.248.71:6379\r\nNo Save: false\r\nlistening on  0.0.0.0 : 8081\r\nnet.js:1032\r\n      throw new errors.RangeError('ERR_SOCKET_BAD_PORT', port);\r\n      ^\r\n\r\nRangeError [ERR_SOCKET_BAD_PORT]: Port should be > 0 and < 65536. Received NaN.\r\n    at lookupAndConnect (net.js:1032:13)\r\n    at Socket.connect (net.js:1001:5)\r\n    at Object.connect (net.js:124:35)\r\n    at /redis-commander/node_modules/ioredis/lib/connectors/connector.js:44:20\r\n    at process._tickCallback (internal/process/next_tick.js:176:11)\r\n```\r\n\r\n\r\nThe config for it:\r\n\r\n```\r\napiVersion: extensions/v1beta1\r\nkind: Deployment\r\nmetadata:\r\n  name: redis-commander\r\nspec:\r\n  replicas: 1\r\n  template:\r\n    metadata:\r\n      labels:\r\n        app: airflow\r\n        tier: redis-commander\r\n    spec:\r\n      restartPolicy: Always\r\n      containers:\r\n      - name: redis\r\n        image: rediscommander/redis-commander:latest\r\n        ports:\r\n        - name: redis-commander\r\n          containerPort: 8081\r\n        env:\r\n        - name: REDIS_HOSTS\r\n          value: redis:redis:6379\r\n```"},"comment":{"url":"https://api.github.com/repos/joeferner/redis-commander/issues/comments/440032556","html_url":"https://github.com/joeferner/redis-commander/issues/267#issuecomment-440032556","issue_url":"https://api.github.com/repos/joeferner/redis-commander/issues/267","id":440032556,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDAzMjU1Ng==","user":{"login":"klmcwhirter","id":1332462,"node_id":"MDQ6VXNlcjEzMzI0NjI=","avatar_url":"https://avatars2.githubusercontent.com/u/1332462?v=4","gravatar_id":"","url":"https://api.github.com/users/klmcwhirter","html_url":"https://github.com/klmcwhirter","followers_url":"https://api.github.com/users/klmcwhirter/followers","following_url":"https://api.github.com/users/klmcwhirter/following{/other_user}","gists_url":"https://api.github.com/users/klmcwhirter/gists{/gist_id}","starred_url":"https://api.github.com/users/klmcwhirter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klmcwhirter/subscriptions","organizations_url":"https://api.github.com/users/klmcwhirter/orgs","repos_url":"https://api.github.com/users/klmcwhirter/repos","events_url":"https://api.github.com/users/klmcwhirter/events{/privacy}","received_events_url":"https://api.github.com/users/klmcwhirter/received_events","type":"User","site_admin":false},"created_at":"2018-11-19T20:34:15Z","updated_at":"2018-11-19T20:34:15Z","author_association":"NONE","body":"I can confirm this. I had a different problem deploying into OpenShift but the resolution was the same.\r\n\r\nI was setting the following env vars: REDIS_HOST, REDIS_PORT.\r\ni was getting an error along the lines of \"could not write to /redis-commander/.redis-commander\" due to entrypoint.sh: writeDefaultConfigBeginning function.\r\n\r\nThe workaround was to delete those env vars and define REDiS_HOSTS=myproject:redis:6379\r\n\r\nI know the issue is closed, but wanted to document this in case anyone else encounters this with OpenShift.\r\n\r\nThis was in Minishift 1.27 with oc 3.11 and K8S 1.11.\r\nminishift v1.27.0+707887e\r\n\r\noc v3.11.0+0cbc58b\r\nkubernetes v1.11.0+d4cacc0\r\nfeatures: Basic-Auth GSSAPI Kerberos SPNEGO\r\n\r\nServer https://192.168.99.101:8443\r\nkubernetes v1.11.0+d4cacc0\r\n\r\n"}}
{"actor":{"display_login":"klmcwhirter"}}