juju bootstrap failed

Bug #1818038 reported by Raghavendra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Won't Fix
High
Tim Penhey

Bug Description

i installed juju from snap
ubuntu version-> 18.04.02

groupadd --system lxd
snap install juju --classic

juju version => 2.5.1

but when executed juju bootstrap. i got below error

juju bootstrap --bootstrap-series=trusty localhost devlocal

Error:-
        ERROR juju.mongo mongo.go:567 could not set the value of "/proc/sys/net/core/somaxconn" to "16384" because of: "/proc/sys/net/core/somaxconn" does not exist, will not set "16384"
     ERROR juju.mongo mongo.go:567 could not set the value of "/proc/sys/net/core/netdev_max_backlog" to "1000" because of: "/proc/sys/net/core/netdev_max_backlog" does not exist, will not set "1000"
     ERROR juju.mongo mongo.go:567 could not set the value of "/sys/kernel/mm/transparent_hugepage/enabled" to "never" because of: open /sys/kernel/mm/transparent_hugepage/enabled: permission denied
     ERROR juju.mongo mongo.go:567 could not set the value of "/sys/kernel/mm/transparent_hugepage/defrag" to "never" because of: open /sys/kernel/mm/transparent_hugepage/defrag: permission denied
     INFO juju.mongo mongo.go:439 Ensuring mongo server is running; data directory /var/lib/juju; port 37017
     INFO juju.mongo mongo.go:640 installing [juju-mongodb]
     INFO juju.packaging.manager utils.go:64 Running: apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet install juju-mongodb
    7 INFO juju.service service.go:214 Installing and starting service &{Service:{Name:juju-db Conf:{Desc:juju state database Transient:false AfterStopped: Env:map[] Limit:map[fsize:unlimited cpu:unlimited as:unlimited memlock:unlimited nofile:64000 nproc:64000] Timeout:300 ExecStart:/usr/lib/juju/bin/mongod --dbpath '/var/lib/juju/db' --sslPEMKeyFile '/var/lib/juju/server.pem' --sslPEMKeyPassword=ignored --port 37017 --syslog --journal --replSet juju --quiet --oplogSize 1024 --ipv6 --auth --keyFile '/var/lib/juju/shared-secret' --sslOnNormalPorts --noprealloc --smallfiles ExecStopPost: Logfile: ExtraScript: ServiceBinary: ServiceArgs:[]}}}
     ERROR juju.service service.go:224 retrying start request (exec ["start" "--system" "juju-db"]: exit status 1 (start: Job failed to start))
     ERROR juju.service service.go:224 retrying start request (exec ["start" "--system" "juju-db"]: exit status 1 (start: Job failed to start))
     ERROR juju.service service.go:224 retrying start request (exec ["start" "--system" "juju-db"]: exit status 1 (start: Job failed to start))
     ERROR failed to start mongo: exec ["start" "--system" "juju-db"]: exit status 1 (start: Job failed to start)
    ERROR failed to bootstrap model: subprocess encountered error code 1

Revision history for this message
Richard Harding (rharding) wrote :

I can confirm this with the 2.5.1 and note that it works properly on 2.4.7. Will continue to look into what's changed to cause the issue.

Revision history for this message
Richard Harding (rharding) wrote :

It looks like it's due to this change setting mongo params for better performance.

https://github.com/juju/juju/commit/e109bbca6712d716309d6fcac2c77fb664ed7c88

Changed in juju:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Tim Penhey (thumper)
milestone: none → 2.5.3
Tim Penhey (thumper)
Changed in juju:
milestone: 2.5.3 → 2.5.4
Changed in juju:
milestone: 2.5.4 → 2.5.5
Changed in juju:
milestone: 2.5.6 → 2.5.8
Changed in juju:
milestone: 2.5.8 → 2.5.9
Revision history for this message
Tim Penhey (thumper) wrote :

We aren't going to deal with bootstrapping trusty controllers any more

Changed in juju:
milestone: 2.5.9 → none
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.