Connection issue: Kolibri port

Posted from e-mail message:

We currently have another software that uses port 8080. I am able to connect to Kolibri on the server it was downloaded to using 127.0.0.1:8080, however connection from other local PC’s to the server ip (10.128.0.3:8080) is not working. Is there a way to change the port Kolibri uses? Is the other software being on the port the issue or am I overlooking something?

Hey Laura,

Here is a guide for how to run Kolibri using a different port in Kolibri user guide.

It is probably worth starting a couple of sections above that because the user will need to create an options.ini file first.

I did as instructed and was able to change the port but I am still unable to connect to Kolibri from any PC other than the server we have downloaded it. For reference, the IP it is installed under is 10.128.0.3; and using this followed by 8080 results in the web page timing out. Is there some kind of log file that may help direct where the problem is? Everything works great when accessed on the ip it is installed to, using 127.0.0.1; not sure what is causing the disconnect between it working on other PC’s as we checked the firewall and nothing strange is going on there.

Hi @jpeluso,

I’m sorry that I’m a bit confused here. You mentioned that you changed the port according to the documentation.

and using this followed by 8080 results in the web page timing out.

Do you mean that you tried to access the kolibri from other PCs through 10.128.0.3:<new_port>?
You can also check out the documentation on how to troubleshoot the network issues.

The kolibri log files can be found in ~/.kolibri if you are running on Unix systems, or C:\Users\<username>\.kolibri if you are on Windows. More details on how to locate the Kolibri log files.

Please feel free to let me know if you have any questions. Thank you so much!

Lingyi

Hi - did you try steps 2 and 3 of the network troubleshooting steps linked above?

Yes, I can ping the ip (10.128.0.3) and when I access Kolibri through the install machine IP on the install machine, it loads fine (i.e. using 10.128.0.3:8080 on the PC running Kolibri). Any ideas on what could be causing it to time out on external network PC’s?

Can you describe your network setup a bit? Routers, switches, wifi, DHCP, etc?

Just to add, running “kolibri start --debug -foreground” on C:\Python34\Scripts results in:

<-33mWarning Ignoring unkown section in options file …\options.ini under top level: section.<-[0m
<-31mERROR Port 1738 is occupied
Please check that you do not have other processes running on this port and try again’
<-0m

I’ve tried ports 8080, 7070, 1738; all of which the cmd line says are occupied but I’m 99% certain they are not.

Hi @jpeluso,

Before you ran the command kolibri start --debug -foreground, did you stop the kolibri instance by running kolibri stop? My guess is that the kolibri instance was still running when you were trying to start kolibri with the command in the foreground.

I did not run that in the command line but I did end the processes in the task manager. I just reinstalled the software on a whim but still experiencing issues. The Kolibri “server is starting” message continues to appear and reappear. I made a new options.ini but that is not resolving the issue either. With regard to that however, what should I have for keys section. In the documentation it says to put
[section]
key1 = a
key2 = b
and that the keys may vary. Also, there are two processes in task manager called Kolibri, should this be the case?

Hi @jpeluso,

Could you send us the log file in the directory C:\Users\<your_username>\.kolibri\kolibri.log so we can see what may have been wrong? Thank you!

How does the server connect to the network? Does it connect through a cable or WiFi?

In this post, @jredrejo mentioned that the server must connect the network through a cable.

Also, what is the Kolibri version you are running?

Thank you so much!

Hi @jpeluso

can you confirm me that I understand from the above sentence that:
a) kolibri runs locally on port 8080 without any problem
b) you can’t access to it from other computers using the server ip
c) you have not a network firewall

If that’s correct, can you please locate and attach the log files?

Also, in another message I see you mention that windows always tell you the port is occupied . That usually means you are running the application under an user that has not permissions to open ports (it could be also that the ports are actually open, you can check it executing in a cmd this command netstat -an). You could try to start kolibri as an administrator in your machine or at least ensure your user has enough permissions.

José L.

INFO 2019-07-10 09:51:47,194 apps Running Kolibri with the following settings: kolibri.deployment.default.settings.base
INFO 2019-07-10 09:51:47,802 vacuumsqlite Sqlite database Vacuum finished.
INFO 2019-07-10 09:51:47,818 cli Running ‘kolibri start’ as daemon (system service)
INFO 2019-07-10 09:51:47,880 cli Kolibri running on:

INFO 2019-07-10 09:51:47,880 cli Going to daemon mode, logging to C:\Users\Administrator.EDUMIA.kolibri\logs\kolibri.txt
INFO 2019-07-10 09:51:47,911 ping Attempting a ping.
INFO 2019-07-10 09:51:47,974 vacuumsqlite Sqlite database Vacuum finished.
INFO 2019-07-10 09:51:47,974 vacuumsqlite Next Vacuum at 3AM local server time (in 1028.2 minutes).
INFO 2019-07-10 09:51:48,442 utils Started new JOBCHECKER thread ID#eef85bc0008646c590bfa6b72f998a2d
INFO 2019-07-10 09:51:48,598 annotation Updating num_coach_content on existing channels
INFO 2019-07-10 09:51:48,598 server Starting Kolibri 0.12.5
INFO 2019-07-10 09:51:52,716 ping Ping succeeded! (response: {‘messages’: [], ‘id’: 275228})
INFO 2019-07-10 09:51:53,324 ping Sleeping for 1440.0 minutes.
INFO 2019-07-10 09:51:53,777 cherrypy.error ENGINE Bus STARTING
INFO 2019-07-10 09:51:53,995 cherrypy.error ENGINE Serving on http://0.0.0.0:8080
INFO 2019-07-10 09:51:53,995 cherrypy.error ENGINE Bus STARTED
INFO 2019-07-10 09:59:05,751 apps Running Kolibri with the following settings: kolibri.deployment.default.settings.base
INFO 2019-07-10 09:59:06,344 vacuumsqlite Sqlite database Vacuum finished.
INFO 2019-07-10 09:59:06,344 cli Running ‘kolibri start’ as daemon (system service)
INFO 2019-07-10 09:59:06,406 cli Kolibri running on:

INFO 2019-07-10 09:59:06,406 cli Going to daemon mode, logging to C:\Users\Administrator.EDUMIA.kolibri\logs\kolibri.txt
INFO 2019-07-10 09:59:06,437 ping Attempting a ping.
INFO 2019-07-10 09:59:06,469 vacuumsqlite Sqlite database Vacuum finished.
INFO 2019-07-10 09:59:06,469 vacuumsqlite Next Vacuum at 3AM local server time (in 1020.8833333333333 minutes).
INFO 2019-07-10 09:59:06,734 utils Started new JOBCHECKER thread ID#4429adf4304b4e4c9f5ff6cbb7645fa1
INFO 2019-07-10 09:59:06,827 annotation Updating num_coach_content on existing channels
INFO 2019-07-10 09:59:06,827 server Starting Kolibri 0.12.5
INFO 2019-07-10 09:59:11,149 ping Ping succeeded! (response: {‘id’: 275236, ‘messages’: []})
INFO 2019-07-10 09:59:11,741 ping Sleeping for 1440.0 minutes.
INFO 2019-07-10 09:59:11,991 cherrypy.error ENGINE Bus STARTING
INFO 2019-07-10 09:59:12,209 cherrypy.error ENGINE Serving on http://0.0.0.0:8080
INFO 2019-07-10 09:59:12,209 cherrypy.error ENGINE Bus STARTED
INFO 2019-07-10 09:59:35,007 cherrypy.access.126838152 10.128.0.3 - - “GET /static/assets/fonts/noto-common.css?v=0.12.5 HTTP/1.1” 200 107426 “http://10.128.0.3:8080/en/user/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
INFO 2019-07-10 09:59:35,011 cherrypy.access.126838152 10.128.0.3 - - “GET /static/assets/fonts/noto-subset.en.css?v=0.12.5 HTTP/1.1” 200 23332 “http://10.128.0.3:8080/en/user/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
INFO 2019-07-10 09:59:35,051 cherrypy.access.126838152 10.128.0.3 - - “GET /static/default_frontend/default_frontend0.12.5.css HTTP/1.1” 200 15635 “http://10.128.0.3:8080/en/user/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
INFO 2019-07-10 09:59:35,116 cherrypy.access.126838152 10.128.0.3 - - “GET /static/user_module/user_module0.12.5.css HTTP/1.1” 200 1182 “http://10.128.0.3:8080/en/user/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
INFO 2019-07-10 09:59:35,150 cherrypy.access.126838152 10.128.0.3 - - “GET /static/user_module/user_module-0.12.5.js HTTP/1.1” 200 22903 “http://10.128.0.3:8080/en/user/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
INFO 2019-07-10 09:59:35,198 cherrypy.access.126838152 10.128.0.3 - - “GET /static/assets/fonts/noto-full.en.modern.css?v=0.12.5 HTTP/1.1” 200 2530 “http://10.128.0.3:8080/en/user/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
INFO 2019-07-10 09:59:35,209 cherrypy.access.126838152 10.128.0.3 - - “GET /static/default_frontend/default_frontend-0.12.5.js HTTP/1.1” 200 334783 “http://10.128.0.3:8080/en/user/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
INFO 2019-07-10 09:59:36,324 cherrypy.access.126838152 10.128.0.3 - - “GET /static/background.jpg?0.12.5-Default%20theme-1 HTTP/1.1” 200 211311 “http://10.128.0.3:8080/en/user/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
INFO 2019-07-10 09:59:45,825 cherrypy.access.126838152 10.128.0.3 - - “GET /static/facility_management_module/facility_management_module0.12.5.css HTTP/1.1” 200 687 “http://10.128.0.3:8080/en/facility/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
INFO 2019-07-10 09:59:45,899 cherrypy.access.126838152 10.128.0.3 - - “GET /static/facility_management_module/facility_management_module-0.12.5.js HTTP/1.1” 200 38710 “http://10.128.0.3:8080/en/facility/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”

e[37mINFO Attempting a ping.e[0m
e[37mINFO Sqlite database Vacuum finished.e[0m
e[37mINFO Next Vacuum at 3AM local server time (in 1020.8833333333333 minutes).e[0m
e[37mINFO Started new JOBCHECKER thread ID#4429adf4304b4e4c9f5ff6cbb7645fa1e[0m
e[37mINFO Updating num_coach_content on existing channelse[0m
e[37mINFO Starting Kolibri 0.12.5e[0m
e[37mINFO Ping succeeded! (response: {‘id’: 275236, ‘messages’: []})e[0m
e[37mINFO Sleeping for 1440.0 minutes.e[0m
e[37mINFO ENGINE Bus STARTINGe[0m
e[37mINFO ENGINE Serving on http://0.0.0.0:8080e[0m
e[37mINFO ENGINE Bus STARTEDe[0m
e[37mINFO 10.128.0.3 - - “GET /static/assets/fonts/noto-common.css?v=0.12.5 HTTP/1.1” 200 107426 “http://10.128.0.3:8080/en/user/” "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"e[0m
e[37mINFO 10.128.0.3 - - “GET /static/assets/fonts/noto-subset.en.css?v=0.12.5 HTTP/1.1” 200 23332 “http://10.128.0.3:8080/en/user/” "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"e[0m
e[37mINFO 10.128.0.3 - - “GET /static/default_frontend/default_frontend0.12.5.css HTTP/1.1” 200 15635 “http://10.128.0.3:8080/en/user/” "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"e[0m
e[37mINFO 10.128.0.3 - - “GET /static/user_module/user_module0.12.5.css HTTP/1.1” 200 1182 “http://10.128.0.3:8080/en/user/” "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"e[0m
e[37mINFO 10.128.0.3 - - “GET /static/user_module/user_module-0.12.5.js HTTP/1.1” 200 22903 “http://10.128.0.3:8080/en/user/” "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"e[0m
e[37mINFO 10.128.0.3 - - “GET /static/assets/fonts/noto-full.en.modern.css?v=0.12.5 HTTP/1.1” 200 2530 “http://10.128.0.3:8080/en/user/” "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"e[0m
e[37mINFO 10.128.0.3 - - “GET /static/default_frontend/default_frontend-0.12.5.js HTTP/1.1” 200 334783 “http://10.128.0.3:8080/en/user/” "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"e[0m
e[37mINFO 10.128.0.3 - - “GET /static/background.jpg?0.12.5-Default%20theme-1 HTTP/1.1” 200 211311 “http://10.128.0.3:8080/en/user/” "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"e[0m
e[37mINFO 10.128.0.3 - - “GET /static/facility_management_module/facility_management_module0.12.5.css HTTP/1.1” 200 687 “http://10.128.0.3:8080/en/facility/” "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"e[0m
e[37mINFO 10.128.0.3 - - “GET /static/facility_management_module/facility_management_module-0.12.5.js HTTP/1.1” 200 38710 “http://10.128.0.3:8080/en/facility/” "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"e[0m

Hi, I have same issue than user jpeluso. I was able to install Kolibri in a Windows PC as server, connect it to a Wifi LAN and tried to access it from a client PC in the same LAN, but received message “server stopped responding”. I’m using administrator credentials in server PC and checked that the port 8080 is free. Any hint? Thanks in advance.

As far as I know this is not an error from Kolibri. It could be your browser, or some other software you have in the middle.
To help debugging it:

  1. in the same pc where kolibri is installed, can you open a browser and check if http://127.0.0.1:8080 works?
  2. If it does not. Can you attach here your logs/kolibri.txt file ( https://kolibri.readthedocs.io/en/latest/manage/get_support.html#locate-kolibri-log-files will help you to find it).
  3. It would be good too if you can do a test with all the antivirus disabled, including Windows firewall. It might be happening they’re blocking all the network requests to kolibri.

Hope this helps.
José L.

Hi Jose, thanks for your advise. Windows firewall was the culprit, I disabled it and it worked all fine.
Best wishes,
-Marco

In following this discussion, which relates to a problem I have, I am trying to follow the links you provide. But I constantly get to a message like this one:

\ SORRY /
\ /
\ This page does /
] not exist yet. [ ,’|
] [ / |
]___ [ ,’ |
] ]\ /[ [ |: |
] ] \ / [ [ |: |
] ] ] [ [ [ |: |
] ] ]
__[ [ [ |: |
] ] ] ]\ _ /[ [ [ [ |: |
] ] ] ] (#) [ [ [ [ :====’
] ] ]
].nHn.[_[ [ [
] ] ] HHHHH. [ [ [
] ] / `HH(“N \ [ [
]]/ HHH " [[
] NNN [
] N/” [
] N H [
/ N
/ q,
/ \

Is this just me, or something is wrong on your side? For example, I am trying to reach:

Thanks for any help on this…

Daniel

Hi @dco61, thank you for reporting this issue, we are in the process of making those 404 pages more usable.

You are probably looking for this link, let us know if it works for you:
https://kolibri.readthedocs.io/en/latest/manage/options_ini.html#run-kolibri-from-a-different-port

Cheers,
Radina

Hello Radina,

Thanks for the fast reply… Yes, this link is working.

I discovered Kolibri a couple of days ago and it fits some of the needs I have for projects in Haiti and some african countries (Camerou, Senegal, Ivory Coast and Rwanda). I am quite impressed so far…

When trying to download some content, it looks like the transfer failed for unknown reasons. The transfer starts, goes on for a long while, and suddenly stops. An exclamation mark (!) shows up on the left side of the package name… and nothing else. I have a good Internet connection, a lot of disk space, so I wonder why I cannot complete the download. Is there a way to download a ZIP file containing the content packages, which could be installed locallly?

Daniel