No internet connection

ERROR: for talkyard_search_1 Cannot start service search

By @Cee2020-06-30 14:55:01.960Z

I got an installation error on PVE LXC Ubuntu 20.04 and it looks like the search tool failed to install.

Total reclaimed space: 537.4MB
2020-06-30T14:37:51+00:00 upgrade-script: Downloading version v0.6.68-c255d72... (this might take long)
Pulling search ... done
Pulling rdb    ... done
Pulling cache  ... done
Pulling app    ... done
Pulling web    ... done
2020-06-30T14:41:47+00:00 upgrade-script: Installing: Starting version v0.6.68-c255d72...
Creating network "talkyard_internal_net" with driver "bridge"
Creating talkyard_search_1 ... error
Creating talkyard_rdb_1    ... done
Creating talkyard_cache_1  ...

ERROR: for talkyard_search_1  Cannot start service search: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"process_linux.go:378: setting rlimits for ready process caused \\\"error setting rlimit type 8: operation not permitted\\\"\
Creating talkyard_cache_1  ... error

ERROR: for talkyard_cache_1  Cannot start service cache: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"write sysctl key net.core.somaxconn: open /proc/sys/net/core/somaxconn: no such file or directory\"": unknown

ERROR: for search  Cannot start service search: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"process_linux.go:378: settingrlimits for ready process caused \\\"error setting rlimit type 8: operation not permitted\\\"\"": unknown

ERROR: for cache  Cannot start service cache: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"write sysctl key net.core.somaxconn: open /proc/sys/net/core/somaxconn: no such file or directory\"": unknown
Encountered errors while bringing up the project.

I would love to have a one-click installation of Docker like Discourse, it's very easy and error free.

  • 2 replies
  1. KajMagnus @KajMagnus2020-07-03 12:03:19.694Z

    I never tried running Talkyard with LXC. It'd be nice if that worked — and Podman too.

    It seems the errors are, for ElasticSearch and Redis:

    error setting rlimit type 8: operation not permitted
    
    write sysctl key net.core.somaxconn: open /proc/sys/net/core/somaxconn: no such file or directory
    

    and indeed they need higher OS resource limits. For example, ElasticSearch wants at least 65 536 open files descriptors. And Redis wants a higher SOMAXCONN ( = max waiting connection requests for a listening socket).

    But I'm surprised it seems they try to auto-configure these things themselves?

    I wonder if it's possible to 1) configure the OS? or the LXC / Podman containers? so the resource limits are high enough. Or 2) reconfigure ES and Redis so they're ok with lower limits. But I think at least with ES that's not completely possible.

    1. In reply toCee:
      KajMagnus @KajMagnus2020-07-03 15:32:19.985Z

      I would love to have a one-click installation of Docker like Discourse

      Where would you want to one-click install Talkyard? I'm thinking / wondering-if a one click installer needs to be created with a specific hosting provider in mind, e.g. an installer for DigitalOcean, and another for ... others.

      (Sorry for the a bit late reply)