{"action":"closed","issue":{"url":"https://api.github.com/repos/zeit/now-cli/issues/1065","repository_url":"https://api.github.com/repos/zeit/now-cli","labels_url":"https://api.github.com/repos/zeit/now-cli/issues/1065/labels{/name}","comments_url":"https://api.github.com/repos/zeit/now-cli/issues/1065/comments","events_url":"https://api.github.com/repos/zeit/now-cli/issues/1065/events","html_url":"https://github.com/zeit/now-cli/issues/1065","id":287374973,"node_id":"MDU6SXNzdWUyODczNzQ5NzM=","number":1065,"title":"now alias throws error when current alias has multiple instances","user":{"login":"satyavh","id":3264269,"node_id":"MDQ6VXNlcjMyNjQyNjk=","avatar_url":"https://avatars2.githubusercontent.com/u/3264269?v=4","gravatar_id":"","url":"https://api.github.com/users/satyavh","html_url":"https://github.com/satyavh","followers_url":"https://api.github.com/users/satyavh/followers","following_url":"https://api.github.com/users/satyavh/following{/other_user}","gists_url":"https://api.github.com/users/satyavh/gists{/gist_id}","starred_url":"https://api.github.com/users/satyavh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satyavh/subscriptions","organizations_url":"https://api.github.com/users/satyavh/orgs","repos_url":"https://api.github.com/users/satyavh/repos","events_url":"https://api.github.com/users/satyavh/events{/privacy}","received_events_url":"https://api.github.com/users/satyavh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-01-10T09:54:04Z","updated_at":"2018-11-13T15:04:45Z","closed_at":"2018-11-13T15:04:45Z","author_association":"NONE","body":"So I have a deploy that I scaled up to 3 instances.\r\nNow I do:\r\n\r\n`now && now alias`\r\nWhich deploys a new single instance, and then alias it and (should) scale it up to 3 instances. \r\nIt gives this result:\r\n\r\n```\r\n➜ git:(master) ✗ now alias\r\n> Assigning alias www.pstsp.kr to deployment...\r\n> Assigning pstsp.kr to deployment...\r\n> Alias pstsp.kr points to pstspkr-lfvajqlfba.now.sh (3 instances)\r\n> Scaling pstspkr-nggeyzhofl.now.sh to 3 instances atomically\r\n> Alias www.pstsp.kr points to pstspkr-lfvajqlfba.now.sh (3 instances)\r\n> Scaling pstspkr-nggeyzhofl.now.sh to 3 instances atomically\r\n> Error! An unexpected error occurred\r\n```\r\n\r\nBut it actually did scale up to 3 instances (sometimes), but it didn't alias them (most of the time)\r\nI know that because when I do `now rm pstspkr --save` it removes the latest deploy that isn't aliased.\r\n\r\nBut the strange thing is, (very!) sometimes is does work, but still throws error!\r\n```\r\n> Assigning alias www.pstsp.kr to deployment...\r\n> Assigning alias pstsp.kr to deployment...\r\n> Alias www.pstsp.kr points to pstspkr-nggeyzhofl.now.sh (3 instances)\r\n> Scaling pstspkr-czntyeauwa.now.sh to 3 instances atomically\r\n> Alias pstsp.kr points to pstspkr-nggeyzhofl.now.sh (3 instances)\r\n> Scaling pstspkr-czntyeauwa.now.sh to 3 instances atomically\r\n> Scaled to 3 instances: [5s]\r\n- pstspkr-czntyeauwa-fa563758b3fbb5b53900c726.now.sh\r\n- pstspkr-czntyeauwa-04ef6c2415e004e5a5130160.now.sh\r\n> Scaled to 3 instances: [4s]\r\n- pstspkr-czntyeauwa-fa563758b3fbb5b53900c726.now.sh\r\n- pstspkr-czntyeauwa-04ef6c2415e004e5a5130160.now.sh\r\n- pstspkr-czntyeauwa-8941f05db7e3dc4b0f7c4335.now.sh\r\n> www.pstsp.kr is a custom domain.\r\n⠋ Fetching domain info> pstsp.kr is a custom domain.\r\n> Verifying the DNS settings for www.pstsp.kr (see https://zeit.world for help)\r\n> Verifying the DNS settings for pstsp.kr (see https://zeit.world for help)\r\n> Verification OK!\r\n> Verification OK!\r\n> Success! www.pstsp.kr now points to pstspkr-czntyeauwa.now.sh! [3s]\r\n> Success! pstsp.kr now points to pstspkr-czntyeauwa.now.sh! [3s]\r\n> Scaled pstspkr-nggeyzhofl.now.sh down to 1 instance [2s]\r\n> Error! An unexpected error occurred\r\n```\r\n\r\nUsually I have to wait a little bit, then do `now alias` again.\r\nThen scale my last deploy manually, and remove the previous deploy manually. Annoying.\r\n\r\nSometimes when doing `now alias` I get this error:\r\n`The alias you are trying to configure is already in use by a different account.` (Uhm....)\r\n\r\nSo overall, it all feels a bit unreliable while the main USP of now is ease of deploy.\r\n\r\nAm I doing something wrong here?"}}
{"actor":{"display_login":"leo"}}