[greg@wooledge.org: Re: Fw: locating blocked port]
----- Forwarded message from Greg Wooledge <greg@wooledge.org> -----
Date: Thu, 2 Feb 2023 08:57:30 -0500
From: Greg Wooledge <greg@wooledge.org>
To: debian-user@lists.debian.org
Subject: Re: Fw: locating blocked port
I finally managed to get jabref to run.
I looked at waht aprocess was using the PIS as you suggest.
$ ps -fp 1675
UID PID PPID C STIME TTY TIME CMD
haines 1675 1559 0 Feb01 tty1 00:04:36 java -jar
/usr/local/share/JabRef/JabRef-3.2.jar
I thn kill the process and verify that port 6050 is not being used.
I then try to start by old version (3.2) of jabref:
$ java -jar /usr/local/share/JabRef/JabRef-3.2.jar &
[1] 1867
haines@lenin:~$ Feb 04, 2023 6:58:02 AM net.sf.jabref.JabRef
openBibFile
INFO: Opening: /home/haines/bibtex/historiography.bib
Feb 04, 2023 6:58:02 AM net.sf.jabref.importer.OpenDatabaseAction
loadDatabase
INFO: Synchronized special fields based on keywords
Feb 04, 2023 6:58:02 AM net.sf.jabref.JabRef openBibFile
INFO: Opening: /home/haines/bibtex/history.bib
Feb 04, 2023 6:58:02 AM net.sf.jabref.importer.OpenDatabaseAction
loadDatabase
INFO: Synchronized special fields based on keywords
Exception in thread "AWT-EventQueue-0" java.lang.Error: Unable to
make void java.awt.EventDispatchThread.pumpEvents(>
at spin.off.AWTReflectDispatcherFactory.<clinit>(AWTReflectDispatcherFactory.java:139)
at spin.off.SpinOffEvaluator.<clinit>(SpinOffEvaluator.java:38)
at spin.Spin.<clinit>(Spin.java:67)
...
It seems javref is trying to load two databases but it but it does
not display. I suspect that is because my jabef is too old.
Neverthesless java owns port 6050 and so I kill the process. I next
load the up to date version of jabref
$ jabref
07:06:01.125 [AWT-EventQueue-0] WARN net.sf.jabref.JabRefGUI -
There seem to be problems
with OpenJDK and the default GTK Look&Feel. Using Metal L&F
instead. Change to another
L&F with caution.
07:06:44.206 [AWT-EventQueue-0] INFO
net.sf.jabref.logic.importer.OpenDatabase - Opening:
/home/haines/bibtex/historiography.bib
07:06:47.708 [AWT-EventQueue-0] INFO
net.sf.jabref.logic.importer.OpenDatabase - Opening:
/home/haines/bibtex/history.bib
This this time jabref started. I opened three databaes it didn't open
automatically. Another database it did see. I pyt thst issue aside.
While writing this message jabref crashed and no longer claims
port 6060. I restarted it and so far it has no crashed.
On Thu, Feb 02, 2023 at 08:48:43AM -0500, Haines Brown wrote:
> > Now the quetion is, what process is using that port?
> >
> > $ sudo ss -pt state listening 'sport = :6050'
> > Recv-Q Send-Q Local Address:Port Peer Address:Port
> > Process
> > 0 1 [::ffff:127.0.0.1]:6050 *:*
> > users:(("java",pid=1675,fd=14))
> >
> > Is java holding that port? Is jabref then trying to use the port
> > for itself? If so, is this a bug? (I run testing)
> You've got a PID, so the next thing *I* would do is ps -fp 1675
--
Haines Brown
/"\
\ / ASCII Ribbon Campaign
X against HTML e-mail
/ \
Reply to: