#appscale

/

      • z3r0
        obino, meniv, cdonati: One of you I believe helped me resolve 502 Bad Gateway from nginx when the log says connection refused from upstream on port 10000. I believe the resolution was a configuration somewhere, do you remember what it was? I should have written it down right away.
      • [error] 11811#0: *6870 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.20.16, server: 10.0.50.26-simian-ssl, request: "GET /favicon.ico HTTP/1.1", upstream: "http://10.0.50.26:10000/favicon.ico", host: "10.0.50.26:4380", referrer: "https://10.0.50.26:4380/"
      • is the error
      • I wish I had set irc to log to file
      • cdonati
        z3r0: It's possible that the AppManager did not properly deploy the app and the HAProxy configuration entry did not get set.
      • z3r0
        I had my app working but I wanted my procedure to be documented and reproducible so I wiped and started over and now I can't get it to redeploy, LOL
      • How do I check for that?
      • cdonati
        To check if the haproxy entry is there, you can do an 'ls /etc/haproxy/sites-enabled'
      • If it's set up properly, there should be a file for your app.
      • z3r0
        nope
      • there is nothing there except appscaledashboard.cfg and as_datastore_server.cfg
      • cdonati
        Oh, there was an issue awhile back where a bug caused app.yaml files with login: required on all urls to not deploy properly.
      • z3r0
        I remembered that issue
      • and I commented out the app.yaml entries with login:required
      • cdonati
        Anyway, another thing you could check is the appmanager log file. It's at /var/log/appmanagerserver-49934.log
      • z3r0: BTW, that login: required issue has been fixed in master.
      • z3r0
        oh, good
      • ohh
      • Is it ok for me to update an app on AppScale by just running appscale deploy <appname> with the existing app still running?
      • cdonati
        z3r0: Yeah, that's fine to do.
      • z3r0
        because I think I might have deployed it the first time without that commented out, then added the comment later and redeployed. Perhaps that messed up the deployment
      • cdonati
        That could do it.
      • Unfortunately, the tools don't currently have a good way to check if the app redeployed properly.
      • That's something we hope to fix soon.
      • If you comment those out and then redeploy again, does it work?
      • meniv
        cdonati: z3r0: I believe you need to undeploy the app first
      • z3r0
        I am updating to the most recent master at the moment, but that is my next step.
      • meniv
        I believe that the redeploy is a different code path
      • z3r0
        it probably skips the part that makes the HAProxy configuration because it assumes it already exists
      • meniv
        z3r0: that’s right
      • z3r0
        well let's see if the new master fixes this
      • then I won't have to worry about that again
      • Where is the setting that allows administration with appscale-tools from another machine?
      • meniv
        z3r0: the appscale tools are currently tied to a specific VM
      • we are planning about making this process a little bit more centralized and intuitive
      • but for now there’s a hack you can do
      • if you want to able to use the tools from other places than the orginal one
      • you have to copy the AppScalefile and the AppScale key from ~/.appscale/ to wherever you want to run the tools from
      • z3r0
        I had it working but it broke after I updated. Does rerunning the installer generate new AppScale key?
      • meniv
        z3r0: yes
      • z3r0
        Ahh that's the problem
      • meniv
        well it depends
      • are you using a virtualized cluster?
      • or cloud mode?
      • z3r0
        virtualized cluster
      • appscale status
      • Could not authenticate successfully to the AppController. You may need to change the keyname in use.
      • meniv
        yeah
      • you need to overwrite the AppScalefile with the current one
      • because it includes the new key
      • and also copy the key files to the second location
      • you can find the name of the key at the bottom of your current AppScalefile
      • z3r0
        my old AppScaleFile works on localhost though
      • meniv
        z3r0: where are you getting the error? on your host or in the AppScale VM?
      • z3r0
        remote host
      • maybe the old one isn't working, that was a symlink
      • yeah I copied the new AppScaleFile
      • No dice. Do I also need to copy the AppScale Key?
      • appscale ssh works fine from the remote host
      • so i don't think it's the key
      • meniv
        z3r0: look in ~/.appscale and copy all files that have the keyname in their name
      • z3r0
        I think I remember having to add an allowed list of remote IPs for remote administration at some point but I could be wrong. OK I will try that
      • meniv
        alright, let us know how it goes
      • z3r0
        woo that worked
      • documenting these steps because I don't have to do this often and I will forget!
      • Alright, I'm golden! App working with auth now
      • Thanks guys. Internet beers to you
      • z3r0 has quit
      • shaunj has quit
      • meniv
        w00h00 perfect end to a Monday :P
      • appscalelovesyou joined the channel
      • NOTICE: [appscale] cdonati closed pull request #1852: Monit file check every 2 cycles. (master...monit-filecheck) https://github.com/AppScale/appscale/pull/1852
      • appscalelovesyou has left the channel
      • Neo-- has quit
      • meniv has quit
      • meniv joined the channel
      • shaunj joined the channel
      • shaunj has quit
      • shaunj joined the channel
      • shaunj has quit
      • shaunj joined the channel
      • shaunj has quit
      • Casey has quit
      • Casey joined the channel
      • blade joined the channel
      • obino has quit
      • blade
        HI
      • Hi, anybody here?
      • meniv
        Hi blade
      • what’s up?
      • blade
        Doed appscale support X-AppEngine-Cron?
      • meniv
        are we talking about python or java?
      • blade
        java
      • meniv
        blade: I believe it should work
      • blade: did you have trouble getting the header?
      • blade
        {"httpResult":{"time":"2015-12-01 05:20:30","desc":"unauthorized","code":401}}
      • public boolean AuthorizeCron() { String cronString = this.Request().getHeader( "X-AppEngine-Cron" ); if( null == cronString || false == cronString.equals( "true" ) ) { return false; } return true; }
      • This is our code to check the header
      • meniv
        blade: hmm, the code looks fine
      • I can probably run a test in the morning and let you know if you stick around in this channel
      • it’s the middle of the night here now
      • does that work for you?
      • blade
        Fine, thanks!
      • meniv
        blade: sure thing :)
      • blade has quit
      • shaunj joined the channel
      • shaunj has quit
      • Casey has quit
      • Casey joined the channel
      • meniv has quit
      • [d__d] joined the channel
      • -- BotBot disconnected, possible missing messages --
      • [d__d] joined the channel
      • -- BotBot disconnected, possible missing messages --
      • [d__d] joined the channel
      • NOTICE: [freenode-info] channel flooding and no channel staff around to help? Please check with freenode support: http://freenode.net/faq.shtml#gettinghelp
      • [d__d] has quit
      • -- BotBot disconnected, possible missing messages --
      • [d__d] joined the channel
      • h-rock has quit
      • shaunj has quit
      • shaunj joined the channel
      • h-rock joined the channel
      • h-rock
        hey guys
      • greetings from amtrak
      • shaunj has quit
      • shaunj joined the channel
      • meniv
        h-rock: fun times!
      • h-rock
        yea, hte party is ON
      • on my way to a meetup in NYC
      • meniv
        h-rock: love NYC
      • h-rock
        oh yea?
      • you visit frequently?
      • meniv
        h-rock: not frequently man; there’s so much more to see!
      • h-rock
        hahahha
      • yea, his is true
      • i need to make it to Greece when it calms down over there
      • meniv
        h-rock: lol, it’s fine for tourism ;) greeks are far from calm at any given moment
      • shaunj has quit
      • h-rock
        how was your trip there when you visited last?
      • meniv
        h-rock: cdonati knows
      • h-rock
        ah ok
      • meniv
        h-rock: it was nice :)
      • h-rock
        did cdonati party over there with you?
      • cdonati
        I wish
      • h-rock
        HAHAHHA
      • meniv
        h-rock: he has the pleasure of working beside me every day
      • h-rock
        is that pleasure or pain?