Relocate app bug

8 views
Skip to first unread message

xybrek

unread,
Apr 1, 2018, 11:01:22 AM4/1/18
to AppScale Community
I think there's a bug in Appscale.

1. We uploaded app via SSH, and run `appscale deploy app.tar.gz`
2. Once deployment is complete, we run 'appscale relocate gaeapp 80 443`

Accessing our app in port 443 is okay but does not work on port 80, here are the console logs:

root@appscale-image0:~# appscale relocate gaeapp 80 443
Successfully issued request to move gaeapp to ports 80 and 443.
Your app serves unencrypted traffic at: http://{PUBLIC_IP}:80
Your app serves encrypted traffic at: https://{PUBLIC_IP}:443
root@appscale-image0:~# appscale relocate gaeapp 8080 443
false: {"error": {"message": "Requested httpsPort is already taken", "code": 400}}

A log with more information is available at
/root/.appscale/log-0ea7e886-123a-44fb-97d2-b77a92f29887.

---

I wonder why we cannot access port 80 however works on 443, also we tried to revert it back to port 8080 and it does not work, there's no other app in the Appscale deployment.

xybrek

unread,
Apr 1, 2018, 11:03:51 AM4/1/18
to AppScale Community
also,

root@appscale-image0:~# lsof -i:8080
root@appscale-image0:~# 

So what is the meaning that port 8080 is used as what Appscale is reporting? Anyway we need to run on port 80, not 8080 (we just did that to test) 
How can our application be accessible on port 80

Chris Donati

unread,
Apr 2, 2018, 12:16:58 PM4/2/18
to appscale_...@googlegroups.com
The error message is reporting that the httpsPort is already taken (443). We have an inconvenient bug in relocate right now that requires both ports to be different when relocating. For example, if your app is on 80/443 and you want 8080/443, you'd need to do something like `appscale relocate 8081 4381` and then `appscale relocate 8080 443`.

To investigate why your app is not accessible on port 80 right now, I would first check /etc/nginx/sites-enabled/appscale-<your_app_id>_default_v1.conf to see if there is an entry for port 80. What error do you get when you try to access port 80? Is it a connection refused or do you get an http error code?

--
You received this message because you are subscribed to the Google Groups "AppScale Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsub...@googlegroups.com.
To post to this group, send email to appscale_community@googlegroups.com.
Visit this group at https://groups.google.com/group/appscale_community.
For more options, visit https://groups.google.com/d/optout.

xybrek

unread,
Apr 2, 2018, 1:03:35 PM4/2/18
to AppScale Community
Yes, the conf has the listen 80;

###########################################################
server {
    listen      80;
    server_name 123.456.789.000-gaeapp_default_v1;
###########################################################
To post to this group, send email to appscale_...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages