Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encountered same error as issue #124 #137

Open
ozzozz opened this issue Aug 25, 2015 · 1 comment
Open

encountered same error as issue #124 #137

ozzozz opened this issue Aug 25, 2015 · 1 comment

Comments

@ozzozz
Copy link
Contributor

ozzozz commented Aug 25, 2015

$ cf push php -b https://github.com/cloudfoundry/php-buildpack
Creating app php in org DevBox / space default as admin...
OK

Creating route php.192.168.14.122.xip.io...
OK

Binding php.192.168.14.122.xip.io to php...
OK

Uploading php...
Uploading app files from: /home/ken/apps/phpinfo
Uploading 152, 1 files
Done uploading               
OK

Starting app php in org DevBox / space default as admin...
FAILED
Server error, status code: 400, error code: 170001, message: Staging error: fail
ed to stage application:
Failed setting memory limit: Permission denied @ rb_sysopen - /tmp/warden/cgroup
/memory/instance-18u3786vbj0/memory.memsw.limit_in_bytes

$ cf logs php --recent
Connected, dumping recent logs for app php in org DevBox / space default as admi
n...

2015-08-25T11:51:30.60+0900 [API/0]      OUT Created app with guid b223abab-3504
-4218-9c42-90b2e62c1b51
2015-08-25T11:51:31.38+0900 [API/0]      OUT Updated app with guid b223abab-3504
-4218-9c42-90b2e62c1b51 ({"route"=>"f84b2038-c43b-4364-98b8-81b0aedf35b5"})
2015-08-25T11:51:37.26+0900 [DEA/0]      OUT Got staging request for app with id
 b223abab-3504-4218-9c42-90b2e62c1b51
2015-08-25T11:51:45.81+0900 [API/0]      ERR exception handling first response S
taging error: failed to stage application:
2015-08-25T11:51:45.81+0900 [API/0]      ERR Failed setting memory limit: Permis
sion denied @ rb_sysopen - /tmp/warden/cgroup/memory/instance-18u3786vbj0/memory
.memsw.limit_in_bytes
2015-08-25T11:51:45.82+0900 [API/0]      ERR encountered error: Staging error: f
ailed to stage application: staging had already been marked as failed, this coul
d mean that staging took too long

I could fix it by the same hack as #124 (comment)

my environment is Ubuntu 14.04.1 server

$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
$ uname -a
Linux kinoko 3.13.0-62-generic #102-Ubuntu SMP Tue Aug 11 14:29:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

and, I use the most recent cf_nise_installer.

$ git log -1
commit a6f0673ceee33d00ffb938f16191017637758db1
Author: Iwasaki Yudai <[email protected]>
Date:   Mon Aug 24 14:21:50 2015 -0700

    Bump cf-release to v215
@yudai
Copy link
Owner

yudai commented Aug 25, 2015

Hi, thanks for the feed back.

Unfortunately, I cannot reproduce the issue you are experiencing.
I tried this example and succeeded to start the php-info app.

Please make sure you updated the submodule of cf-release in your repository directory when you deployed your devbox.

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

No branches or pull requests

2 participants