[Solved]502 bad gateway nginx. uwsgi, flask

Ok so I developed a web app in python and it worked with the internal server:
if __name__ == '__main__':
app.app.run(debug = True)
with no issue at all. I am now trying to start up a nginx server with uwsgi running on arch linux, here are the config files:
the config.py for my app:
CSRF_ENABLED = True
SECRET_KEY = "you'll-never-know"
PROPAGATE_EXCEPTIONS = True
import os
basedir = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
/etc/nginx/nginx.conf:
user http;
worker_processes 2;
events {
#worker_connections 1024;
worker_connections 2048;
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 70;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/javascript text/xml application/xml application/rss+xml application/atom+xml application/rdf+xml;
gzip_vary on;
gzip_comp_level 6;
include /etc/nginx/sites-enabled/*;
/etc/nginx/sites-enabled/test.conf
upstream test-server {
server unix:/run/uwsgi/test.sock;
#server 127.0.0.1:3031
server {
listen 80;
server_name "";
return 444;
server {
server_name 192.xxx.x.xxx;
listen 80;
root /srv/http/test-dir/src/app;
location /static {
alias /srv/http/test-dir/src/app/static;
location / {
include /etc/nginx/uwsgi_params;
uwsgi_pass test-server;
# rewrite ^ https://$server_name$request_uri? permanent;
/etc/uwsgi/emperor.ini
[uwsgi]
emperor = /etc/uwsgi/vassals
#master = true
#plugins = python2
uid = http
gid = http
/etc/uwsgi/vassals
[uwsgi]
chdir = /srv/http/test-dir/src
wsgi-file = run.py
callable = app
processes = 4
threads = 2
offload-threads = 2
stats = 127.0.0.1:9191
max-requests = 5000
enable-threads = true
#master = true
vacuum = true
#socket = 127.0.0.1:3031
socket = /run/uwsgi/test.sock
chmod-socket = 664
harakiri = 60
logto = /var/log/uwsgi/test.log
/var/log/uwsgi/test.log
*** Starting uWSGI 2.0.9 (64bit) on [Wed Mar 25 17:17:53 2015] ***
compiled with version: 4.9.2 20150204 (prerelease) on 28 February 2015 13:34:10
os: Linux-3.19.2-1-ARCH #1 SMP PREEMPT Wed Mar 18 16:21:02 CET 2015
nodename: MyServer
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 2
current working directory: /etc/uwsgi/vassals
detected binary path: /usr/bin/uwsgi
chdir() to /srv/http/test-dir/src
your processes number limit is 13370
your memory page size is 4096 bytes
*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /run/uwsgi/test.sock fd 3
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 415360 bytes (405 KB) for 8 cores
*** Operational MODE: preforking+threaded ***
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 1349)
spawned uWSGI worker 1 (pid: 1350, cores: 2)
spawned uWSGI worker 2 (pid: 1351, cores: 2)
spawned 2 offload threads for uWSGI worker 1
spawned uWSGI worker 3 (pid: 1355, cores: 2)
spawned uWSGI worker 4 (pid: 1356, cores: 2)
*** Stats server enabled on 127.0.0.1:9191 fd: 16 ***
spawned 2 offload threads for uWSGI worker 3
spawned 2 offload threads for uWSGI worker 4
spawned 2 offload threads for uWSGI worker 2
-- unavailable modifier requested: 0 --
announcing my loyalty to the Emperor...
-- unavailable modifier requested: 0 --
announcing my loyalty to the Emperor...
As stated I am generating a 502 error when I connect to the servers internal address, this is coming out of the nginx error log:
2015/03/25 17:21:07 [error] 1340#0: *3 upstream prematurely closed connection while reading response header from upstream, client: [me], server: 192.xxx.x.xxx, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:/run/uwsgi/test.sock:", host: "192.xxx.x.xxx"
http owns the socket so: ls -ld /run/uwsgi/test.sock
srw-rw-r-- 1 http http 0 Mar 25 17:17 /run/uwsgi/test.sock
I think I have everything on the uwsgi side installed: sudo pacman -Ss uwsgi
community/mod_proxy_uwsgi 2.0.9-3
Apache uWSGI proxy module
community/uwsgi 2.0.9-3 [installed]
A fast, self-healing and developer/sysadmin-friendly application container server coded in pure C
community/uwsgi-plugin-cgi 2.0.9-3
CGI plugin
community/uwsgi-plugin-jvm 2.0.9-3
Plugin for Jvm support
community/uwsgi-plugin-lua51 2.0.9-3
Plugin for Lua support
community/uwsgi-plugin-mono 2.0.9-3
Plugin for mono support
community/uwsgi-plugin-php 2.0.9-3
Plugin for PHP support
community/uwsgi-plugin-psgi 2.0.9-3
Perl psgi plugin
community/uwsgi-plugin-pypy 2.0.9-3
Plugin for PyPy support
community/uwsgi-plugin-python 2.0.9-3
Plugin for Python support
community/uwsgi-plugin-python2 2.0.9-3 [installed]
Plugin for Python2 support
community/uwsgi-plugin-rack 2.0.9-3
Ruby rack plugin
community/uwsgi-plugin-webdav 2.0.9-3
Plugin for webdav support
I had
plugins = python2
enabled [yes this is python2.7] in the main emperor.ini but it didn't do anything, either it is not needed or in the wrong spot. I have read a couple of other things here and at each packages site, not quite sure what I am missing though, but it is something. Thanks.
Last edited by Never (2015-04-01 02:16:33)

Two things I think helped to solve this
PROPAGATE_EXCEPTIONS = True
in config.py and I removed threading from my vassal ini file the ending uwsgi files looked like this:
/etc/uwsgi/emperor.ini:
[uwsgi]
emperor = /etc/uwsgi/vassals
master = true
plugins = python2
uid = http
gid = http
[/etc/uwsgi/vassals/test.ini:
[uwsgi]
chdir = /srv/http/test_dir/src
wsgi-file = run.py
callable = app
processes = 4
stats = 127.0.0.1:9191
max-requests = 5000
enable-threads = true
vacuum = true
thunder-lock = true
socket = /run/uwsgi/test-sock.sock
chmod-socket = 664
harakiri = 60
logto = /var/log/uwsgi/test.log
Not sure on the
PROPAGATE_EXCEPTIONS = True
but removing the threads option in test.ini and making sure there was a master option in emperor.ini seemed to have solved the issue of sql being tossed around to different treads, or at least it complaining about it and crashing the site out, either or.
Also don't use the uwsgi from this distribution, get it from pip, the distros are broken.

Similar Messages

  • After installing the update I get this message on an app from facebook "502 Bad Gateway nginx" what is the issue and what do I need to do to solve the issue?

    after installing the update I get this message on an app from facebook "502 Bad Gateway
    nginx" what is the issue and what do I need to do to solve the issue?

    Hi there, harleygirl.
    A look around the internet and my previous knowledge indicates this is not an issue with firefox, but with how the server that the app is run on is incorrectly configured. To test this, please install an old version of firefox. You can download an older version from http://www.mozilla.org/en-US/firefox/all-older.html then try to visit the website again. Please let us know if it turns out that it works with version 3.6

  • [SOLVED] nginx, php-cgi, rewrite url, 502 bad gateway.

    Hello everyone.
    I just set my nginx server, with php-cgi, as it is in the wiki site and it is working perfectly. I have just one problem. I am trying to rewrite my url, and I got an error after several refreshes.
    This is my site configuration.
    server {
    listen 80;
    server_name localhost testwebsite testwebsite.homelinux.org;
    access_log logs/testwebsite.access.log main;
    location / {
    root /home/www/testwebsite;
    index index.php;
    if (!-e $request_filename) {
    rewrite ^/(.*)$ /index.php?path=$1 last;
    #rewrite ^/((.*)[^/])$ /index.php?path=$1 last;
    location ~ \.php$ {
    #root www;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME /home/www/testwebsite/$fastcgi_script_name;
    include fastcgi_params;
    When I am not trying to rewrite the url, everything is ok, but when I try to rewrite it, after several refreshes on the page, I got nginx error: 502 bad gateway, and the cgi deamon stops to work.
    When I restart the fastcgi (I am using the example /etc/rc.d/fastcgi file as it is in the wiki) the web site is working again for several refreshes, and then the fastcgi stops again and I got the bad gateway again.
    Can someone tell me what is wrong with my rewrite rule, please.
    Regards.
    Last edited by Gruntz (2010-04-08 15:58:50)

    I fixed it with that rewrite:
    rewrite  ^([^.]*)$  /index.php?path=$1;

  • 502 Bad Gateway Mal-formed Reply problem

    I need some help! A few users are reporting the following when accessing certain URLS via IE7 pointed to NBM 3.9SP1 server running NW65 SP7:
    HTTP ERROR
    Status: 502 Bad Gateway
    Description: Mal-formed reply from origin server.
    The problem can be seen when clicking on the "continue shopping" or "check out" link in KODAK Gallery
    The problem does not occur with Firefox or when pointed to another non-NBM proxy.
    The proxy.cfg being used is listed below. We were using one of Craig Johnson's proxy.cfg files but ran into some odd problems... Novell support provided the proxy.cfg below which seemed to solve those other problems.
    proxy.cfg:
    [MiniWeb Server]
    Port-Number=1959
    Root-Directory=SYS:\ETC\PROXY\DATA
    [MiniWeb Server: Mime Types]
    Content-Type: text/html=htm,html
    Content-Type: text/plain=txt,text,cla,class
    Content-Type: image/gif=gif
    Content-Type: image/jpeg=jpg,jpeg,jpe,jfif,pjpeg,pjp
    Content-Type: image/tiff=tiff,tif
    Content-Type: image/x-xbitmap=xbm
    Content-Type: video/x-msvideo=avi
    Content-Type: video/quicktime=qt,mov,moov
    Content-Type: video/x-mpeg2=mpv2,mp2v
    Content-Type: video/mpeg=mpeg,mpg,mpe,mpv,vbs,mpegv
    Content-Type: audio/x-pn-realaudio=ra,ram
    Content-Type: audio/x-mpeg=mpega,mp2,mpa,abs
    Content-Type: audio/x-wav=wav
    Content-Type: audio/x-aiff=aif,aiff,aifc
    Content-Type: application/x-ns-proxy-autoconfig=pac
    Content-Type: text/javascript
    Content-Type: application/x-javascript
    [Extra Configuration]
    AckWithNoDataOnSYN=1
    AllowGTCPProxyToUsePort25=1
    AllowSecond220Respond=1
    CodeRedWorkAround=1
    DiscardAcceptRanges=1
    DonotCache4ContEncoding=1
    DoNotCacheWhenCookieFound=1
    DoNotCreateFullyQualifiedHostNames=0
    DoNotResolveNamesBeforeGoingThruHierarchy=1
    DoNotSaveMemoryCacheDuringUnload=1
    DoNotSendExtraCRLF=1
    DonotSendIPToACL=1
    EnableActiveFTP=1
    EnableICSPassThruFix=1
    EnableIncomplete302ResponseFix=1
    EnableNoCachePassThru=1
    HTTPSAuthenticationSwitch=0
    IcpBypassOrigin=1
    IgnoreContentLengthCheck=1
    IgnoreDuplicateChill=1
    Line_Terminator=CR
    new302Redirect=1
    NoDummySlashUpstream=1
    noRetryIfPragmaNoCacheHeaderPresent=1
    OC_IgnoreContentLengthFlag=1
    #PassContentLength=0
    ResBadAddressLoopBreak=1
    ResolveProxyIPAddress=0
    RestartTimeoutAfterEverySend=1
    SCacheDestroyYieldInterval=200
    ScanVirusPatterns=1
    SendHTTP11Request=1
    SkipHttpReplyHeaderCaseChange=1
    TransparentProxySupportsVirtualServers=1
    TreatLeftArrowAsHeaderBodySeparator=0
    TurnOffPersistantPassThru=1
    UseSimplifiedErrorPage=1
    #bm39sp1 added options:
    #enableCacheInVersionDowngrade=1
    #EnableAcceptEncoding=1
    #GraceLoginNotification=1
    #GraceLoginText=Enter a customization grace login text here
    #PwdChangeURL=Enter the URL for changing the password
    #skipAuthForViaHeader=1
    #fixSecondTimeScheduling=1
    [TransparentHTTPS]
    HTTPSPort1=443
    [BM Cookie]
    BM_Forward_Cookie=0
    [Object Cache]
    cut thru no CLH length=0
    disk management factor=4000
    [Log Format]
    Delimiter-Character=space
    [HTTP Streaming]
    ResetOriginServerConnAfterClientReset=1
    [Tunneling]
    EnableTunnelingControl=1
    EnableTunnelingControlLog=0
    [HttpTunnelingAllowed]
    ; the example entries below allow ports 443, 444 (often specified
    ; for SSL Proxy Authenticaiton, 8009 (for NRM), 2200 (Apache Web Manager
    ; and 52443 (for iFolder) to be tunneled. Port 443 is enabled by default.
    ;port<x>=<port #>
    port1=8009
    port2=52443
    port3=2200
    ; use 444 for ssl proxy authentication
    port4=444
    ; allow 1494 thru for Citrix apps in browsers
    port5=1494
    ;;added by jwf
    port6=21459
    port7=21457
    port8=21450
    ;added per wo for lily rice access to UA
    port9=8443
    [Virus Pattern Configuration]
    MaxNoOfVirusPatterns=28
    NoOfVirusPatterns=28
    PatternSize=16
    EnableAutoPatternUpdate=1
    PatternStartOffset=1
    VirusPattern0=scripts/..%252f.
    VirusPatternoffset10=0
    VirusPatternvalue10=0
    VirusPatternoffset20=0
    VirusPatternvalue20=0
    VirusPatternorigLength0=57
    VirusPattern1=scripts/..%c1%1c
    VirusPatternoffset11=0
    VirusPatternvalue11=0
    VirusPatternoffset21=0
    VirusPatternvalue21=0
    VirusPatternorigLength1=58
    VirusPattern2=scripts/..%c0%2f
    VirusPatternoffset12=0
    VirusPatternvalue12=0
    VirusPatternoffset22=0
    VirusPatternvalue22=0
    VirusPatternorigLength2=58
    VirusPattern3=scripts/..%c0%af
    VirusPatternoffset13=0
    VirusPatternvalue13=0
    VirusPatternoffset23=0
    VirusPatternvalue23=0
    VirusPatternorigLength3=58
    VirusPattern4=scripts/..%%35c.
    VirusPatternoffset14=0
    VirusPatternvalue14=0
    VirusPatternoffset24=0
    VirusPatternvalue24=0
    VirusPatternorigLength4=57
    VirusPattern5=scripts/root.exe
    VirusPatternoffset15=0
    VirusPatternvalue15=0
    VirusPatternoffset25=0
    VirusPatternvalue25=0
    VirusPatternorigLength5=33
    VirusPattern6=MSADC/root.exe?/
    VirusPatternoffset16=0
    VirusPatternvalue16=0
    VirusPatternoffset26=0
    VirusPatternvalue26=0
    VirusPatternorigLength6=31
    VirusPattern7=d/winnt/system32
    VirusPatternoffset17=0
    VirusPatternvalue17=0
    VirusPatternoffset27=0
    VirusPatternvalue27=0
    VirusPatternorigLength7=41
    VirusPattern8=c/winnt/system32
    VirusPatternoffset18=0
    VirusPatternvalue18=0
    VirusPatternoffset28=0
    VirusPatternvalue28=0
    VirusPatternorigLength8=41
    VirusPattern9=_mem_bin/..%255c
    VirusPatternoffset19=0
    VirusPatternvalue19=0
    VirusPatternoffset29=0
    VirusPatternvalue29=0
    VirusPatternorigLength9=78
    VirusPattern10=_vti_bin/..%255c
    VirusPatternoffset110=0
    VirusPatternvalue110=0
    VirusPatternoffset210=0
    VirusPatternvalue210=0
    VirusPatternorigLength10=78
    VirusPattern11=msadc/..%255c../
    VirusPatternoffset111=0
    VirusPatternvalue111=0
    VirusPatternoffset211=0
    VirusPatternvalue211=0
    VirusPatternorigLength11=106
    VirusPattern12=scripts/..%%35%6
    VirusPatternoffset112=0
    VirusPatternvalue112=0
    VirusPatternoffset212=0
    VirusPatternvalue212=0
    VirusPatternorigLength12=59
    VirusPattern13=scripts/..%25%35%
    VirusPatternoffset113=0
    VirusPatternvalue113=0
    VirusPatternoffset213=0
    VirusPatternvalue213=0
    VirusPatternorigLength13=61
    VirusPattern14=scripts/..%255c..
    VirusPatternoffset114=0
    VirusPatternvalue114=0
    VirusPatternoffset214=0
    VirusPatternvalue214=0
    VirusPatternorigLength14=57
    VirusPattern15=scripts/..%c1%9c.
    VirusPatternoffset115=0
    VirusPatternvalue115=0
    VirusPatternoffset215=0
    VirusPatternvalue215=0
    VirusPatternorigLength15=58
    VirusPattern16=scripts/root.exe
    VirusPatternoffset116=0
    VirusPatternvalue116=0
    VirusPatternoffset216=0
    VirusPatternvalue216=0
    VirusPatternorigLength16=81
    VirusPattern17=scripts/httpodbc
    VirusPatternoffset117=0
    VirusPatternvalue117=0
    VirusPatternoffset217=0
    VirusPatternvalue217=0
    VirusPatternorigLength17=30
    VirusPattern18=MSADC/root.exe?/
    VirusPatternoffset118=0
    VirusPatternvalue118=0
    VirusPatternoffset218=0
    VirusPatternvalue218=0
    VirusPatternorigLength18=79
    VirusPattern19=MSADC/httpodbc.d
    VirusPatternoffset119=0
    VirusPatternvalue119=0
    VirusPatternoffset219=0
    VirusPatternvalue219=0
    VirusPatternorigLength19=28
    VirusPattern20="c/httpodbc.dll H"
    VirusPatternoffset120=0
    VirusPatternvalue120=0
    VirusPatternoffset220=0
    VirusPatternvalue220=0
    VirusPatternorigLength20=24
    VirusPattern21=d/winnt/system32
    VirusPatternoffset121=0
    VirusPatternvalue121=0
    VirusPatternoffset221=0
    VirusPatternvalue221=0
    VirusPatternorigLength21=92
    VirusPattern22="d/httpodbc.dll H"
    VirusPatternoffset122=0
    VirusPatternvalue122=0
    VirusPatternoffset222=0
    VirusPatternvalue222=0
    VirusPatternorigLength22=24
    VirusPattern23=scripts/..%255c.
    VirusPatternoffset123=0
    VirusPatternvalue123=0
    VirusPatternoffset223=0
    VirusPatternvalue223=0
    VirusPatternorigLength23=108
    VirusPattern24=scripts/.%255c..
    VirusPatternoffset124=0
    VirusPatternvalue124=0
    VirusPatternoffset224=0
    VirusPatternvalue224=0
    VirusPatternorigLength24=39
    VirusPattern25=scripts/..%252f.
    VirusPatternoffset125=0
    VirusPatternvalue125=0
    VirusPatternoffset225=0
    VirusPatternvalue225=0
    VirusPatternorigLength25=116
    VirusPattern26=scripts/..%252f.
    VirusPatternoffset126=0
    VirusPatternvalue126=0
    VirusPatternoffset226=0
    VirusPatternvalue226=0
    VirusPatternorigLength26=39
    VirusPattern27=default.ida?XXXX
    VirusPatternoffset127=0
    VirusPatternvalue127=0
    VirusPatternoffset227=0
    VirusPatternvalue227=0
    VirusPatternorigLength27=385

    jfish1,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Risport Service: The remote server returned an error: (502) Bad Gateway

    Hi All.
    I am using the CUCM (System version: 6.1.3.2000-1) Risport function to get device information.
    When trying to connect to the service (https://<CUCM_IP>:8443/realtimeservice/services/RisPort) I receive the folowing error:
    The remote server returned an error: (502) Bad Gateway
    When entering the same URL into the browser on the same application server I get a Security Alert, user prompt and eventually the expected screen. So the service is running, but somhow I can not connect to it using the application.
    Does anyone know how to solve this?
    Thanks in advance

    It is an C#.NET Windows Service.
    I have solved "the problem". The service was running with "local system account". That user did not had the right proxy rights to connect to the CUCM service.
    So I changed the Windows Service user to the account that I use to login on that machine (with the right proxy rights) and now it is working ;-)
    I figured this out because when I logged into that machine, with my account, I could connect to the CUCM service without any problems with my browser.

  • HTTP/1.1 502 Bad Gateway =  ***!!

    I have a plan with unlimited everything. A great percentage of the time when I try to get on the internet, I'll do a search, "Google " for instance. It will come up with multiple choices which tells me it is searching the internet. However, If I try to click on ANY choice, no matter the site, This is the message I get on a tan background screen (HTTP/1.1 502 Bad Gateway). This will go on for up to an hour or two, no matter what I search for, which means, no internet access. This has been going on for 2 months now. I have called customer support several times and they have tried various things to fix this but of course the problem is persisting. They tell me I may have to be given a new # to fix the problem. I DON'T WANT A NEW NUMBER. I want the problem fixed. For the life of me, on the Verizon website I could not send them an e-mail for help, so here I am on a forum for everybody to see instead. Maybe somebody is familiar with this problem, or somebody from Verizon will see it and help fix the problem. I am not faulting the people in customer service I have talked to on the phone, they were extremely helpful as far as they were able to.  I am however tired of this. Any help or ideas ?
    <Subject line edited to comply with the Verizon Wireless Terms of Service.>
    Message was edited by: Verizon Moderator

    I worked for Verizon for 7 years in the tech support department, and if you get to the right place, there are tools available for the person you are speaking with in order to solve an issue like this.  However, if the person cannot solve the issue right away, the are required to find the answer and give you a call back with the answer.  When I worked there, I always made sure I found the answer one way or another.  As for getting a new number, that is **.  From my experience there, there are a few things I learned.  If you happen to get routed to a call center that was outsourced by Verizon, don't expect anything they say to be true.  Ask to be transferred to an actual corporate Verizon call center.  Even if you are talking to someone at a corporate call center, there are people there that don't want to do their jobs.  Rather than finding the root cause of the issue, they may tell you to bring it to a store, or just send you a replacement phone.  However, in most cases this does not actually fix the problem.   I wish I could tell you what the answer is, but I have not worked there in about 4 years.  In all likelihood, it is probably an issue with the way your account is provisioned in the system.  If it is happenening on all websites everywhere you go, generally speaking, it is an issue with your account, or an issue with the actual phone.  I am having the same issue right now and I am going to call Verizon when I get off work.
    My suggestions:
    Do not call from the phone you are having trouble with. 
    Ask for a corporate call center.
    Make sure you are talking to tech support, not customer service.  If you press the option for tech support, it will send you to customer service first regardless.
    If someone says they will call you back, make sure you get their name, direct number, and supervisors name and direct number.  Sometimes though, they may not give you the correct number.  Like I said before, people don't want to do their jobs.
    Take it to a store but be prepared to wait a while, and also, the tech at the store may not have the patience to actually find the root cause of the issue.

  • Error occurred in deployment step 'Uninstall app for SharePoint': The remote server returned an error: (502) Bad Gateway.

    Installed SP 2013 Foundation in my Hyper-V machine
    Created and done all the steps mentioned here http://blogs.msdn.com/b/shariq/archive/2013/05/07/how-to-set-up-high-trust-apps-for-sharepoint-2013-amp-troubleshooting-tips.aspx && http://msdn.microsoft.com/en-us/library/office/fp179901%28v=office.15%29.aspx
    for self signed certificate
    copied those two certificates in my local machine(base machine) D drive
    (D:\Cert)
    Both VM and base machine are in same domain
    Installed VS 2013 in my base machine and create a Provided hosted app with the copied certificates, (For creation i followed the above mentioned URL)
    Just created and hit F5 to run in my base machine, but getting this error
    Error occurred in deployment step 'Uninstall app for SharePoint': The remote server returned an error: (502) Bad Gateway.
    Please help me to resolve this issue, trying to figure out from last 2 days
    Thanks in Advance
    Arun

    Hi Harminder,
    This happens because an app has already been deployed and you are deploying it again using the same version.
    Resolution:
    Open the AppManifest.xml file and change the version.
    Vivek Jagga - MCTS SharePoint
    SharePointExcellence

  • How do i fix 502 bad gateway on macbook pro

    hi my laptop keeps saying 502 bad gateway can you please help me lucas

    Google '502 bad gateway'
    http://pcsupport.about.com/od/findbyerrormessage/a/502error.htm

  • HTTP Error 502: Bad Gateway

    Whenever I try to download a new ringtone or even get on t-zones for that matter, this message always comes up that says HTTP Error 502: Bad Gateway. What does this mean? How do I fix it? This is really annoying!!!!

    Hi,
    Can  anyone help me  how to  read my email from blackberry  pearl 8120 model, when try to open it shows HTTP error 502 bad gateway  and how to rectify the problems.
    ramlaks
    ramlaks

  • ADF MOBILE Browser application throwing Error HTTP 502 Bad Gateway

    Downloaded "mobile banking Sample" from ADF Mobile Homepage, imported into JDeveloper 11gR2. Started MDS-CS, started built-in Weblogic application server. The deployed application Welcome.jspx displays correctly in a stand alone browser. However, surprisingly the same URL when typed within Blackberry Simulator browser HTTP Error 502: Bad gateway is thrown. I know its not a proxy issue since I can navigate to google and MDSCS admin page. Please advise where we are going wrong?
    Note. since this is urgent I wanted to put across as much information as possible - so created a document with screen shots and added it as attechment to Oracle Support issue#3-4905845711.

    web browser returns 502 Bad Gateway errorHuh? I would expect a "page is taking too long to respond" error.
    Seems to me like you need support for background jobs. It would work something like this:
    - do request to server, either direct submit or Ajax call
    - that request, after validating of course, will start a background job. In a thread, through a job scheduler, whatever, as long as it is not the servlet that is actually executing the job. The servlet immediately returns after starting the background job.
    - webapp can show running jobs and through Ajax infrequently polls to see if running jobs are either done or they blew up with an error
    - you can see the results after a job has finished running
    This kind of "detached" system has many problems that need to be taken care of, for example taking care of resubmission. If you maintain persistent bookkeeping about jobs, a server shutdown can make the bookkeeping and the running state go out of sync. But programming is hard, this is the fun side of the job. Doing stuff you actually have to think about!

  • Soundcloud / 502 Bad Gateway

    When I try to open soundcloud.com in Safari I get the "502 Bad Gateway / The server returned an invalid or incomplete response" message. In Chrome and Firefox it works. I've tried restarting the router, but it didn't help. Any ideas what could be the causing the problem?

    Hi ..
    I can access soundcloud.com on Yosemite 10.10 /  Safari 8 ok. So delete the cache.db and if necessary, troubleshoot Safari Extensions.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, from the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

  • HT202159 502 bad gateway

    Hi am trying to download os x mountain lion & keep gatting "502 bad gateway" error & will not let me download although I have logged in & paid.
    I've also had this problem with iTunes movies rental & purchase.  I'm not getting much love from Apple either!!
    hoopefully some one nose their **** out there.

    WHAT????  I have to be notified when Shi%T like this happens….   This is not fair.  I would have not uploaded anything and left it the way it is until your issues was resolved.  When do you think you will have a resolution??
    Don't forget to LIKE US or follow US ON FACEBOOK!
    http://www.facebook.com/mywaycarpetandflooring
    Sincerely,
    Sam "The Carpet Man"® Ghanim
    President of Sales
    My Way Carpet Floors And More!
    Our motto is that the customer, you, are "always right." Your way is "My Way”
    Office: 877-Go-My Way
    Office: 877-699-2922
    Mobile: 908-405-5722
    Fax: 908-756-4040
    Email: [email protected]
    Corporate Office:
    3373 South Clinton Ave.
    South Plainfield, NJ 07080
    If you would like to set up a free no-obligation estimate, Please call My Way Carpet Floors And More (our office) at 1-877-466-9929 between 9:00 A.M. and 5:00 P.M ET Monday-Saturday
    P.S.- Do not keep us a secret!
    If you love our services, please refer us to anyone who may benefit from the exceptional service we provide.
    Please visit our "website" for a list of services we provide!
    Website: www.MyWayCarpet.com

  • Getting a 502 Bad Gateway when trying to run a POST request for application on Lync UCWA on VPN

    I am getting a 502 Bad Gateway when trying to run a POST request for application info on Lync UCWA ("Policy prevents request from being proxied."). When I do a request without SSL, I get a 403 - Forbidden: Access is denied. 
    Is this becouse I am on VPN and not on the internal network? There are some policy on VPN or the IIS internal that denies me access?
    I have not tried it internal yet. Anyone else with this experience?

    Did you figure out your issue? I'm having a similar issue. Even thought I'm able to successfully sign-in to the Lync Server and obtain a Bearer token, I'm not getting any response from the server when sending a POST request to the application URI (https://<pool_fqdn>/ucwa/oauth/v1/applications).
    Wondering if it's a policy issue and if so, why user policy affects this access?
    thanks.

  • 502 Bad gateway PLEASE HELP ASAP

    I updated one picture on my website and published the changes.  I got a message "502 Bad gateway"  My website is not live NOW!!  Please help me asap [email protected] 908-405-5722

    WHAT????  I have to be notified when Shi%T like this happens….   This is not fair.  I would have not uploaded anything and left it the way it is until your issues was resolved.  When do you think you will have a resolution??
    Don't forget to LIKE US or follow US ON FACEBOOK!
    http://www.facebook.com/mywaycarpetandflooring
    Sincerely,
    Sam "The Carpet Man"® Ghanim
    President of Sales
    My Way Carpet Floors And More!
    Our motto is that the customer, you, are "always right." Your way is "My Way”
    Office: 877-Go-My Way
    Office: 877-699-2922
    Mobile: 908-405-5722
    Fax: 908-756-4040
    Email: [email protected]
    Corporate Office:
    3373 South Clinton Ave.
    South Plainfield, NJ 07080
    If you would like to set up a free no-obligation estimate, Please call My Way Carpet Floors And More (our office) at 1-877-466-9929 between 9:00 A.M. and 5:00 P.M ET Monday-Saturday
    P.S.- Do not keep us a secret!
    If you love our services, please refer us to anyone who may benefit from the exceptional service we provide.
    Please visit our "website" for a list of services we provide!
    Website: www.MyWayCarpet.com

  • HTTP 502 BAD GATEWAY ERROR / UNIDENTIFIED ERROR WHEN TRYING TO MAKE A DATABASE CONNECTION

    I have the above error on my windows 7 cs6 dreamweaver. When i click test or ok i either have one of the above error messages appear. I have tried this with 2 different databases now that are hosted with completely different hosts and i have the same issue.
    I have disabled AVG and i do not operate via a proxy to my knowledge. I am in the UK and use Virgin Media internet if this makes a difference.
    Any suggestions?
    I did contact techinical support but they expected me to purchase an additional package for £150 odd for them to help.

    The 502 Bad Gateway HTTP status code means that one server received an invalid response from another server that it was accessing while attempting to load the web page or fill another request by the browser.
    In other words, the 502 error is an issue between two different servers on the Internet that aren't communicating properly.
    Have a look here for a possible solution http://pcsupport.about.com/od/findbyerrormessage/a/502error.htm

Maybe you are looking for

  • Migrate from Crystal Report Server XI R2 to new Eclipse RAS SDK Question

    Hi, I am migrating Crystal Report Server XI R2 RAS SDK to Eclipse RAS SDK which seems to be quite easy. I have the following old code which basicly programmaticly creates a Report from scratch adds a Table and then populates the Report with a Pojo Co

  • XI cache refresh error 'HTTP status code503 Service Unavailable'

    We are running XI 3.0, SP 9 XI cache refresh stopped working today (red traffic light). Tried a Delta refresh. Got a program dump with error 'Access with ‘ZERO’ object reference not possible'. Activated all objects in Change lists of Repository, dire

  • Whether Shopping cart will be updated when the PO quantity is changed

    Hello SRM Guru, I have one question. When the PO quantity is changed after the shopping cart was approved Whether this changed quantity will update the  Shopping cart ? Technical Scenario : extended classic system: SRM 7.0 SP6 Regards Madhan

  • Subtotal Heder not showing

    Hi all, Submodule for displaying subtotal text is not triggered. Kindly suggest me. Source Code is as follows. FORM sub_get_event .   DATA: l_s_event TYPE slis_alv_event.   CALL FUNCTION 'REUSE_ALV_EVENTS_GET'     EXPORTING       i_list_type     = 4

  • Speech bubbles in PSE 10?

    How does one make speech bubbles in photo shop elements 10?