Uploading application error

2,418 views
Skip to first unread message

Ricardo García Vega

unread,
Oct 25, 2012, 5:11:17 AM10/25/12
to appfog...@googlegroups.com
Hi!
I'm trying to deploy my first rails application, and in the console I see this error while doing it:



Uploading Application:
 
Checking for available resources: Error (JSON 503): <?xml version="1.0" encoding="u...


What am I doing wrong?

Thanks in advance!

Hisyam

unread,
Oct 25, 2012, 5:15:18 AM10/25/12
to appfog...@googlegroups.com
I've got the same error too. This error usually appears when upload fails so you need to try again. 

If the size of your app is too big (eg: you have lots of pics), make sure to trim it.

Ricardo García Vega

unread,
Oct 25, 2012, 5:18:57 AM10/25/12
to appfog...@googlegroups.com
Thanks Hisyam, I'm going to try again :)

Ricardo García Vega

unread,
Oct 25, 2012, 5:50:15 AM10/25/12
to appfog...@googlegroups.com
Now it seems to work, but I'm getting another error instead:

Error 310: Staging failed: 'Staging task failed:
 Staging plugin failed: ERROR:  Error installing /tmp/d20121025-5635-37zlxd/FBDistributedNotification-0.0.1.gem:
ERROR: Failed to build gem native extension.

        /opt/cloudfoundry/runtimes/ruby-1.9.3-p125/bin/ruby extconf.rb
creating Makefile

make
compiling FBNotification.c
cc1: error: argument to ‘-O’ should be a non-negative integer
make: *** [FBNotification.o] Error 1


Gem files will remain installed in /tmp/d20121025-5635-37zlxd/gem_install_dir/gems/FBDistributedNotification-0.0.1 for inspection.
Results logged to /tmp/d20121025-5635-37zlxd/gem_install_dir/gems/FBDistributedNotification-0.0.1/ext/gem_make.out
/opt/cloudfoundry/vcap/staging/lib/vcap/staging/plugin/gemfile_task.rb:141:in `install_gem_from_path': Failed installing FBDistributedNotification-0.0.1.gem (RuntimeError)
from /opt/cloudfoundry/vcap/staging/lib/vcap/staging/plugin/gemfile_task.rb:101:in `install_gem'
from /opt/cloudfoundry/vcap/staging/lib/vcap/staging/plugin/gemfile_task.rb:71:in `block in install_specs'
from /opt/cloudfoundry/vcap/staging/lib/vcap/staging/plugin/gemfile_task.rb:70:in `each'
from /opt/cloudfoundry/vcap/staging/lib/vcap/staging/plugin/gemfile_task.rb:70:in `install_specs'
from /opt/cloudfoundry/vcap/staging/lib/vcap/staging/plugin/gemfile_task.rb:54:in `install'
from /opt/cloudfoundry/vcap/staging/lib/vcap/staging/plugin/gemfile_support.rb:39:in `compile_gems'
from /opt/cloudfoundry/vcap/staging/lib/vcap/staging/plugin/rails3/plugin.rb:65:in `block in stage_application'
from /opt/cloudfoundry/vcap/staging/lib/vcap/staging/plugin/rails3/plugin.rb:61:in `chdir'
from /opt/cloudfoundry/vcap/staging/lib/vcap/staging/plugin/rails3/plugin.rb:61:in `stage_application'
from /opt/cloudfoundry/vcap/stager/bin/run_plugin:19:in `<main>'



On Thursday, 25 October 2012 11:15:18 UTC+2, Hisyam wrote:

Hisyam

unread,
Oct 25, 2012, 5:54:28 AM10/25/12
to appfog...@googlegroups.com
If you want to use Ruby 1.9.3 you should use this command for pushing:
af push --runtime ruby193

Otherwise some gems won't work.

Ricardo García Vega

unread,
Oct 25, 2012, 6:14:49 AM10/25/12
to appfog...@googlegroups.com
Yes, that's the command I'm using, and the same error is happening :(

Lucas Carlson

unread,
Oct 25, 2012, 9:48:30 AM10/25/12
to appfog...@googlegroups.com
Hi Ricardo, 


Which uses 

#import <Foundation/Foundation.h>

This requires Mac OS X libraries, and AppFog runs on Ubuntu, not OS X. Is there any way you could replace that gem in your production environment with another functionality?

Lucas Carlson
Founder and CEO - appfog.com
LinkedIn Twitter Quora

--
You received this message because you are subscribed to the Google Groups "AppFog Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/appfog-users/-/8fMzwuRlFM4J.
To post to this group, send email to appfog...@googlegroups.com.
To unsubscribe from this group, send email to appfog-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/appfog-users?hl=en.

Ricardo García Vega

unread,
Oct 25, 2012, 10:36:37 AM10/25/12
to appfog...@googlegroups.com
Hi Lucas! Thanks for your response!

I was using a gem which had dependencies on that one.
I have removed it from my GemFile, and what I'm now getting is a 

 "Error 300: Invalid application description"

Any ideas of what can be wrong?
Sorry for the inconveniences!

Lucas Carlson

unread,
Oct 25, 2012, 10:46:15 AM10/25/12
to appfog...@googlegroups.com
Hi,

Try pushing to a new app name. 

- Lucas
To view this discussion on the web visit https://groups.google.com/d/msg/appfog-users/-/nsttcuJwvE4J.

Ricardo García Vega

unread,
Oct 25, 2012, 11:02:52 AM10/25/12
to appfog...@googlegroups.com
I`ve tried with different names but I get always the same error.
I've also tried with a different infrastructure and same happens...
any more clues?

chad

unread,
Oct 25, 2012, 11:10:29 AM10/25/12
to appfog...@googlegroups.com
Hi Ricardo,

I'd like to have one of our engineers take a deeper look at the issue you're seeing. Could you please submit an issue with your account and applications details here: support.appfog.com

We'll get right on it and my apologies for the inconvenience.

--
Chad Keck
Director, Customer Experience
AppFog

JP

unread,
Oct 25, 2012, 11:48:13 AM10/25/12
to appfog...@googlegroups.com
I am also experiencing this right now, large upload (23M):

Uploading Application:
  Checking for available resources: OK
  Processing resources: OK
  Packing application: OK
  Uploading (23M): OK  
Error (JSON 504): <html>
<head><title>504 Gatewa...

JP

unread,
Oct 25, 2012, 12:24:48 PM10/25/12
to appfog...@googlegroups.com
Scratch that, working now

Edgard Zavarezzi

unread,
Nov 12, 2012, 5:21:39 PM11/12/12
to appfog...@googlegroups.com
Also experiencing this right now...


Uploading Application:
  Checking for available resources: OK
  Processing resources: OK
  Packing application: OK
  Uploading (608K): OK   
Error (JSON 504): <html>
<head><title>504 Gatewa...

Just created an account and nothing is working... WHERE CAN I CREATE A PHPFOG ACCOUNT ?! 

chad

unread,
Nov 13, 2012, 12:54:18 AM11/13/12
to appfog...@googlegroups.com
If you were creating or working with an application in the EU region these issues should now be resolved. Please try restarting your apps again or doing another push/update.

If you still notice any on-going problems please send us the full account and application details here: http://support.appfog.com

--
Chad Keck
Director, Customer Experience
AppFog

David Santos

unread,
Nov 21, 2012, 9:23:01 PM11/21/12
to appfog...@googlegroups.com
Same problem here...


$ af update aleth
Uploading Application:
  Checking for available resources: OK
  Processing resources: OK
  Packing application: OK
  Uploading (966K): OK    
Error (JSON 504): <html>
<head><title>504 Gatewa...


@ aws us xxx.aws.af.cm

chad

unread,
Nov 21, 2012, 9:38:47 PM11/21/12
to appfog...@googlegroups.com
David,

Please submit a ticket for our team to review...we'll need your account and application details.


We tend to see 504 errors when an update is timing out. Is this a really large app or something with a very large number of files?

--
Chad

Joey Dee

unread,
Nov 29, 2012, 6:41:17 AM11/29/12
to appfog...@googlegroups.com
Hi guys,

I'm having the same issue...

$ af update myapp
Uploading Application:

 
Checking for available resources: OK
 
Processing resources: OK
 
Packing application:
OK
 
Uploading (165K): OK  
Error (JSON 504): <html>
<head><title>504 Gatewa...


It is a largish app, a ~160MB learn management system with loads of php files. Should I send you a ticket to support?

Thanks,
J

Joey

unread,
Nov 29, 2012, 6:53:42 AM11/29/12
to appfog...@googlegroups.com
PS: I have restarted the app from the control panel and it seems it has uplodaded the files cos I can access to the LMS installation... but now af is reporting this...

$ af update myapp
Uploading Application:
 
Checking for available resources: OK
 
Processing resources: OK
 
Packing application: OK
 
Uploading (165K): OK  
Error (JSON 503): <?xml version="1.0" encoding="u...


Any ideas? I'm going to double-check the config

Adam Liebel

unread,
Nov 29, 2012, 9:54:23 AM11/29/12
to appfog...@googlegroups.com
Hi Joey,

Please do send us a note via support.appfog.com and we will take a look with you. These errors typically are seen with timeouts on uploading content and don't typically persist. If you have a larger application (size or # files) you may want to try and upload in smaller chunks to begin with and once it's up in full then you shouldn't have too much trouble with doing 'af updates' etc.

Please send us your account/app information, the error, and any other pertinent details and we will be glad to take a look with you.

Thank you,

Adam
AppFog Support
> --
> You received this message because you are subscribed to the Google Groups "AppFog Users" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/appfog-users/-/2Z9zAyYRSdoJ.

Joey Dee

unread,
Dec 2, 2012, 1:30:28 PM12/2/12
to appfog...@googlegroups.com
Hi Adam, actually I just learnt about your free-plan limits (100Mb per app) and I'm pretty sure that was the problem.. because the LMS I was trying to install is about 160Mb. Anyways, I ended up deleting it and now I'm trying to test a WordPress install...

Prav

unread,
Dec 6, 2012, 12:18:49 PM12/6/12
to appfog...@googlegroups.com
It could be a Windows/Linux issue. I have the exact same code that I ran from a Linux system and it uploaded correctly. When I later downloaded the code on a Windows system, made a minor css edit (Total size of the app < 1mb) and tried pushing it, I got the same error. Then I went to the Linux system, made the same change, and it updated successfully.
Reply all
Reply to author
Forward
0 new messages