Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

I keep getting this error and I don't know how to solve it #29

Open
hyyan opened this issue Sep 23, 2014 · 5 comments
Open

I keep getting this error and I don't know how to solve it #29

hyyan opened this issue Sep 23, 2014 · 5 comments

Comments

@hyyan
Copy link

hyyan commented Sep 23, 2014

Yaml file

conveyor:
  repository:
    type: git
    url: [email protected]:hyyan/jaguar.git
  targets:
    staging:
      transport:
        type: ftp
        host: my host
        path: /
        user: my user
        pass: my pass
  build:
    dir: ./build
    tasks:
      -
        type: shell
        command: echo 'hello'

Error

$ php conveyor.phar deploy staging v1.3.0 --full
PHP Warning:  proc_open(): CreateProcess failed, error code - 267 in phar://C:/U
sers/Hyyan/Desktop/test/conveyor.phar/vendor/symfony/process/Symfony/Component/P
rocess/Process.php on line 241
PHP Stack trace:
PHP   1. {main}() C:\Users\Hyyan\Desktop\test\conveyor.phar:0
PHP   2. require() C:\Users\Hyyan\Desktop\test\conveyor.phar:6
PHP   3. Webcreate\Conveyor\Console\Application->run() phar://C:/Users/Hyyan/Des
ktop/test/conveyor.phar/bin/conveyor:16
PHP   4. Symfony\Component\Console\Application->run() phar://C:/Users/Hyyan/Desk
top/test/conveyor.phar/src/Webcreate/Conveyor/Console/Application.php:106
PHP   5. Webcreate\Conveyor\Console\Application->doRun() phar://C:/Users/Hyyan/D
esktop/test/conveyor.phar/vendor/symfony/console/Symfony/Component/Console/Appli
cation.php:106
PHP   6. Symfony\Component\Console\Application->doRun() phar://C:/Users/Hyyan/De
sktop/test/conveyor.phar/src/Webcreate/Conveyor/Console/Application.php:153
PHP   7. Symfony\Component\Console\Command\Command->run() phar://C:/Users/Hyyan/
Desktop/test/conveyor.phar/vendor/symfony/console/Symfony/Component/Console/Appl
ication.php:200
PHP   8. Webcreate\Conveyor\Command\DeployCommand->execute() phar://C:/Users/Hyy
an/Desktop/test/conveyor.phar/vendor/symfony/console/Symfony/Component/Console/C
ommand/Command.php:242
PHP   9. Webcreate\Conveyor\Conveyor->deploy() phar://C:/Users/Hyyan/Desktop/tes
t/conveyor.phar/src/Webcreate/Conveyor/Command/DeployCommand.php:54
PHP  10. Webcreate\Conveyor\Repository\Repository->getVersion() phar://C:/Users/
Hyyan/Desktop/test/conveyor.phar/src/Webcreate/Conveyor/Conveyor.php:338
PHP  11. Webcreate\Conveyor\Repository\Repository->getVersions() phar://C:/Users
/Hyyan/Desktop/test/conveyor.phar/src/Webcreate/Conveyor/Repository/Repository.p
hp:116
PHP  12. Webcreate\Conveyor\Repository\Driver\AbstractVcsDriver->getVersions() p
har://C:/Users/Hyyan/Desktop/test/conveyor.phar/src/Webcreate/Conveyor/Repositor
y/Repository.php:111
PHP  13. Webcreate\Vcs\Git->tags() phar://C:/Users/Hyyan/Desktop/test/conveyor.p
har/src/Webcreate/Conveyor/Repository/Driver/AbstractVcsDriver.php:52
PHP  14. Webcreate\Vcs\Git\AbstractGit->execute() phar://C:/Users/Hyyan/Desktop/
test/conveyor.phar/vendor/webcreate/vcs/src/Webcreate/Vcs/Git.php:347
PHP  15. Webcreate\Vcs\Common\Adapter\CliAdapter->execute() phar://C:/Users/Hyya
n/Desktop/test/conveyor.phar/vendor/webcreate/vcs/src/Webcreate/Vcs/Git/Abstract
Git.php:131
PHP  16. Webcreate\Util\Cli->execute() phar://C:/Users/Hyyan/Desktop/test/convey
or.phar/vendor/webcreate/vcs/src/Webcreate/Vcs/Common/Adapter/CliAdapter.php:176

PHP  17. Symfony\Component\Process\Process->run() phar://C:/Users/Hyyan/Desktop/
test/conveyor.phar/vendor/webcreate/util/src/Webcreate/Util/Cli.php:100
PHP  18. Symfony\Component\Process\Process->start() phar://C:/Users/Hyyan/Deskto
p/test/conveyor.phar/vendor/symfony/process/Symfony/Component/Process/Process.ph
p:195
PHP  19. proc_open() phar://C:/Users/Hyyan/Desktop/test/conveyor.phar/vendor/sym
fony/process/Symfony/Component/Process/Process.php:241

Warning: proc_open(): CreateProcess failed, error code - 267 in phar://C:/Users/
Hyyan/Desktop/test/conveyor.phar/vendor/symfony/process/Symfony/Component/Proces
s/Process.php on line 241

Call Stack:
    0.0206     672400   1. {main}() C:\Users\Hyyan\Desktop\test\conveyor.phar:0
    0.0208     668424   2. require('phar://C:/Users/Hyyan/Desktop/test/conveyor.
phar/bin/conveyor') C:\Users\Hyyan\Desktop\test\conveyor.phar:6
    0.0496    2607096   3. Webcreate\Conveyor\Console\Application->run() phar://
C:/Users/Hyyan/Desktop/test/conveyor.phar/bin/conveyor:16
    0.0589    2974720   4. Symfony\Component\Console\Application->run() phar://C
:/Users/Hyyan/Desktop/test/conveyor.phar/src/Webcreate/Conveyor/Console/Applicat
ion.php:106
    0.0589    2974904   5. Webcreate\Conveyor\Console\Application->doRun() phar:
//C:/Users/Hyyan/Desktop/test/conveyor.phar/vendor/symfony/console/Symfony/Compo
nent/Console/Application.php:106
    0.1934    6002248   6. Symfony\Component\Console\Application->doRun() phar:/
/C:/Users/Hyyan/Desktop/test/conveyor.phar/src/Webcreate/Conveyor/Console/Applic
ation.php:153
    0.1938    6003576   7. Symfony\Component\Console\Command\Command->run() phar
://C:/Users/Hyyan/Desktop/test/conveyor.phar/vendor/symfony/console/Symfony/Comp
onent/Console/Application.php:200
    0.1942    6007616   8. Webcreate\Conveyor\Command\DeployCommand->execute() p
har://C:/Users/Hyyan/Desktop/test/conveyor.phar/vendor/symfony/console/Symfony/C
omponent/Console/Command/Command.php:242
    0.1943    6008888   9. Webcreate\Conveyor\Conveyor->deploy() phar://C:/Users
/Hyyan/Desktop/test/conveyor.phar/src/Webcreate/Conveyor/Command/DeployCommand.p
hp:54
    0.2040    6312224  10. Webcreate\Conveyor\Repository\Repository->getVersion(
) phar://C:/Users/Hyyan/Desktop/test/conveyor.phar/src/Webcreate/Conveyor/Convey
or.php:338
    0.2040    6312288  11. Webcreate\Conveyor\Repository\Repository->getVersions
() phar://C:/Users/Hyyan/Desktop/test/conveyor.phar/src/Webcreate/Conveyor/Repos
itory/Repository.php:116
    0.2099    6593296  12. Webcreate\Conveyor\Repository\Driver\AbstractVcsDrive
r->getVersions() phar://C:/Users/Hyyan/Desktop/test/conveyor.phar/src/Webcreate/
Conveyor/Repository/Repository.php:111
    0.2099    6593600  13. Webcreate\Vcs\Git->tags() phar://C:/Users/Hyyan/Deskt
op/test/conveyor.phar/src/Webcreate/Conveyor/Repository/Driver/AbstractVcsDriver
.php:52
    0.2099    6594328  14. Webcreate\Vcs\Git\AbstractGit->execute() phar://C:/Us
ers/Hyyan/Desktop/test/conveyor.phar/vendor/webcreate/vcs/src/Webcreate/Vcs/Git.
php:347
    0.2099    6594400  15. Webcreate\Vcs\Common\Adapter\CliAdapter->execute() ph
ar://C:/Users/Hyyan/Desktop/test/conveyor.phar/vendor/webcreate/vcs/src/Webcreat
e/Vcs/Git/AbstractGit.php:131
    0.2105    6604624  16. Webcreate\Util\Cli->execute() phar://C:/Users/Hyyan/D
esktop/test/conveyor.phar/vendor/webcreate/vcs/src/Webcreate/Vcs/Common/Adapter/
CliAdapter.php:176
    0.2123    6815640  17. Symfony\Component\Process\Process->run() phar://C:/Us
ers/Hyyan/Desktop/test/conveyor.phar/vendor/webcreate/util/src/Webcreate/Util/Cl
i.php:100
    0.2123    6815688  18. Symfony\Component\Process\Process->start() phar://C:/
Users/Hyyan/Desktop/test/conveyor.phar/vendor/symfony/process/Symfony/Component/
Process/Process.php:195
    0.2142    6885760  19. proc_open() phar://C:/Users/Hyyan/Desktop/test/convey
or.phar/vendor/symfony/process/Symfony/Component/Process/Process.php:241




  [Symfony\Component\Process\Exception\RuntimeException]
  Unable to launch a new process.

@fieg
Copy link
Member

fieg commented Sep 23, 2014

Please try to run from source (master branch), the phar on the website is pretty old and unstable :(

See https://github.com/webcreate/conveyor#installation-from-source

@hyyan
Copy link
Author

hyyan commented Sep 23, 2014

@fieg I cloned the source and ran composer but I still getting the same error , It is something about
the proc_open() function I don't know what is wrong

@fieg
Copy link
Member

fieg commented Sep 24, 2014

Could you try to do a composer update and see if it still happens?

@hyyan
Copy link
Author

hyyan commented Sep 24, 2014

@fieg I ran composer update and I still getting the same error maybe it is something related only for ftp adapter ?! I don't know . I ran the test too and here is the results

$ phpunit
PHPUnit 3.7.37 by Sebastian Bergmann.

Configuration read from C:\Users\Hyyan\Desktop\test\conveyor\phpunit.xml.dist

...S..........FFF..I.E..E.IIIIIII.II................I............ 65 / 88 ( 73%)

..FFFF.F..FFFF.....FF.F

Time: 1.62 minutes, Memory: 21.50Mb

There were 2 errors:

1) FileTransporterTest::testGetDispatchesEvent
copy(/tmp/test): failed to open stream: No such file or directory

C:\Users\Hyyan\Desktop\test\conveyor\src\Webcreate\Conveyor\Transporter\FileTran
sporter.php:51
C:\Users\Hyyan\Desktop\test\conveyor\tests\Webcreate\Conveyor\Test\TransporterTe
stCase.php:66

2) FileTransporterTest::testSymlinkDispatchesEvent
Symfony\Component\Filesystem\Exception\IOException: Failed to create symbolic li
nk from C:\Users\Hyyan\AppData\Local\Temp\conveyor54229504e50b6/a/path to C:\Use
rs\Hyyan\AppData\Local\Temp\conveyor54229504e50b6/deploy

C:\Users\Hyyan\Desktop\test\conveyor\vendor\symfony\filesystem\Symfony\Component
\Filesystem\Filesystem.php:293
C:\Users\Hyyan\Desktop\test\conveyor\src\Webcreate\Conveyor\Transporter\FileTran
sporter.php:115
C:\Users\Hyyan\Desktop\test\conveyor\tests\Webcreate\Conveyor\Test\TransporterTe
stCase.php:98

--


There were 15 failures:

1) PhingTaskTest::testExecuteForSinglePhingTarget
Expectation failed for method name is equal to <string:execute> when invoked 1 t
ime(s)
Parameter 0 for invocation Webcreate\Util\Cli::execute('phing "firstTarget"', nu
ll, '/tmp') does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'phing 'firstTarget''
+'phing "firstTarget"'

C:\Users\Hyyan\Desktop\test\conveyor\src\Webcreate\Conveyor\Task\PhingTask.php:6
7
C:\Users\Hyyan\Desktop\test\conveyor\tests\Webcreate\Conveyor\Task\PhingTaskTest
.php:40

2) PhingTaskTest::testExecuteForMultiplePhingTarget
Expectation failed for method name is equal to <string:execute> when invoked 1 t
ime(s)
Parameter 0 for invocation Webcreate\Util\Cli::execute('phing "firstTarget" "sec
ondTa...third"', null, '/tmp') does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'phing 'firstTarget' 'secondTarget' 'third''
+'phing "firstTarget" "secondTarget" "third"'

C:\Users\Hyyan\Desktop\test\conveyor\src\Webcreate\Conveyor\Task\PhingTask.php:6
7
C:\Users\Hyyan\Desktop\test\conveyor\tests\Webcreate\Conveyor\Task\PhingTaskTest
.php:57

3) PhingTaskTest::testExecuteForNonDefaultBuildFile
Expectation failed for method name is equal to <string:execute> when invoked 1 t
ime(s)
Parameter 0 for invocation Webcreate\Util\Cli::execute('phing -f "hello.xml" "fi
rstTarget"', null, '/tmp') does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'phing -f 'hello.xml' 'firstTarget''
+'phing -f "hello.xml" "firstTarget"'

C:\Users\Hyyan\Desktop\test\conveyor\src\Webcreate\Conveyor\Task\PhingTask.php:6
7
C:\Users\Hyyan\Desktop\test\conveyor\tests\Webcreate\Conveyor\Task\PhingTaskTest
.php:75

4) FileCollectionTest::testAdd
Failed asserting that an array contains 'vendor/autoload.php'.

C:\Users\Hyyan\Desktop\test\conveyor\tests\Webcreate\Conveyor\Util\FileCollectio
nTest.php:42

5) FileCollectionTest::testAddAll
Failed asserting that an array contains 'vendor/autoload.php'.

C:\Users\Hyyan\Desktop\test\conveyor\tests\Webcreate\Conveyor\Util\FileCollectio
nTest.php:55

6) FileCollectionTest::testAddArrayNotation
Failed asserting that an array contains 'vendor/autoload.php'.

C:\Users\Hyyan\Desktop\test\conveyor\tests\Webcreate\Conveyor\Util\FileCollectio
nTest.php:67

7) FileCollectionTest::testRemove
Failed asserting that an array contains 'vendor/webcreate/util/.travis.yml'.

C:\Users\Hyyan\Desktop\test\conveyor\tests\Webcreate\Conveyor\Util\FileCollectio
nTest.php:82

8) FileCollectionTest::testMatch
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
-    0 => 'conveyor.yml.dist'
-    1 => '.travis.yml'
+    0 => 'vendor\phpseclib\phpseclib\.scrutinizer.yml'
+    1 => 'vendor\phpseclib\phpseclib\.travis.yml'
+    2 => 'vendor\phpunit\php-code-cover...is.yml'
+    3 => 'vendor\phpunit\phpunit\.travis.yml'
+    4 => 'vendor\phpunit\phpunit-mock-o...is.yml'
+    5 => 'vendor\symfony\dependency-inj...g1.yml'
+    6 => 'vendor\symfony\dependency-inj...g2.yml'
+    7 => 'vendor\symfony\dependency-inj...g3.yml'
+    8 => 'vendor\symfony\dependency-inj...d1.yml'
+    9 => 'vendor\symfony\dependency-inj...d2.yml'
+    10 => 'vendor\symfony\dependency-inj...s1.yml'
+    11 => 'vendor\symfony\dependency-inj...10.yml'
+    12 => 'vendor\symfony\dependency-inj...11.yml'
+    13 => 'vendor\symfony\dependency-inj...13.yml'
+    14 => 'vendor\symfony\dependency-inj...s2.yml'
+    15 => 'vendor\symfony\dependency-inj...s3.yml'
+    16 => 'vendor\symfony\dependency-inj...s4.yml'
+    17 => 'vendor\symfony\dependency-inj...rt.yml'
+    18 => 'vendor\symfony\dependency-inj...s6.yml'
+    19 => 'vendor\symfony\dependency-inj...s7.yml'
+    20 => 'vendor\symfony\dependency-inj...s8.yml'
+    21 => 'vendor\symfony\dependency-inj...s9.yml'
+    22 => 'vendor\symfony\yaml\Symfony\C...hp.yml'
+    23 => 'vendor\symfony\yaml\Symfony\C...rs.yml'
+    24 => 'vendor\symfony\yaml\Symfony\C...ex.yml'
+    25 => 'vendor\symfony\yaml\Symfony\C...ts.yml'
+    26 => 'vendor\symfony\yaml\Symfony\C...ct.yml'
+    27 => 'vendor\symfony\yaml\Symfony\C...ey.yml'
+    28 => 'vendor\symfony\yaml\Symfony\C...ts.yml'
+    29 => 'vendor\symfony\yaml\Symfony\C...es.yml'
+    30 => 'vendor\symfony\yaml\Symfony\C...ts.yml'
+    31 => 'vendor\symfony\yaml\Symfony\C...ns.yml'
+    32 => 'vendor\symfony\yaml\Symfony\C...as.yml'
+    33 => 'vendor\symfony\yaml\Symfony\C...ts.yml'
+    34 => 'vendor\symfony\yaml\Symfony\C...ng.yml'
+    35 => 'vendor\symfony\yaml\Symfony\C...or.yml'
+    36 => 'vendor\symfony\yaml\Symfony\C...ts.yml'
+    37 => 'vendor\symfony\yaml\Symfony\C...ns.yml'
+    38 => 'vendor\symfony\yaml\Symfony\C...rs.yml'
+    39 => 'vendor\symfony\yaml\Symfony\C...es.yml'
+    40 => 'vendor\symfony\yaml\Symfony\C...es.yml'
+    41 => 'vendor\symfony\yaml\Symfony\C...rs.yml'
+    42 => 'vendor\webcreate\util\.travis.yml'
+    43 => 'vendor\webcreate\vcs\.travis.yml'
+    44 => 'conveyor.yml.dist'
+    45 => '.travis.yml'
 )

C:\Users\Hyyan\Desktop\test\conveyor\tests\Webcreate\Conveyor\Util\FileCollectio
nTest.php:119

9) FileCollectionTest::testHas with data set #2 ('vendor/', true)
Failed asserting that false matches expected true.

C:\Users\Hyyan\Desktop\test\conveyor\tests\Webcreate\Conveyor\Util\FileCollectio
nTest.php:132

10) FileCollectionTest::testHas with data set #3 ('vendor/autoload.php', true)
Failed asserting that false matches expected true.

C:\Users\Hyyan\Desktop\test\conveyor\tests\Webcreate\Conveyor\Util\FileCollectio
nTest.php:132

11) FileCollectionTest::testHas with data set #4 ('vendor/composer/', true)
Failed asserting that false matches expected true.

C:\Users\Hyyan\Desktop\test\conveyor\tests\Webcreate\Conveyor\Util\FileCollectio
nTest.php:132

12) FileCollectionTest::testHas with data set #5 ('vendor/composer/installed.jso
n', true)
Failed asserting that false matches expected true.

C:\Users\Hyyan\Desktop\test\conveyor\tests\Webcreate\Conveyor\Util\FileCollectio
nTest.php:132

13) FilePathTest::testJoin with data set #1 (array('test', 'work', 'blaat'), 'te
st/work/blaat')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'test/work/blaat'
+'test\work\blaat'

C:\Users\Hyyan\Desktop\test\conveyor\tests\Webcreate\Conveyor\Util\FilePathTest.
php:20

14) FilePathTest::testJoin with data set #2 (array('test', '', 'blaat'), 'test/b
laat')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'test/blaat'
+'test\blaat'

C:\Users\Hyyan\Desktop\test\conveyor\tests\Webcreate\Conveyor\Util\FilePathTest.
php:20

15) FilePathTest::testJoin with data set #4 (array('a/b/test', 'x', 'y/z'), 'a/b
/test/x/y/z')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'a/b/test/x/y/z'
+'a/b/test\x\y/z'

C:\Users\Hyyan\Desktop\test\conveyor\tests\Webcreate\Conveyor\Util\FilePathTest.
php:20

FAILURES!
Tests: 88, Assertions: 113, Failures: 15, Errors: 2, Incomplete: 11, Skipped: 1.

@fieg
Copy link
Member

fieg commented Sep 24, 2014

It's seems caused by the Symfony Process component. Perhaps it doesn't work on Windows. I thought upgrading the package might solve it, but doesn't.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants