{"id":5902,"date":"2014-04-08T02:06:09","date_gmt":"2014-04-08T02:06:09","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/08\/problem-about-appfog-collection-of-common-programming-errors\/"},"modified":"2014-04-08T02:06:09","modified_gmt":"2014-04-08T02:06:09","slug":"problem-about-appfog-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/08\/problem-about-appfog-collection-of-common-programming-errors\/","title":{"rendered":"problem about appfog-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d5b5043bc3a8d4700fde895353e8934a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1913779<br \/>\ncloudfoundry appfog<br \/>\nI&#8217;m having trouble installing caldecott on osx mountain lion. I keep getting this error:$ sudo gem install caldecott &#8211;no-rdoc &#8211;no-riERROR: Error installing caldecott:ERROR: Failed to build gem native extension.\/Users\/Jay\/.rvm\/rubies\/ruby-1.9.3-p327\/bin\/ruby extconf.rbchecking for main() in -lssl&#8230; * extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and\/or headers. Check the mkmf.log file for more details. You may need configuration optio<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/41a11808c536407917fb4e4b14ecec23?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1460015<br \/>\nwindows gem appfog<br \/>\nI&#8217;ve been following the instructions provided by Development Kit for the rubyinstaller https:\/\/github.com\/oneclick\/rubyinstaller\/wiki\/Development-KitWhen I try the last step I get the following error: ERROR: Failed to build gem native extensionHere is the log file. http:\/\/pastebin.com\/mLUCCVd3I have been following the troubleshoot section with no avail.Running windows7x64 This all started because I want to get the appfog tunnel workingAny help is appreciated<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5a17228099ba3e216495d8b027ef378e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ntonymx227<br \/>\nappfog<br \/>\nI get a problem when I try to bind MySQL service to my App (AppFog).Message : name: VmcError, endpoint: POST:\/services, statusCode: 502, code: 503, description: Unexpected response from service gatewayWhat is the issue?Anthony<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/4b2deccaf7a8360b0deecc15b16cc3fb?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nspryno724<br \/>\njava apache solr appfog<br \/>\nI am very new to Apache Solr and I am trying to deploy it on Appfog application running the Java runtime. I can deploy the start page: sga-search.aws.af.cm, but nothing else will work. Could someone please direct me as to how can I go about deploying this???Note: Appfog does not permit SSHing into the server.Thank you for your time!<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2055412edcff97781c95551cacb2fef9?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser2962455<br \/>\nruby-on-rails ruby rubygems gem appfog<br \/>\nI wrote an application in RoR, then i tried to deploy it on appfog. I created application, but after pushing i got this error:Uploading Application:Checking for available resources: OKProcessing resources: OKPacking application: OKUploading (2M): OK Push Status: OK Stopping Application &#8216;otj&#8217;: OKStaging Application &#8216;otj&#8217;: OK Starting Application &#8216;otj&#8217;: .. Error: Application [otj] failed to start, logs information below. ====&gt; \/logs\/migration.log &lt;====\/var\/vcap.local\/dea\/apps\/otj-0-93de4f27<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e22143626a521a48d0bd1f873905fba7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ncoool<br \/>\nappfog<br \/>\nIn Appfog how to install the latest version of Nodejs\/ and on the services provided, can Mongodb be upgraded to 2.4.x<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0ab0ae433d1b3f8bee9b7d13392bf333?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMarty Pitt<br \/>\njava spring appfog<br \/>\nIt seems that when deploying my Spring app to AppFog, that the environment variables are not being detected.I have the environment variables declared in my console:And I try to reference these from within my app code, like so:&lt;context:property-placeholder location=&#8221;classpath:server.common.properties,classpath:server.${concorde-env}.properties&#8221;\/&gt;However, this generates an error:Caused by: java.io.FileNotFoundException: class path resource[server.${concorde-env}.properties] cannot be opened<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/79e8d53c5c3d3a64ca37acb5c00018d3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nGus Shortz<br \/>\nruby sinatra route modular appfog<br \/>\nI have started writing my Sinatra apps using a modular style, suggested in this stackoverflow answer, and have successfully deployed it on Heroku, but when trying to deploy to AppFog (identical code except for datamapper mysql\/postgres gems) I get &#8220;Not Found&#8221; errors for every route I have defined.== Sinatra\/1.3.3 has taken the stage on 47195 for production with backup from Thin myIP, 127.0.0.1 &#8211; &#8211; [08\/Dec\/2012 21:28:53] &#8220;GET \/ HTTP\/1.0&#8221; 404 18 0.0030 myIP, 127.0.0.1 &#8211; &#8211; [08\/Dec\/2012 21:28:54] &#8220;G<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/bcdc41685bf1876b438c19e7c210eec9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nbeef jerky<br \/>\nruby-on-rails deployment appfog<br \/>\nI&#8217;m trying to deploy a Rails app (2.3.8) on AppFog using the commands:af login af update app_nameI&#8217;m using update because the app is already existing on AppFog. However, I keep getting this error:Error (JSON 503): &lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;u&#8230;It happens after uploading the files. Running af update usually gives me that error. In fact, I&#8217;ve only ran that command successfully once in around a hundred times. I&#8217;ve tried deploying on different times around the clock, but no success. I&#8217;ve also<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/859650c5981157b61aa6494fa8d739d1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1076412<br \/>\ngrails appfog<br \/>\nI am getting some errors in my Grails in in AppFog, but I am not sure how to get to the bottom if it.C:\\Users\\me&gt;af logs myapp [WARNING] DL is deprecated, please use Fiddle Error (JSON 404): Not FoundC:\\Users\\me&gt;af crashes myapp [WARNING] DL is deprecated, please use Fiddle Error (JSON 404): Not FoundI read this could help, but I am not sure where to put it?app.debug = TrueAny ideas how I can troubleshoot please?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/plFnB.jpg?s=32&amp;g=1\" \/><br \/>\nJose Sosa<br \/>\nmysql node.js backbone.js cloud-hosting appfog<br \/>\nI have an app hosted in appfog using node-express and mysql( and backbone js in the client side), it works fine in localhost but when deploy the app works fine for a moment and after a time crash( if i restart in the console of appfog admin the same thing happens) this is part of code for connection mysqlvar mysql = require(&#8220;mysql&#8221;)var env = JSON.parse(process.env.VCAP_SERVICES); var creds = env[&#8216;mysql-5.1&#8217;][0][&#8216;credentials&#8217;]; console.log(creds)var client = mysql.createConnection({host: creds.h<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8d87c9f36ccc4c8141afaf592229cc9c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDjango Bot<br \/>\nappfog<br \/>\nI used isotope for my thumbnail images. Everything works fine in my development server.After I have updated my files in appfog using &#8220;af update&#8221;. The above page spits out this error in inspect element.Failed to load resource: the server responded with a status of 404 (NOT FOUND) http:\/\/neudev.hp.af.cm\/static\/plugin\/css\/isotope.css Failed to load resource: the server responded with a status of 404 (NOT FOUND) http:\/\/neudev.hp.af.cm\/static\/plugin\/js\/isotope.init.js Failed to load resource: the ser<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/071edb8518ffa0e97a5dffc6e9a8bc90?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAndrew Liu<br \/>\nnode.js socket.io appfog<br \/>\nThe errorWhen the user opens http:\/\/sync.aws.af.cm\/, the Google Chrome JavaScript Console shows (within a few seconds):Unexpected response code: 502 errorThe app should remember the contents of the text area even after the user refreshes the page. The app works locally, but not when I upload it to AppFog, and I suspect the problem is the 502 error.Do you know what might cause this error in this case?What I&#8217;ve triedI tried changing the script src=&lt;path_to_socket_io&gt; path in my client from \/<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d2f188a0d7d7de073f1d33d7d376fa42?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nurban<br \/>\njavascript node.js object appfog<br \/>\nI have the following code in my server.js:throw new Error(&#8216;The databasenumber was wrong, or you didn\\&#8217;t bind one.&#8217; + process.env.VCAP_SERVICES + &#8221; === &#8221; + process.env.VCAP_SERVICES[&#8220;mysql-5.1&#8221;]);The output at this moment is:node.js:201throw e; \/\/ process.nextTick error, or &#8216;error&#8217; event on first tick^ Error: The databasenumber was wrong, or you didn&#8217;t bind one.{&#8220;mysql-5.1&#8221;:[{&#8220;name&#8221;:&#8221;squarific-data&#8221;,&#8221;label&#8221;:&#8221;mysql-5.1&#8243;,&#8221;plan&#8221;:&#8221;free&#8221;,&#8221;tags&#8221;:[&#8220;mysql&#8221;,&#8221;mysql-5.1&#8243;,&#8221;relational&#8221;,&#8221;mysql-5.1&#8243;,&#8221;mysql&#8221;],&#8221;c<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0e4a951544d6695fb705fe0a7b862c60?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSusanoh13<br \/>\nruby-on-rails mongodb mongomapper appfog<br \/>\nI have a rails app on AppFog, connected to a mongo database. It is a very simple database, where I used the mongo_mapper gem to create MVC stuff, and then didn&#8217;t modify it.rails g scaffold Contacts name:string address:string email:string phone:string -orm mongo_mapperREALLY basic! Just trying to test out mongo as a database.I followed the instructions for talking with the database here.However, every time I try to access the \/contacts path, I get a &#8220;500 Internal Server Error&#8221; message.The AppFog<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8d4cce3f88a836cc8882b65bc2480d5a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPeter Huang<br \/>\njava playframework-2.0 cloudfoundry multipartform-data appfog<br \/>\nI deployed my play framework 2.1 application on appfog(same issue also exists on cloudfoundry since they are essentially the same). My application allow file upload, but I have encountered an error getting the file. It works fine when I run locally with play run.My code is as follows:MultipartFormData body = request().body().asMultipartFormData(); FilePart midi = body.getFile(&#8220;midi&#8221;); File file = midi.getFile();The error message in log is:play.api.Application$$anon$1: Execution exception[[IOExce<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8f3ca02784c146a55a74c450f473debc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTim Santeford<br \/>\njavascript node.js express appfog<br \/>\nI created an app in NodeJS using ExpressJS, I hosted my app on AppFog and it works, however, I made a few update on my local version, now I&#8217;d like to update my App on AppFog but I got a problem, because I updated my models in local and now, I can&#8217;t update my AppFog database&#8230;What am I suppose to do? Delete the App and Update again? I&#8217;ll lost all my data in my database&#8230;Logs:Error: ER_BAD_FIELD_ERROR: Unknown column &#8216;tags&#8217; in &#8216;field list&#8217;<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>user1913779 cloudfoundry appfog I&#8217;m having trouble installing caldecott on osx mountain lion. I keep getting this error:$ sudo gem install caldecott &#8211;no-rdoc &#8211;no-riERROR: Error installing caldecott:ERROR: Failed to build gem native extension.\/Users\/Jay\/.rvm\/rubies\/ruby-1.9.3-p327\/bin\/ruby extconf.rbchecking for main() in -lssl&#8230; * extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and\/or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5902","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5902"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5902\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}