northstack / northstack-client

NorthStack Client
https://northstack.com
GNU General Public License v3.0
7 stars 1 forks source link

Path in spaces causes deploy build to fail #11

Closed hckia closed 5 years ago

hckia commented 5 years ago

[what is the bug or issue?]

If the customer creates an app with a space in org name Build will fail on deploy.

northstack app:create --orgId Z9v82q7zpx5bAECmtDv4TH "Pagelys Example" "pagelyexample.com"

Build will fail on deploy.

Process to Recreate

  1. In northstack directory run northstack app:create --orgId {orgId} "Pagely Example" "pagelyexample.com"
  2. then run northstack app:deploy Pagelys\ Example/ test

Expected vs Current result

Hoormazds-MacBook-Pro:northstack hckia$ northstack app:deploy Pagelys\ Example/ test
sh: cd: line 1: can't cd to /current/Pagelys: No such file or directory

Warning: fopen(/current/dG6xYtFVctstQZamDEhfUj.tar.gz): failed to open stream: No such file or directory in /app/src/Command/Sapp/DeployCommand.php on line 88

Warning: unlink(/current/dG6xYtFVctstQZamDEhfUj.tar.gz): No such file or directory in /app/src/Command/Sapp/DeployCommand.php on line 89 

end result below...

Deploy finished code: 200
stdClass Object
(
    [deploy] => stdClass Object
        (
            [mapper] => Array
                (
                    [0] => stdClass Object
                        (
                            [port] => 9000
                            [ip] => 10.42.9.232
                        )
                )
            [gateway] => stdClass Object
                (
                    [task] => updated
                    [service] => created
                )
            [builder] => stdClass Object
                (
                    [started] => 2018-10-08 22:31:28
                    [taskArn] => arn:aws:ecs:us-east-1:927477427215:task/c9324be9-96e5-4f53-b50c-b1415a5c845f
                    [failure] => 255
                )
            [failed] => build
        )
    [sapp] => stdClass Object
        (
            [id] => dG6xYtFVctstQZamDEhfUj
            [orgId] => Z9v82q7zpx5bAECmtDv4TH
            [parentSapp] => HLY3SHGJWbVknuqWSarijk
            [cluster] => dev-us-east-1
            [name] => Pagelys Example
            [environment] => test
            [primaryDomain] => pagelyexample.com
            [domains] => stdClass Object
                (
                    [domains] => Array
                        (
                            [0] => ns-dG6xYtFVctstQZamDEhfUj.dev-us-east-1-northstack.com
                        )
                )
            [config] => stdClass Object
                (
                    [app-type] => wordpress
                    [layout] => standard
                    [shared-paths] => Array
                        (
                            [0] => wp-content/uploads
                            [1] => wp-content/cache
                        )
                    [environment] => development
                    [auth-type] => standard
                )
            [configGatewaySys] =>
            [configGatewayCust] =>
            [configBuild] => stdClass Object
                (
                    [image] => stdClass Object
                        (
                            [name] => wordpress-php
                            [version] => 4.8.9
                        )
                    [build-type] => builder
                    [wordpress-version] => ^4.8
                    [wordpress-install] => stdClass Object
                        (
                            [url] => http://ns-dG6xYtFVctstQZamDEhfUj.dev-us-east-1-northstack.com/
                            [title] => Pagelys Example
                            [admin_user] => ns-admin
                            [admin_pass] => 39d5fbb5b887e509c81e3f3b01f2f426
                            [admin_email] => ops+ns+example@pagely.com
                            [multisite] =>
                            [subdomains] =>
                        )
                )
            [configCloudfront] =>
            [active] => 1
            [created] => stdClass Object
                (
                    [date] => 2018-10-08 21:49:08.000000
                    [timezone_type] => 3
                    [timezone] => UTC
                )
            [updated] => stdClass Object
                (
                    [date] => 2018-10-08 21:49:08.000000
                    [timezone_type] => 3
                    [timezone] => UTC
                )
            [deactivated] =>
            [uploadUrl] =>
        )
)
App Info
 --------- --------------------------------------------------------
  Field     Value
 --------- --------------------------------------------------------
  Name      Pagelys Example
  Cluster   dev-us-east-1
  Id        dG6xYtFVctstQZamDEhfUj
  OrgId     Z9v82q7zpx5bAECmtDv4TH
  Parent    HLY3SHGJWbVknuqWSarijk
  Env       test
  Domains   ns-dG6xYtFVctstQZamDEhfUj.dev-us-east-1-northstack.com
 --------- --------------------------------------------------------
Build Status:
 ---------- ------------------------------------------------------------------------------
  Field      Value
 ---------- ------------------------------------------------------------------------------
  Task Arn   arn:aws:ecs:us-east-1:927477427215:task/c9324be9-96e5-4f53-b50c-b1415a5c845f
  Started    2018-10-08 22:31:28
  Stopped
  Length
 ---------- ------------------------------------------------------------------------------
Build failed

[if relevant, include a screenshot, support ticket links, account id's, etc]

$ northstack auth:whoami current logged in as Pagely.Model.Orgs.OrgUser:Fjm3J4VVrwsEPkMtWxvdSa


Field Value


Id Fjm3J4VVrwsEPkMtWxvdSa Username pagelynsexample First Pagely Last Example Email ops+ns+example@pagely.com



Org Id Permission Added By Updated


Z9v82q7zpx5bAECmtDv4TH 1023 2018-10-08T20:50:11+00:00


Note: please tag with bug and any other relevant labels