`kobo-install` on a fresh Ubuntu 18.04 LTS VPS

Hi dear

No i can’t solve this problim yet i am writing the reply .

If you speak arabic send to REMOVED PHONE NUMBER

@ramiz please don’t tag people en masse like this. Supporting people’s private installations of KoBo is not our central mission, and we try our best to help only as time permits. If that’s not enough, you can post on the job board and hire a professional to help you.

Could clarify the problem? KoBoToolbox only serves three hostnames: KPI, KoBoCAT, and Enketo Express—the ones you say are working—and if you want a fourth domain (the base mydomain.com), you need to arrange for that separately. For example, our public instance runs on kf.kobotoolbox.org (KPI), kc.kobotoolbox.org (KoBoCAT), and ee.kobotoolbox.org (Enketo Express). The root domain kobotoolbox.org is hosted by GitHub Pages, completely separately from the KoBoToolbox application.

2 Likes

I don’t see any errors. Maybe there’s a DNS problem, or an issue with KoBoCAT or Enketo Express (their logs are not visible in the screenshot). What happens if you try to visit each of KPI, KoBoCAT, and Enketo Express in a browser? Usually these will be kf.yourdomain.org, kc.yourdomain.org, and ee.yourdomain.org, but it depends on what you chose when you first ran the run.py setup.

1 Like

Hi! Sorry for tagging people, The problem has been solved. I’ll write about it in the next comment

2 Likes

I was making two mistakes here:

  1. I was giving full subdomain address instead of just the subdomain. So for example, instead of writing “kf” I was writing “kf.mydomain.com
  2. I was running it with the root user

Fixed these two and it started running with http.

Now my next step is to run it with https. There I get stuck. Now none of my subdomains work. In the logs I see this:


The setup just keeps on running infinitely (until I stop it) without any error. This is what I see:

My server’s port 443 is open. When I try to open https://kf.mydomain.com/ it keeps on running and after some time, I get 504 timed out error from nginx. What could I be doing wrong?

1 Like

Run docker ps and see whether the containers are up? Check the container logs too.

504 for me gets solved when I restart the containers.

1 Like

I tried docker ps. The cotnainers seem to be all running except nginx:1.15-alpine. But there is another Nginx container that is running

Thanks! I was able to see in container logs, the error message was: cannot load certificate “/etc/letsencrypt/live/mydomain.com/fullchain.pem”
Although it should have been there. Now I need to see why it is not there. Atleast I have a lead now.

If you need to add the SSL certificates manually, you can use this process:

2 Likes

Thanks a lot! I will try again tomorrow!

1 Like

Thanks a lot !
the problim was in DNS

But i want to ask about what is the defaults port for every sub domin as kc,kf,ee

Hi! I tried to do it automatically for now. In the logs, everything looks fine but the form won’t open. In the nginx logs, it shows the following error:
SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share
Does anyone know how I can fix this?

Looks like an issue with the key file. Either you can execute run.py --setup or use the manual method above to try and reinstall the keys.

2 Likes

Have you solved this issue?

If yes, kindly post how did you solved it.

enketo express form preview issue has been resolved:

added entries in docker-compose.frontend.override.yml for extra hosts as described:

extra_hosts:
  - kf.mydomain:192.168.1.6
  - kc.mydomain:192.168.1.6
  - ee.mydomain:192.168.1.6

Hello,

Thanks for this. But I have followed it to the letter and still have not been able to get past the “Waiting for environment to be ready. It can take a few minutes.” line.

Is there some other way I can inspect and (perhaps adjust variables) to get it running? The logs show everything is up and running but I get a secure page saying “504 Gateway Time-out.” Where in the containers, for instance, should I look for what I may be missing because I can’t seem to find any clue as to what I may be doing wrong.

What else can I do because I seem to have ran out of ideas. And I’ve read all the docs posted here.

Thanks in advance.

I am unable to start my environment with a custom domain. I have added the A record entry of my EC2 public IP against the three subdomains (kf.[mydomain.org], kc.[mypublicdomain.org], ee.[mydomain.org]) in my DNS provider’s console. Now when I start my environment by “sudo python3 run.py --setup” command, I get stuck in the start of the environment. All the containers are up and running. But my installation remains stucked in “Waiting for the environment to be ready” line. What do I need to do to use my own public domain?
Do I need to add an A record entry for my root domain as well?

Hello Kal,
I hope this message find you will!

Could you please confirm if I still can me install kobotoobox on my server ubuntu 20.4 Azure VM?
And how?

becuase i’ve tried a lot of methods and they don’t work for me

Any body can help me?

  1. KoBoToolbox has not started yet. This is can be normal with low CPU/RAM computers.

Wait for another 600 seconds?

  1. Yes
  2. No
    [1]: 2

╔════════════════════════════════════════════════════════════════════╗
║ ║
║ KoBoToolbox could not start! ║
║ Please try python3 run.py --logs to see the logs. ║
║ ║
╚════════════════════════════════════════════════════════════════════╝

when i run python3 run.py --logs
there is no error!!

Hi, I’ve run into this issue:

Cloning into '/home/kobo/kobo-docker'...
remote: Enumerating objects: 4427, done.
remote: Counting objects: 100% (723/723), done.
remote: Compressing objects: 100% (357/357), done.
remote: Total 4427 (delta 425), reused 578 (delta 364), pack-reused 3704
Receiving objects: 100% (4427/4427), 2.48 MiB | 22.88 MiB/s, done.
Resolving deltas: 100% (2763/2763), done.
Note: switching to '2.024.04c'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at aaaeb63 Upgrade KPI and KoboCAT to 2.024.04c
From https://github.com/kobotoolbox/kobo-docker
 * tag               2.024.04c  -> FETCH_HEAD
/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (2.2.1) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (2.2.1) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
Traceback (most recent call last):
  File "/usr/local/bin/docker-compose", line 5, in <module>
    from compose.cli.main import main
  File "/usr/local/lib/python3.8/dist-packages/compose/cli/main.py", line 13, in <module>
    import docker.errors
  File "/usr/local/lib/python3.8/dist-packages/docker/__init__.py", line 1, in <module>
    from .api import APIClient
  File "/usr/local/lib/python3.8/dist-packages/docker/api/__init__.py", line 1, in <module>
    from .client import APIClient
  File "/usr/local/lib/python3.8/dist-packages/docker/api/client.py", line 6, in <module>
    import requests
  File "/usr/lib/python3/dist-packages/requests/__init__.py", line 95, in <module>
    from urllib3.contrib import pyopenssl
  File "/usr/local/lib/python3.8/dist-packages/urllib3/contrib/pyopenssl.py", line 43, in <module>
    import OpenSSL.SSL  # type: ignore[import-untyped]
  File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1553, in <module>
    class X509StoreFlags(object):
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1571, in X509StoreFlags
    NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 72, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 32, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 12, in <module>
    import os, glob, subprocess, os.path, time, pwd, sys, requests_unixsocket
  File "/usr/lib/python3/dist-packages/requests_unixsocket/__init__.py", line 1, in <module>
    import requests
  File "/usr/lib/python3/dist-packages/requests/__init__.py", line 95, in <module>
    from urllib3.contrib import pyopenssl
  File "/usr/local/lib/python3.8/dist-packages/urllib3/contrib/pyopenssl.py", line 43, in <module>
    import OpenSSL.SSL  # type: ignore[import-untyped]
  File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1553, in <module>
    class X509StoreFlags(object):
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1571, in X509StoreFlags
    NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'

Original exception was:
Traceback (most recent call last):
  File "/usr/local/bin/docker-compose", line 5, in <module>
    from compose.cli.main import main
  File "/usr/local/lib/python3.8/dist-packages/compose/cli/main.py", line 13, in <module>
    import docker.errors
  File "/usr/local/lib/python3.8/dist-packages/docker/__init__.py", line 1, in <module>
    from .api import APIClient
  File "/usr/local/lib/python3.8/dist-packages/docker/api/__init__.py", line 1, in <module>
    from .client import APIClient
  File "/usr/local/lib/python3.8/dist-packages/docker/api/client.py", line 6, in <module>
    import requests
  File "/usr/lib/python3/dist-packages/requests/__init__.py", line 95, in <module>
    from urllib3.contrib import pyopenssl
  File "/usr/local/lib/python3.8/dist-packages/urllib3/contrib/pyopenssl.py", line 43, in <module>
    import OpenSSL.SSL  # type: ignore[import-untyped]
  File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1553, in <module>
    class X509StoreFlags(object):
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1571, in X509StoreFlags
    NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
An error has occurred

Any advice?