{"action":"closed","issue":{"url":"https://api.github.com/repos/craftercms/craftercms/issues/2688","repository_url":"https://api.github.com/repos/craftercms/craftercms","labels_url":"https://api.github.com/repos/craftercms/craftercms/issues/2688/labels{/name}","comments_url":"https://api.github.com/repos/craftercms/craftercms/issues/2688/comments","events_url":"https://api.github.com/repos/craftercms/craftercms/issues/2688/events","html_url":"https://github.com/craftercms/craftercms/issues/2688","id":389322913,"node_id":"MDU6SXNzdWUzODkzMjI5MTM=","number":2688,"title":"[studio] Cluster initialization fails when authentication type is none and username is not setup in the override config","user":{"login":"alhambrav","id":25483966,"node_id":"MDQ6VXNlcjI1NDgzOTY2","avatar_url":"https://avatars2.githubusercontent.com/u/25483966?v=4","gravatar_id":"","url":"https://api.github.com/users/alhambrav","html_url":"https://github.com/alhambrav","followers_url":"https://api.github.com/users/alhambrav/followers","following_url":"https://api.github.com/users/alhambrav/following{/other_user}","gists_url":"https://api.github.com/users/alhambrav/gists{/gist_id}","starred_url":"https://api.github.com/users/alhambrav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alhambrav/subscriptions","organizations_url":"https://api.github.com/users/alhambrav/orgs","repos_url":"https://api.github.com/users/alhambrav/repos","events_url":"https://api.github.com/users/alhambrav/events{/privacy}","received_events_url":"https://api.github.com/users/alhambrav/received_events","type":"User","site_admin":false},"labels":[{"id":469369224,"node_id":"MDU6TGFiZWw0NjkzNjkyMjQ=","url":"https://api.github.com/repos/craftercms/craftercms/labels/bug","name":"bug","color":"ee0701","default":true},{"id":544813742,"node_id":"MDU6TGFiZWw1NDQ4MTM3NDI=","url":"https://api.github.com/repos/craftercms/craftercms/labels/priority:%20medium","name":"priority: medium","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":{"login":"alhambrav","id":25483966,"node_id":"MDQ6VXNlcjI1NDgzOTY2","avatar_url":"https://avatars2.githubusercontent.com/u/25483966?v=4","gravatar_id":"","url":"https://api.github.com/users/alhambrav","html_url":"https://github.com/alhambrav","followers_url":"https://api.github.com/users/alhambrav/followers","following_url":"https://api.github.com/users/alhambrav/following{/other_user}","gists_url":"https://api.github.com/users/alhambrav/gists{/gist_id}","starred_url":"https://api.github.com/users/alhambrav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alhambrav/subscriptions","organizations_url":"https://api.github.com/users/alhambrav/orgs","repos_url":"https://api.github.com/users/alhambrav/repos","events_url":"https://api.github.com/users/alhambrav/events{/privacy}","received_events_url":"https://api.github.com/users/alhambrav/received_events","type":"User","site_admin":false},"assignees":[{"login":"alhambrav","id":25483966,"node_id":"MDQ6VXNlcjI1NDgzOTY2","avatar_url":"https://avatars2.githubusercontent.com/u/25483966?v=4","gravatar_id":"","url":"https://api.github.com/users/alhambrav","html_url":"https://github.com/alhambrav","followers_url":"https://api.github.com/users/alhambrav/followers","following_url":"https://api.github.com/users/alhambrav/following{/other_user}","gists_url":"https://api.github.com/users/alhambrav/gists{/gist_id}","starred_url":"https://api.github.com/users/alhambrav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alhambrav/subscriptions","organizations_url":"https://api.github.com/users/alhambrav/orgs","repos_url":"https://api.github.com/users/alhambrav/repos","events_url":"https://api.github.com/users/alhambrav/events{/privacy}","received_events_url":"https://api.github.com/users/alhambrav/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/craftercms/craftercms/milestones/12","html_url":"https://github.com/craftercms/craftercms/milestone/12","labels_url":"https://api.github.com/repos/craftercms/craftercms/milestones/12/labels","id":2416748,"node_id":"MDk6TWlsZXN0b25lMjQxNjc0OA==","number":12,"title":"Crafter CMS v3.1.0","description":"","creator":{"login":"sumerjabri","id":3931908,"node_id":"MDQ6VXNlcjM5MzE5MDg=","avatar_url":"https://avatars1.githubusercontent.com/u/3931908?v=4","gravatar_id":"","url":"https://api.github.com/users/sumerjabri","html_url":"https://github.com/sumerjabri","followers_url":"https://api.github.com/users/sumerjabri/followers","following_url":"https://api.github.com/users/sumerjabri/following{/other_user}","gists_url":"https://api.github.com/users/sumerjabri/gists{/gist_id}","starred_url":"https://api.github.com/users/sumerjabri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumerjabri/subscriptions","organizations_url":"https://api.github.com/users/sumerjabri/orgs","repos_url":"https://api.github.com/users/sumerjabri/repos","events_url":"https://api.github.com/users/sumerjabri/events{/privacy}","received_events_url":"https://api.github.com/users/sumerjabri/received_events","type":"User","site_admin":false},"open_issues":49,"closed_issues":227,"state":"open","created_at":"2017-03-28T14:08:22Z","updated_at":"2018-12-11T21:19:55Z","due_on":"2019-01-31T08:00:00Z","closed_at":null},"comments":2,"created_at":"2018-12-10T14:21:17Z","updated_at":"2018-12-11T21:19:55Z","closed_at":"2018-12-11T21:19:54Z","author_association":"MEMBER","body":"## Describe the bug\r\nCluster initialization fails when authentication type is set to none and username is not setup in the override config.  There's a typo too in the bean name('clusterNodeRegistraition').\r\n\r\n## To Reproduce\r\nSteps to reproduce the behavior:\r\n1. Setup clustering in the override config file, set authentication type to `none` and do not uncomment the `username`:\r\n```\r\n##################################################\r\n##                 Clustering                   ##\r\n##################################################\r\n# Sandbox Sync Job interval\r\nstudio.clustering.sandboxSyncJob.interval: 5000\r\n# Published Sync Job interval\r\nstudio.clustering.publishedSyncJob.interval: 60000\r\n# Cluster node registration data\r\nstudio.clustering.node.registration:\r\n#  cluster member local IP (reachable to other cluster members)\r\n  localIp: 127.0.0.1\r\n#  authentication type to access local repository\r\n#  possible values\r\n#   - none (no authentication needed)\r\n#   - basic (username/password authentication)\r\n#   - token (authentication with security token)\r\n#   - key (ssh authentication)\r\n  authenticationType: none\r\n#  username to access local repository\r\n#  username: user\r\n#  password to access local repository\r\n#  password: SuperSecurePassword\r\n#  security token to access local repository\r\n#  token: token\r\n#  private key to access local repository (multiline string)\r\n#  privateKey: |\r\n#    -----BEGIN PRIVATE KEY-----\r\n#    privateKey\r\n#    -----END PRIVATE KEY-----\r\n```\r\n2. stop then start your Studio install and watch the logs.\r\n3. Notice the error: **[ERROR] 2018-12-10 00:54:59,243 [localhost-startStop-1] [context.ContextLoader] | Context initialization failed\r\norg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clusterNodeRegistraition' defined** \r\n\r\n4. Also notice the typo for the bean name in the logs:\r\n\r\nError creating bean with name **clusterNodeRegistraition** defined in class path resource [crafter/studio/studio-services-context.xml]\r\n\r\n## Expected behavior\r\nWhen authentication type is set to `none`, cluster setup should succeed without having to setup a username in the override config file.\r\n\r\nIt would be nice to fix the typo in the bean name too.\r\n\r\n## Screenshots\r\nN/A\r\n\r\n## Logs\r\nhttps://gist.github.com/alhambrav/bfd24ec685d7667762a91f8ea54fe246\r\n\r\n## Specs\r\n### Version\r\nSoftware version if applicable (copy paste from Help > About).\r\n\r\n### OS\r\nOS X\r\n\r\n### Browser\r\nN/A\r\n\r\n## Additional context\r\nN/A\r\n"}}
{"actor":{"display_login":"alhambrav"}}