Cannot get Step Debugging to work in Eclipse/CF 8 - coldfusion

I just can't seem to get step debugging to work in CF 8 and Eclipse. Eclipse is running on my local machine and CF 8 is running on a non-local "intraweb" development server.
I think I have everything setup correctly:
RDS Working fine
Server configured to allow line debugging on port 5005 (port 5005 is not being used on server)
Added -DDEBUGGER_SERVER_PORT=5005 to the jvm.config file to force the debugging service to use port 5005.
In the RDS Configuration in Eclipse, the "test connection" is successful.
In RDS configuration, the "Test Debugger" button returns "Test debugger failed" with details that the server is listening on port 5005 but is not the port set in CF Administrator, which doesn't make sense since it IS the port that is set in CF Administrator.
If I restart the CF Server and hit the "test debugger" button, I will get the "test debugger was successful" message, but if I then hit it again a second time and on subsequent times, the connection will fail. (Trying to run the debug configuration directly after a restart will also fail.)
Would anyone have any ideas?
Thanks Jeff

The problem is solved. We had a special firewall setup (outside of windows server) and the port was being blocked. Unblocked the port, and everything works.

We had this problem too. If you are using IIS, turn off compression for Application Files (found in the "Service" tab in properties).

Related

Unable to view django website - development server

Upon running the the dev server 0.0.0.0:8000, I cannot see the website loaded in the browser.
While going through some of the reasons why this might happen, I have done the following changes:
ALLOWED_HOSTS = ['*']
Killed all processes on 8000
firewall turned off
The server I am working on is RHEL.
System check identified no issues (0 silenced).
April 01, 2019 - 04:39:38
Django version 2.1.7, using settings 'gig_bank.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
//Nothing is displayed in the browser.
Since you specified that it's a remote server, it most likely be a firewall issue,
you need to make sure port 8000 is open, you could test it using netcat as following :
nc -zv -w1 ip port
if the server is inside a cloud you need to add the rule to your cloud console, turning off the firewall in the server won't suffice.
Just in case the firewall on the server wasn't actually off, you could run sudo ufw allow 8000/tcp (For linux user)

Error: connect ECONNREFUSED 127.0.0.1:3306 when using cloud sql for MYSQL from NodeJS app

I followed all the steps mentioned in this sample app link. GitHubLink. When running the script (npm run init-cloudsql) to initialize mysql database, I get an error below:
D:\gcloud\nodejs-getting-started\2-structured-data\books\model-cloudsql.js:143
throw err;
^
Error: connect ECONNREFUSED 127.0.0.1:3306
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
--------------------
at Protocol._enqueue (D:\gcloud\nodejs-getting-started\2-structured- data\node_modules\mysql\lib\protocol\Protocol.js:145:48)
at Protocol.handshake (D:\gcloud\nodejs-getting-started\2-structured-data\node_modules\mysql\lib\protocol\Protocol.js:52:23)
at Connection.connect (D:\gcloud\nodejs-getting-started\2-structured-data\node_modules\mysql\lib\Connection.js:130:18)
at Connection._implyConnect (D:\gcloud\nodejs-getting-started\2-structured-data\node_modules\mysql\lib\Connection.js:461:10)
at Connection.query (D:\gcloud\nodejs-getting-started\2-structured-data\node_modules\mysql\lib\Connection.js:206:8)
at createSchema (D:\gcloud\nodejs-getting-started\2-structured-data\books\model-cloudsql.js:126:14)
at prompt.get (D:\gcloud\nodejs-getting-started\2-structured-data\books\model-cloudsql.js:117:5)
at D:\gcloud\nodejs-getting-started\2-structured-data\node_modules\prompt\lib\prompt.js:336:32
at D:\gcloud\nodejs-getting-started\2-structured-data\node_modules\utile\node_modules\async\lib\async.js:154:25
at assembler (D:\gcloud\nodejs-getting-started\2-structured-data\node_modules\prompt\lib\prompt.js:333:9)
What am i missing? I could not resolve this error. Can someone help me fix this issue?
This error occurs when you run an instance of PopSQL or Node.js and the MySQL server is not running on your local machine.
Try the below steps
Press Windows key and R on your keyboard. This opens the command prompt
Type in services.msc and click ok.
In the services pop up , check for MYSQL57. If its not in the running state, Click on run this service in the left column of the dialog box
Once the service is running connect to the POPSQL from the connections window
The error message you shared indicates your machine could not connect to the instance's IP address on port 3307 (which is used by the proxy). I tested this on my own machine, and it is listening there. This likely indicates a firewall on your machine or your local network that is preventing outbound connections on port 3307. Try and open this in the firewall, and see if you can connect.
You need to whitelist your IP to access Cloud SQL. https://cloud.google.com/sql/docs/mysql/instance-access-control

WAMP Server - local server - 1 of 2 services running

I installed WAMP server and ran the applpication. The icon in the taskbar stays orange and says "local server - 1 of 2 services running" . Also, I am able to see the phpMyAdmin page in the browser but when I try to login it gives the following error:
#2002 - No connection could be made because the target machine actively refused it. <br />The server is not responding (or the local server's socket is not correctly configured).
I have tested port 80 and I got this response:
***** Test which uses port 80 *****
===== Tested by command netstat filtered on port 80 =====
Test for TCP
Your port 80 is used by a processus with PID = 6612
The processus of PID 6612 is 'httpd.exe' Session: Services
The service of PID 6612 for 'httpd.exe' is 'wampapache64'
This service is from Wampserver - It is correct
Test for TCPv6
Your port 80 is used by a processus with PID = 6612
The processus of PID 6612 is 'httpd.exe' Session: Services
The service of PID 6612 for 'httpd.exe' is 'wampapache64'
This service is from Wampserver - It is correct
===== Tested by attempting to open a socket on port 80 =====
Your port 80 is actually used by :
Server: Apache/2.4.18 (Win64) PHP/5.6.19
I believe that the above result means that there is no problem with the port. I even tried changing the port and still gives the same status - orange icon.
Note - When a prompt from Windows Firewall was shown after installing WAMP, I didn't give access to both private and public networks, i.e. I unchecked both the options.
Kindly help me to run both the services in the local server.
Thank you!
Click on the WAMP icon in the tray and go to Apache > service Administration and check if the service is installed or if it isn't running . You can even reinstall it by removing and installing it again. Do the same with MySQL . Go to MySQL > Service Administration and do the same things . In my case Apache service wasn't installed and Installing it did the trick. check the image below.
See this image
Most of the answers given on the Internet say to change the port used by Apache but that is not the solution in most of the cases.
Actually, start the WAMP server->right click on the icon -> tools -> use a port other than 3306 -> click on this -> set on 3308.
Hopefully, this will resolve the error.
I had the same problem but only Skype was using port 80. I just changed port 80 from Skype and make it use another one. OR you can change port 80 used by Apache. To do this go to WAMP -> Apache -> http.conf and change Listen 80 with Listen 81 for eg.
The same with me but in my case I installed mysql after installing wampserver so there was a port conflict between the integrated version and the independent version of mysql for the port 3306, so the problem could resolved either by changing one of ports
If you want to change wampserver's mysql's port go to the taskbar icon right click and the go to tools select: use a port rather than xxxx(3306 in my case)
This thread helped me.
How to change port number for apache in WAMP
Thread Details below
Just go to httpd.conf file, for ex. under WAMP environment its situated at:
C:\wamp\bin\apache\apache2.2.22\conf\httpd.conf
go to line no. 46 and edit Listen 80 to your requirement for ex.
Listen 8383
newer versions of WAMP uses these 2 lines:
Listen 0.0.0.0:8383
Listen [::0]:8383
Next go to line no. 171 and edit ServerName localhost:80 to your requirement for ex.
ServerName localhost:8383
Restart Apache and its done !!
Now, you can access with your URL:
http://localhost:8383 or http://192.168.1.1:8383
Hope it helps to people looking for solution here.
No need to remove and reinstall WAMP or edit Host file or change any port. this problem happens when Internet Information Services (IIS) Manager service is running. you need just stop IIS to run wampapache service without any problem.
press start then type iis and run Internet Information Services (IIS) Manager and in right panel press stop. then click on wamp icon on system tray and choose start all services.
this is all you need.
I had the same issue some time back. Tried all kinds of things and finally found the link below. Basically the issue was:
A parameter in your 'my.ini' file (C:\Wamp\bin\mysql\mysql<version>) called 'lower_case_table_names'
If there, comment it out and restart MYSQL again."
If I recall, also did a computer restart also just for good measures.
http://forum.wampserver.com/read.php?2,136457
This might be because php is not working because the default port 80 is taken so u need to change the port follow these steps
1. Click the wamp icon from the bottom right corner
2. Go to Apache->httpd.conf and open this file
3. Search for word Listen in the file and change these two lines
Listen 0.0.0.0:8018 (u can use any digits instead of 18 )
Listen [::0]:8018
4. Now search for the word localhost and change this line
ServerName localhost:8018
5. Restart wamp
6. Go to your default browser and type http://localhost:8080/ this will open the wamp menu
It's either your WAMP Apache port is clashing with IIS (if that is installed and running), or MySQL port is clashing with another MySQL install.
Edit your WAMP > Apache > httpd.conf by hovering cursor over Apache inside WAMP tray icon. Change port 80 to an available port like 8181. Restart all services.
I had the same issue, where only 1 service out of 2 was running. But my issue was not a port issue.
I had previously zipped up a bunch of .conf files in the alias directory to share them with a colleague, and I left the .zip file there. This caused an error in Apache as it tried to use the .zip file as an alias.
Once I removed the .zip file from the alias directory, my Apache services were working fine.
Bit of an 'outside the box' answer, but this was my issue with the same symptoms!
Maybe it is not a port problem.
if you had a problem because msvcr110.dll is missing
so after you setup the library you will get this problem service 1 of 2
so in this case you have to reinstall the wamp server.
I had faced similar similar issue where the server was not starting up with the following message - "local server - 1 of 2 services running" , with server icon in Orange color.
With nothing updated in the error logs. Finally was able to track issue through -
Wamp server icon -> Apache -> Service Administration 'wampapache64' -> install service
Error message : WAMP - 'Your port 80 is actually used - Error'
Resolution : Change the port number of the wamp server to some other number,for example 5050.
Go to: C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf
In that file change the listen port to 5050.
#Listen 12.34.56.78:5050
Listen 0.0.0.0:5050
Listen [::0]:5050
Save and Restart. Now you can see the server started successfully with green icon.
Following threads helped me to resolve this issue :
How to change port number for apache in WAMP
WAMP - Your port 80 is actually used - Error
GO to run type Services and enter
check these two services must start

Wamp Local host blank. Port 80 is clear

I've checked in the cmd, I've checked into just about everything and port 80 is good to go but local host is still blank. I followed a tutorial to move the wamp install to dropbox, and on my desktop it loads fine. However when it's on my laptop localhost is blank. I'm at a loss.
I fixed this issue. In case anyone in the future runs into if:
Use Wampservers watch :80 from the apache menu to see what is using it.
For me it was IIS. You have to use a command line code to end it. Open CMD and run:
NET STOP IISADMIN /Y
If you are running Windows 8 add
"Allow from ::1"
beneath
Allow from 127.0.0.1
in both httpd.conf and phpmyadmin.conf.
A better solution would be to use wampmanager -> Apache -> Service -> Test port 80
This will launch a command window and tell you is anything is using port 80.
Then rather than killing it ( if its a service that is automatically started it will just be back again after a reboot ) attempt to reconfigure it so it no longer uses port 80.
or
Try this link
http://ye5.blogspot.in/2011/01/wamp-server-localhost-shows-blank-page.html
Click on wampmanager icon -> Apache -> Service -> Test port 80
After you can see Port 80 is used by any other application in your system
Then rather than killing service ( if its a service that is automatically started it will just be back again after a reboot ) you need to attempt reconfigure it, so it no longer uses port 80.
Use below link to resolved your problem.
http://ye5.blogspot.in/2011/01/wamp-server-localhost-shows-blank-page.html
Start > Run > services.msc > disable "World Wide Publishing" and restart all wamp

WAMP server shows a blank page

MY WAMP server has broken down.
http://localhost
shows a blank page.
any help please?
I had to use system recover at the end and the problem was at the skype, i tried to uncheck the "use port 80" box under skypes options but the only way to do it properly is to recover ur pc at an earlier date.
Mind you becareful and make a copy of your data first
I had the same problem. It was skype, I had already unchecked the "use port 80" box under skype options but apparently skype was still running on port 80. I followed the advice at http://ye5.blogspot.com/2011/01/wamp-server-localhost-shows-blank-page.html and it showed that skype was the problem and how to force the process to stop running. Then wampserver worked beautifully.
For those who only have skype installed (no other applications hogging port 80), a temporary workaround is to quit your skype, then start your WAMPServer, then only start your skype. Just my 2 sents.
Same issue, here is the solution !
Cause :
Another program (Skype but not only) is using the port80 (which is by default the one used by wamp).
You can see it typing the following command "netstat -ano" and looking what is on "localadress 0.0.0.0.80", if you want to see the concerned program open, note the number at the end of the line (4 for example), then open taskmanager, services, and see who is on PID 4.
Solution :
Let's change wamp port to 81 !
Change wamp port from 80 to 81
I changed the WAMP PHP version from 5.6 to 7.04 and it worked like a charm. Give it a shot!
Go to > Notification Area > Wamp Icon > PHP > Versions
Enable error reporting in the configuration so that you can see why.
Not only skype will cause the problem, all other software that using port 80 will cause the same problem such as anti-virus, online movie player... if you want to know how to check which software is using port 80, and how to delete it. Please follow the 7 steps that shown on my blog : http://ye5.blogspot.com/2011/01/wamp-server-localhost-shows-blank-page.html
Okay so looking at both responses here and elsewhere, many people have been saying to quit skype or whichever process is running port 80. I used this link http://ye5.blogspot.com/2011/01/wamp-server-localhost-shows-blank-page.html as provided by zac1987 to locate what was interfering via port 80.
However, many people still complained that locating and quitting the program taking up port 80 didn't work straight away. In my case I just had to wait a minute or two for all of the Skype processes to close themselves and then I restarted WAMP Server and it is now working fine.
Hope this helps somebody :)
I had the same problem and I successfull solved it.
First I can saw only blank screen. When I click on Wampserver icon then it show me information about "Server is Offline". I click "Put Online" and server changed to online.
Next, I closed Skype and through Wampserver icon I check that 80 port is free:
Wampserver icon -> Apache -> Service -> Test Port 80
At this time my browser showing me webpage about can't open localhost.
Next, I install apache service: Wampserver icon -> Apache -> Service -> Install Service
After installed I start service: Wampserver icon -> Apache -> Service -> Start/Resume Service
If service start correctly then menu option "Start/Resume Service" is shadow.
Now my webbrowser correctly show localhost webpage.
Additionally in my Skype, I unchecked option "Use port 80 and 443 as alternatives for incoming connections".
I too have the same but i changed the listen port of wamp server to 5050 its works for me and we use skype at port 80 itself. for changing the listen port go to the folder were the wamp server installed. if you are using the windows go to the following path.
C:\wamp\bin\apache\apache2.4.9\conf in that folder find the httpd.conf file open that file any editor and change the listen port 5050.
#Listen 12.34.56.78:5050
Listen 0.0.0.0:5050
Listen [::0]:5050
The cause on my server was a php.ini error on line 107.
https://stackoverflow.com/a/32901489/2407742
I commented out line 107 because it was unnecessary and restarted WAMP.