Cannot upload my cloud code or static html code using the command line

101 views
Skip to first unread message

Ricardo Ruiz

unread,
Jan 23, 2017, 6:48:33 PM1/23/17
to back{4}app
Hello,

When I use the command line "b4a deploy", I receive this error:

Deploy failed with error:

parse: error with status=500 and body="Error: Object {&quot;folder&quot;:&quot;public&quot;,&quot;filename&quot;:&quot;apple-touch-icon-114x114.png&quot;,&quot;version&quot;:&quot;2&quot;,&quot;checksum&quot;:&quot;7352e42bd0d95d193690073aa47d055d&quot;} not found.<br> &nbsp; &nbsp;at /home/back4app/scm/back4app-cli-server/node_modules/parse-cli-server/lib/ParseCliController.js:114:17<br> &nbsp; &nbsp;at process._tickDomainCallback (internal/process/next_tick.js:129:7)\n"


And if I try again I receive this one like hundreds of times:


panic: sync: inconsistent mutex state


goroutine 626 [running]:

sync.(*Mutex).Lock(0xc82000a140)

/home/travis/.gimme/versions/go1.5.3.linux.amd64/src/sync/mutex.go:74 +0x16d

math/rand.(*lockedSource).Int63(0xc82000a140, 0x11f1c0)

/home/travis/.gimme/versions/go1.5.3.linux.amd64/src/math/rand/rand.go:239 +0x28

math/rand.(*Rand).Int63(0xc82000e320, 0x6cae5)

/home/travis/.gimme/versions/go1.5.3.linux.amd64/src/math/rand/rand.go:46 +0x39

math/rand.(*Rand).Int(0xc82000e320, 0x0)

/home/travis/.gimme/versions/go1.5.3.linux.amd64/src/math/rand/rand.go:56 +0x21

math/rand.Int(0xc82002c0a8)

/home/travis/.gimme/versions/go1.5.3.linux.amd64/src/math/rand/rand.go:183 +0x23

net.exchange(0xc822cfc2a0, 0x11, 0xc820543e40, 0x16, 0xc822cf0001, 0x12a05f200, 0x0, 0x0, 0x0)

/home/travis/.gimme/versions/go1.5.3.linux.amd64/src/net/dnsclient_unix.go:143 +0x3ec

net.tryOneName(0xc82010a080, 0xc820543e40, 0x16, 0x110001, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)

/home/travis/.gimme/versions/go1.5.3.linux.amd64/src/net/dnsclient_unix.go:176 +0x425

net.goLookupIPOrder.func1(0xc82010a080, 0xc8203138b0, 0xc820469140, 0x1)

/home/travis/.gimme/versions/go1.5.3.linux.amd64/src/net/dnsclient_unix.go:452 +0x59

created by net.goLookupIPOrder

/home/travis/.gimme/versions/go1.5.3.linux.amd64/src/net/dnsclient_unix.go:454 +0x3ba


goroutine 1 [chan send]:

github.com/ParsePlatform/parse-cli/parsecmd.(*deployCmd).uploadSourceFiles(0xc820015920, 0xc8223c0540, 0xc8219c5830, 0x0, 0x0, 0x0)

/home/travis/gopath/src/github.com/ParsePlatform/parse-cli/parsecmd/deploy.go:270 +0x10ae

github.com/ParsePlatform/parse-cli/parsecmd.(*deployCmd).deploy(0xc820015920, 0xc82053c0c0, 0x6, 0xc820ef6d20, 0x0, 0xc8200846c0, 0xc8200846c0, 0x0, 0x0)

/home/travis/gopath/src/github.com/ParsePlatform/parse-cli/parsecmd/deploy.go:403 +0x73b

github.com/ParsePlatform/parse-cli/parsecmd.(*deployCmd).run(0xc820015920, 0xc8200846c0, 0xc8204e44b0, 0x0, 0x0)

/home/travis/gopath/src/github.com/ParsePlatform/parse-cli/parsecmd/deploy.go:514 +0xe7

github.com/ParsePlatform/parse-cli/parsecmd.(*deployCmd).(github.com/ParsePlatform/parse-cli/parsecmd.run)-fm(0xc8200846c0, 0xc8204e44b0, 0x0, 0x0)

/home/travis/gopath/src/github.com/ParsePlatform/parse-cli/parsecmd/deploy.go:542 +0x42

github.com/ParsePlatform/parse-cli/parsecli.RunWithClient.func1(0xc8200e8000, 0x75bbf8, 0x0, 0x0)

/home/travis/gopath/src/github.com/ParsePlatform/parse-cli/parsecli/runners.go:59 +0x3a2

github.com/spf13/cobra.(*Command).execute(0xc8200e8000, 0x75bbf8, 0x0, 0x0, 0x0, 0x0)

/home/travis/gopath/src/github.com/spf13/cobra/command.go:636 +0x8f8

github.com/spf13/cobra.(*Command).ExecuteC(0xc820088d80, 0xc8200e8000, 0x0, 0x0)

/home/travis/gopath/src/github.com/spf13/cobra/command.go:722 +0x56b

github.com/spf13/cobra.(*Command).Execute(0xc820088d80, 0x0, 0x0)

/home/travis/gopath/src/github.com/spf13/cobra/command.go:681 +0x2d

main.main()

/home/travis/gopath/src/github.com/back4app/parse-cli/main.go:91 +0xb18



My app is just the main.js in cloud folder with several functions and a static website with several subfolders and files in those subfolders.

After the error, if I go to the dashboard, I only see a few files in my public folder, but no subfolders. And the cloud code folder (cloud) is empty.


Any idea or suggestion?

Thanks a lot.

casag...@back4app.com

unread,
Jan 24, 2017, 6:57:11 AM1/24/17
to back{4}app
Hello!

Ricardo, can you confirm if there are any special characters on your code, please?

Best!
Reply all
Reply to author
Forward
0 new messages