Hi ODK team !
I am trying to setup a local ODK Central server on a machine running with NixOS.
I have managed to get the server running, access the web interface, create a user, upload a Form from an existing XlsForm, but I am facing issues with Getting Blank Forms on my ODK Collect App, and also seeing previews with Enketo. Both don't work...
1. What is the problem? Be very detailed.
When uploading a Form, creating an App User, giving him access to the Form, and scanning the App User QR code with my ODK Collect app, I can't manage to download the blank forms on my phone.
I also get an error when trying to preview a form with Enketo.
2. What app or server are you using and on what device and operating system? Include version numbers.
I am using ODK Central v1.0.2, and my server OS is NixOS v20.03.3081.629fe7b1450 (Markhor).
I added git, docker and docker-compose packages.
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
wget
docker
docker-compose
git
openssl
];
I also disabled the firewall and opened the ports for SSH, HTTP and HTTPS.
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 22 80 443 ];
# networking.firewall.allowedUDPPortRanges = [ ];
# Or disable the firewall altogether.
networking.firewall.enable = false;
And my user has sudo privileges + docker access, and docker is enabled.
users.users.nixos = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" ];
};
virtualisation.docker = {
enable = true;
enableOnBoot = true;
};
I followed all the installation steps, and modified the .env file with the following configuration:
SSL_TYPE=selfsign
DOMAIN=local
SYSADMIN_EMAIL=im.techpm@solidarites-liban.org
This was my only change to the repository.
I suspect the issue could come from the fact that my server doesn't have an ssl certificate, but for a local server, is that really an issue ?
My webpage looks like this:
3. What you have you tried to fix the problem?
When deploying to an AWS server (following the given instructions on the ODK doc), and giving my ODK Central a DOMAIN name, this was all working fine.
Now with a local server using selfsign, I am facing issues...
4. What steps can we take to reproduce the problem?
Install NixOS on a server, with the same configuration, and following the ODK Central installation steps.
5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.
I can provide any additional information if you need it !
Thanks in advance
Jonathan