View Single Post
Old 03-21-2024, 07:59 PM   #19
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
I found some examples on the web that said to add these to get Apache2 to listen to additional ports:

"Listen 8083" right below "Listen 80" in the "ports.conf" file. Did that.
It now reads:
Listen 80
Listen 8083

"Then it said add "*:8083" after the "*:80" in the "sites-enabled/000-default.conf" file in this line: <VirtualHost *:80>. Did that.
It now reads:
<VirtualHost *:80 *:8083>

Restarted the Apache service: sudo service apache2 restart

No errors.

Then ran "cps" and received error: Error starting server: [Errno 98] Address already in use

Rebooted the RPi, same error.

I verified with netstat apache is listening on 8083:
tcp6 0 0 :::8083 :::* LISTEN 817/apache2

I don't get it that cps says the address is "in use"? I did check that there were no other "cps" or "copsweb" processes running, so what is using 8083 other than apache listening on it?

I looked in the calibre-web log files, and this seems to confirm it is starting on port 8083:

[2024-03-21 16:15:43,759] INFO {apscheduler.scheduler:885} Added job "end scheduled task" to job store "default"
[2024-03-21 16:15:51,226] INFO {cps.server:231} Starting Tornado server on :8083
[2024-03-21 16:15:51,227] ERROR {cps.server:251} Error starting server: [Errno 98] Address already in use
[2024-03-21 16:15:51,228] INFO {cps.server:284} webserver stop (restart=False)
[2024-03-21 16:15:51,229] INFO {apscheduler.scheduler:202} Scheduler has been shut down

Monty

Last edited by MontyJ; 03-21-2024 at 08:01 PM.
MontyJ is offline   Reply With Quote