fsockopen unable to connect to 127.0.0.1:8778 screen scraper

Hi there

I have had no end of problems trying to figure out what is causing this error.. I run screen scraper the linux server version on a cron job.. it runs fine for weeks and then all of a sudden dies with this error message. Any ideas???

Starting screen-scraper...

Warning: fsockopen(): unable to connect to 127.0.0.1:8778 (Connection refused) in /home/intfxco/screen-scraper/misc/php/remote_scraping_session.php on line 98
Connection refused (111)
root@taipan [/web/intfxco/screen-scraper]#
root@taipan [/web/intfxco/screen-scraper]#

fsockopen unable to connect to 127.0.0.1:8778 screen scraper

mattbarrie,

It's hard to say just what this may be since it happens randomly and after a long stint of screen-scraper running without issue. We've made updates to screen-scraper since v3.0. Please go ahead and updatee you're version of screen-scraper and in the mean time we'll have a closer look. Hopefully after you update this will not recur. If it does, let us know.

Thanks,
Scott

also

and no, nothing else is running on that port, I checked with lsof,

After I kill all the java processes I still get the error.

root@taipan [/web/intfxco/screen-scraper/resource/conf]# more wrapper.conf
# This file is manipulated by screen-scraper. Edit it at your own risk.
wrapper.ntservice.interactive=true
wrapper.ntservice.name=screen-scraper
wrapper.logfile.loglevel=ERROR
wrapper.ntservice.displayname=screen-scraper
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperStartStopApp
wrapper.java.command=/home/intfxco/screen-scraper/jre/bin/java
wrapper.java.classpath.4=./lib/*.jar
wrapper.java.library.path.2=./lib
wrapper.java.additional.1=-Xss5M
wrapper.java.classpath.3=./screen-scraper.jar
wrapper.java.library.path.1=./
wrapper.java.classpath.2=./
wrapper.java.classpath.1=./lib/
wrapper.logfile.format=LPTM
wrapper.logfile.maxsize=0
wrapper.ntservice.description=Start and stop screen-scraper server.
wrapper.java.initmemory=3
wrapper.app.parameter.7=--stop-server
wrapper.app.parameter.6=1
wrapper.app.parameter.5=true
wrapper.app.parameter.4=com.screenscraper.controller.ControllerMain
wrapper.console.loglevel=INFO
wrapper.app.parameter.3=--start-server
wrapper.app.parameter.2=1
wrapper.app.parameter.1=com.screenscraper.controller.ControllerMain
wrapper.logfile=./log/wrapper.log
wrapper.java.maxmemory=256
wrapper.ntservice.starttype=DEMAND_START
wrapper.console.format=M
wrapper.logfile.maxfiles=0
wrapper.port=1777

#This file is manipulated by screen-scraper. Edit it manually at your own risk!
#Wed Jun 27 14:06:09 EST 2007
DefaultProxySession=
InstallDirectory=/web/intfxco/screen-scraper/
ExternalNTProxyHost=
ExternalProxyPassword=
SOAPPort=8779
ServerPort=8778
SaveLargeFields=false
ExternalProxyPort=
MainFrame.LastWidth=800
ExternalProxyUsername=
MaxConcurrentScrapingSessions=5
Version=3.0
ExternalNTProxyDomain=
ExternalNTProxyAuthentication=NTfoo\:NTbar
TidyHTML=true
Edition=PROFESSIONAL
ExternalProxyHost=
MailServerPassword=
MaximumMemoryAllocation=256
ExternalNTProxyPassword=
MailServerHost=
ConnectionTimeout=15
ExternalProxyAuthentication=foo\:bar
MailServerUsername=
IPAddressesToAllow=192.168,127.0,localhost
ExternalNTProxyUsername=
DontLogBinaryFiles=true
DataExtractorTimeout=1
LastSelectedDirectory=
MainFrame.LastHeight=600
ProxyForceAllHTTPRequestsToHTTPS=false
OutputLogFiles=true
ProxyPort=8777
Server.NumTimesRun=1
DatabasePort=9001