Closed iot-lorawan closed 3 years ago
Hi, I reinstall mainflux and mainflux ui with make clean and then make run. then priovison with run "mainflux-cli provision test"
but it still fail in login in web ui with username: romantic_golick@email.com and password:12345678
so your problem with database is resolved?
what does the users
service log says when you try to log in?
Hi mteodor, when login in web ui, the ui log is :
Thanks,
If you are experimenting and your data in users db is not important you can remove database volumes and your volumes would be recreated properly. If you need your data you will have to find a way to upgrade database file, since your database volume is created with some prior version of postgres.
Hi meteodor, I remove all docker volume, and rerun ,but it seems not work,
the mainflux log:
ubuntu@ubuntu:~/mainflux$ docker volume ls
DRIVER VOLUME NAME
ubuntu@ubuntu:~/mainflux$ make run
docker-compose -f docker/docker-compose.yml up
Creating network "docker_mainflux-base-net" with driver "bridge"
Creating volume "docker_mainflux-auth-db-volume" with default driver
Creating volume "docker_mainflux-users-db-volume" with default driver
Creating volume "docker_mainflux-things-db-volume" with default driver
Creating volume "docker_mainflux-auth-redis-volume" with default driver
Creating volume "docker_mainflux-es-redis-volume" with default driver
Creating volume "docker_mainflux-mqtt-broker-volume" with default driver
Creating mainflux-auth-db ... done
Creating mainflux-vernemq ... done
Creating mainflux-jaeger ... done
Creating mainflux-auth-redis ... done
Creating mainflux-nats ... done
Creating mainflux-users-db ... done
Creating mainflux-es-redis ... done
Creating mainflux-things-db ... done
Creating mainflux-auth ... done
Creating mainflux-things ... done
Creating mainflux-users ... done
Creating mainflux-coap ... done
Creating mainflux-mqtt ... done
Creating mainflux-http ... done
Creating mainflux-nginx ... done
Attaching to mainflux-auth-redis, mainflux-nats, mainflux-things-db, mainflux-auth-db, mainflux-users-db, mainflux-es-redis, mainflux-jaeger, mainflux-vernemq, mainflux-auth, mainflux-things, mainflux-users, mainflux-http, mainflux-coap, mainflux-mqtt, mainflux-nginx
mainflux-auth | {"level":"error","message":"Failed to connect to postgres: dial tcp 172.18.0.2:5432: connect: connection refused","ts":"2021-08-16T00:51:27.788502337Z"}
mainflux-auth-db | The files belonging to this database system will be owned by user "postgres".
mainflux-auth-db | This user must also own the server process.
mainflux-auth-db |
mainflux-auth-db | The database cluster will be initialized with locale "en_US.utf8".
mainflux-auth-db | The default database encoding has accordingly been set to "UTF8".
mainflux-auth-db | The default text search configuration will be set to "english".
mainflux-auth-db |
mainflux-auth-db | Data page checksums are disabled.
mainflux-auth-db |
mainflux-auth-db | fixing permissions on existing directory /var/lib/postgresql/data ... ok
mainflux-auth-db | creating subdirectories ... ok
mainflux-auth-db | selecting dynamic shared memory implementation ... posix
mainflux-auth-db | selecting default max_connections ... 100
mainflux-auth-db | selecting default shared_buffers ... 128MB
mainflux-auth-db | selecting default time zone ... UTC
mainflux-auth-db | creating configuration files ... ok
mainflux-auth-db | running bootstrap script ... ok
mainflux-auth-db | performing post-bootstrap initialization ... sh: locale: not found
mainflux-auth-db | 2021-08-16 00:51:28.819 UTC [30] WARNING: no usable system locales were found
mainflux-auth-db | ok
mainflux-auth-db | syncing data to disk ... ok
mainflux-auth-db |
mainflux-auth-db |
mainflux-auth-db | Success. You can now start the database server using:
mainflux-auth-db |
mainflux-auth-db | pg_ctl -D /var/lib/postgresql/data -l logfile start
mainflux-auth-db |
mainflux-auth-db | initdb: warning: enabling "trust" authentication for local connections
mainflux-auth-db | You can change this by editing pg_hba.conf or using the option -A, or
mainflux-auth-db | --auth-local and --auth-host, the next time you run initdb.
mainflux-auth-db | waiting for server to start....2021-08-16 00:51:32.657 UTC [35] LOG: starting PostgreSQL 13.3 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.3.1_git20210424) 10.3.1 20210424, 64-bit
mainflux-auth-db | 2021-08-16 00:51:32.658 UTC [35] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
mainflux-auth-db | 2021-08-16 00:51:32.681 UTC [36] LOG: database system was shut down at 2021-08-16 00:51:32 UTC
mainflux-auth-db | 2021-08-16 00:51:32.686 UTC [35] LOG: database system is ready to accept connections
mainflux-auth-db | done
mainflux-auth-db | server started
mainflux-auth-db | CREATE DATABASE
mainflux-auth-db |
mainflux-auth-db |
mainflux-auth-db | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/
mainflux-auth-db |
mainflux-auth-db | 2021-08-16 00:51:33.021 UTC [35] LOG: received fast shutdown request
mainflux-auth-db | waiting for server to shut down...2021-08-16 00:51:33.023 UTC [35] LOG: aborting any active transactions
mainflux-auth-db | 2021-08-16 00:51:33.026 UTC [35] LOG: background worker "logical replication launcher" (PID 42) exited with exit code 1
mainflux-auth-db | 2021-08-16 00:51:33.026 UTC [37] LOG: shutting down
mainflux-auth-db | .2021-08-16 00:51:33.035 UTC [35] LOG: database system is shut down
mainflux-auth-db | done
mainflux-auth-db | server stopped
mainflux-auth-db |
mainflux-auth-db | PostgreSQL init process complete; ready for start up.
mainflux-auth-db |
mainflux-auth-db | 2021-08-16 00:51:33.145 UTC [1] LOG: starting PostgreSQL 13.3 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.3.1_git20210424) 10.3.1 20210424, 64-bit
mainflux-auth-db | 2021-08-16 00:51:33.155 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
mainflux-auth-db | 2021-08-16 00:51:33.155 UTC [1] LOG: listening on IPv6 address "::", port 5432
mainflux-auth-db | 2021-08-16 00:51:33.156 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
mainflux-auth-db | 2021-08-16 00:51:33.159 UTC [49] LOG: database system was shut down at 2021-08-16 00:51:33 UTC
mainflux-auth-db | 2021-08-16 00:51:33.161 UTC [1] LOG: database system is ready to accept connections
mainflux-auth-redis | 1:C 16 Aug 2021 00:51:26.396 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
mainflux-auth-redis | 1:C 16 Aug 2021 00:51:26.396 # Redis version=6.2.2, bits=64, commit=00000000, modified=0, pid=1, just started
mainflux-auth-redis | 1:C 16 Aug 2021 00:51:26.396 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
mainflux-auth-redis | 1:M 16 Aug 2021 00:51:26.396 monotonic clock: POSIX clock_gettime
mainflux-auth-redis | 1:M 16 Aug 2021 00:51:26.402 Running mode=standalone, port=6379.
mainflux-auth-redis | 1:M 16 Aug 2021 00:51:26.402 # Server initialized
mainflux-auth-redis | 1:M 16 Aug 2021 00:51:26.402 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
mainflux-auth-redis | 1:M 16 Aug 2021 00:51:26.403 Ready to accept connections
mainflux-coap | {"level":"info","message":"gRPC communication is not encrypted","ts":"2021-08-16T00:51:32.042115237Z"}
mainflux-coap | {"level":"info","message":"CoAP adapter service started, exposed port 5683","ts":"2021-08-16T00:51:32.061480329Z"}
mainflux-coap | {"level":"info","message":"CoAP service started, exposed port 5683","ts":"2021-08-16T00:51:32.061238137Z"}
mainflux-es-redis | 1:C 16 Aug 2021 00:51:26.811 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
mainflux-es-redis | 1:C 16 Aug 2021 00:51:26.811 # Redis version=6.2.2, bits=64, commit=00000000, modified=0, pid=1, just started
mainflux-es-redis | 1:C 16 Aug 2021 00:51:26.811 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
mainflux-es-redis | 1:M 16 Aug 2021 00:51:26.813 monotonic clock: POSIX clock_gettime
mainflux-es-redis | 1:M 16 Aug 2021 00:51:26.813 Running mode=standalone, port=6379.
mainflux-es-redis | 1:M 16 Aug 2021 00:51:26.813 # Server initialized
mainflux-es-redis | 1:M 16 Aug 2021 00:51:26.813 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
mainflux-es-redis | 1:M 16 Aug 2021 00:51:26.815 * Ready to accept connections
mainflux-http | {"level":"info","message":"gRPC communication is not encrypted","ts":"2021-08-16T00:51:31.922584979Z"}
mainflux-http | {"level":"info","message":"HTTP adapter service started on port 8185","ts":"2021-08-16T00:51:31.969811667Z"}
mainflux-jaeger | 2021/08/16 00:51:27 maxprocs: Leaving GOMAXPROCS=2: CPU quota undefined
mainflux-jaeger | {"level":"info","ts":1629075087.1965857,"caller":"flags/service.go:116","msg":"Mounting metrics handler on admin server","route":"/metrics"}
mainflux-jaeger | {"level":"info","ts":1629075087.1983154,"caller":"flags/admin.go:120","msg":"Mounting health check on admin server","route":"/"}
mainflux-jaeger | {"level":"info","ts":1629075087.1992738,"caller":"flags/admin.go:126","msg":"Starting admin HTTP server","http-addr":":14269"}
mainflux-jaeger | {"level":"info","ts":1629075087.1992972,"caller":"flags/admin.go:112","msg":"Admin server started","http.host-port":"[::]:14269","health-status":"unavailable"}
mainflux-jaeger | {"level":"info","ts":1629075087.206957,"caller":"memory/factory.go:61","msg":"Memory storage initialized","configuration":{"MaxTraces":0}}
mainflux-jaeger | {"level":"info","ts":1629075087.2717173,"caller":"server/grpc.go:76","msg":"Starting jaeger-collector gRPC server","grpc.host-port":":14250"}
mainflux-jaeger | {"level":"info","ts":1629075087.2717621,"caller":"server/http.go:44","msg":"Starting jaeger-collector HTTP server","http host-port":":14268"}
mainflux-jaeger | {"level":"info","ts":1629075087.2718732,"caller":"server/zipkin.go:48","msg":"Listening for Zipkin HTTP traffic","zipkin host-port":":0"}
mainflux-jaeger | {"level":"info","ts":1629075087.352679,"caller":"grpc/builder.go:67","msg":"Agent requested insecure grpc connection to collector(s)"}
mainflux-jaeger | {"level":"info","ts":1629075087.3551996,"caller":"grpc@v1.29.1/clientconn.go:243","msg":"parsed scheme: \"\"","system":"grpc","grpc_log":true}
mainflux-jaeger | {"level":"info","ts":1629075087.3552217,"caller":"grpc@v1.29.1/clientconn.go:249","msg":"scheme \"\" not registered, fallback to default scheme","system":"grpc","grpc_log":true}
mainflux-jaeger | {"level":"info","ts":1629075087.3552701,"caller":"grpc@v1.29.1/resolver_conn_wrapper.go:143","msg":"ccResolverWrapper: sending update to cc: {[{:14250
mainflux-users-db | 2021-08-16 00:55:14.508 UTC [1] LOG: received fast shutdown request mainflux-users-db | 2021-08-16 00:55:14.513 UTC [1] LOG: aborting any active transactions mainflux-users-db | 2021-08-16 00:55:14.525 UTC [56] FATAL: terminating connection due to administrator command mainflux-users-db | 2021-08-16 00:55:14.539 UTC [1] LOG: background worker "logical replication launcher" (PID 55) exited with exit code 1 mainflux-users-db | 2021-08-16 00:55:14.542 UTC [50] LOG: shutting down mainflux-nats | [1] 2021/08/16 00:55:14.555434 [INF] Initiating Shutdown... mainflux-nats | [1] 2021/08/16 00:55:14.555682 [INF] Server Exiting.. mainflux-users-db | 2021-08-16 00:55:14.566 UTC [1] LOG: database system is shut down mainflux-auth-db | 2021-08-16 00:55:14.624 UTC [1] LOG: received fast shutdown request mainflux-auth-db | 2021-08-16 00:55:14.625 UTC [1] LOG: aborting any active transactions mainflux-auth-db | 2021-08-16 00:55:14.625 UTC [56] FATAL: terminating connection due to administrator command mainflux-auth-db | 2021-08-16 00:55:14.626 UTC [1] LOG: background worker "logical replication launcher" (PID 55) exited with exit code 1 mainflux-auth-db | 2021-08-16 00:55:14.627 UTC [50] LOG: shutting down mainflux-auth-db | 2021-08-16 00:55:14.653 UTC [1] LOG: database system is shut down mainflux-things-db | 2021-08-16 00:55:14.719 UTC [1] LOG: received fast shutdown request mainflux-things-db | 2021-08-16 00:55:14.719 UTC [1] LOG: aborting any active transactions mainflux-things-db | 2021-08-16 00:55:14.720 UTC [1] LOG: background worker "logical replication launcher" (PID 55) exited with exit code 1 mainflux-things-db | 2021-08-16 00:55:14.720 UTC [56] FATAL: terminating connection due to administrator command mainflux-things-db | 2021-08-16 00:55:14.723 UTC [50] LOG: shutting down mainflux-things-db | 2021-08-16 00:55:14.744 UTC [1] LOG: database system is shut down mainflux-auth-redis | 1:signal-handler (1629075314) Received SIGTERM scheduling shutdown... mainflux-auth-redis | 1:M 16 Aug 2021 00:55:14.847 # User requested shutdown... mainflux-auth-redis | 1:M 16 Aug 2021 00:55:14.847 Saving the final RDB snapshot before exiting. mainflux-auth-redis | 1:M 16 Aug 2021 00:55:14.848 DB saved on disk mainflux-auth-redis | 1:M 16 Aug 2021 00:55:14.848 # Redis is now ready to exit, bye bye... mainflux-users-db exited with code 0 mainflux-nats exited with code 1 mainflux-auth-redis exited with code 0 mainflux-auth-db exited with code 0 mainflux-things-db exited with code 0 mainflux-nats | [1] 2021/08/16 00:55:19.793284 [INF] Starting nats-server mainflux-nats | [1] 2021/08/16 00:55:19.793381 [INF] Version: 2.2.4 mainflux-nats | [1] 2021/08/16 00:55:19.793384 [INF] Git: [924b314] mainflux-nats | [1] 2021/08/16 00:55:19.793386 [INF] Name: NACTZMS2FHKRSKNJIUT4ROJBN34E65R6EURJHFGYUTT27PKWNRRFLHYN mainflux-nats | [1] 2021/08/16 00:55:19.793387 [INF] ID: NACTZMS2FHKRSKNJIUT4ROJBN34E65R6EURJHFGYUTT27PKWNRRFLHYN mainflux-nats | [1] 2021/08/16 00:55:19.793394 [INF] Using configuration file: /etc/nats/nats.conf mainflux-nats | [1] 2021/08/16 00:55:19.795926 [INF] Listening for client connections on 0.0.0.0:4222 mainflux-nats | [1] 2021/08/16 00:55:19.796192 [INF] Server is ready mainflux-auth-redis | 1:C 16 Aug 2021 00:55:20.296 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo mainflux-auth-redis | 1:C 16 Aug 2021 00:55:20.297 # Redis version=5.0.13, bits=64, commit=00000000, modified=0, pid=1, just started mainflux-auth-redis | 1:C 16 Aug 2021 00:55:20.297 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf mainflux-auth-redis | 1:M 16 Aug 2021 00:55:20.308 Running mode=standalone, port=6379. mainflux-auth-redis | 1:M 16 Aug 2021 00:55:20.308 # Server initialized mainflux-auth-redis | 1:M 16 Aug 2021 00:55:20.308 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. mainflux-auth-redis | 1:M 16 Aug 2021 00:55:20.308 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled. mainflux-auth-redis | 1:M 16 Aug 2021 00:55:20.308 DB loaded from disk: 0.000 seconds mainflux-auth-redis | 1:M 16 Aug 2021 00:55:20.308 * Ready to accept connections mainflux-auth-db | mainflux-auth-db | PostgreSQL Database directory appears to contain a database; Skipping initialization mainflux-auth-db | mainflux-things-db | mainflux-things-db | PostgreSQL Database directory appears to contain a database; Skipping initialization mainflux-things-db | mainflux-users-db | mainflux-users-db | PostgreSQL Database directory appears to contain a database; Skipping initialization mainflux-users-db | mainflux-users-db | 2021-08-16 00:55:27.688 UTC [1] LOG: starting PostgreSQL 13.1 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.2.1_pre1) 10.2.1 20201203, 64-bit mainflux-users-db | 2021-08-16 00:55:27.688 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 mainflux-users-db | 2021-08-16 00:55:27.688 UTC [1] LOG: listening on IPv6 address "::", port 5432 mainflux-auth-db | 2021-08-16 00:55:27.688 UTC [1] LOG: starting PostgreSQL 13.1 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.2.1_pre1) 10.2.1 20201203, 64-bit mainflux-things-db | 2021-08-16 00:55:27.688 UTC [1] LOG: starting PostgreSQL 13.1 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.2.1_pre1) 10.2.1 20201203, 64-bit mainflux-things-db | 2021-08-16 00:55:27.688 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 mainflux-things-db | 2021-08-16 00:55:27.688 UTC [1] LOG: listening on IPv6 address "::", port 5432 mainflux-things-db | 2021-08-16 00:55:27.689 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" mainflux-users-db | 2021-08-16 00:55:27.690 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" mainflux-auth-db | 2021-08-16 00:55:27.692 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 mainflux-auth-db | 2021-08-16 00:55:27.695 UTC [1] LOG: listening on IPv6 address "::", port 5432 mainflux-auth-db | 2021-08-16 00:55:27.697 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" mainflux-auth-db | 2021-08-16 00:55:27.704 UTC [20] LOG: database system was shut down at 2021-08-16 00:55:14 UTC mainflux-users-db | 2021-08-16 00:55:27.704 UTC [21] LOG: database system was shut down at 2021-08-16 00:55:14 UTC mainflux-things-db | 2021-08-16 00:55:27.704 UTC [21] LOG: database system was shut down at 2021-08-16 00:55:14 UTC mainflux-things-db | 2021-08-16 00:55:27.793 UTC [1] LOG: database system is ready to accept connections mainflux-users-db | 2021-08-16 00:55:27.793 UTC [1] LOG: database system is ready to accept connections mainflux-auth-db | 2021-08-16 00:55:27.798 UTC [1] LOG: database system is ready to accept connections mainflux-users exited with code 2 mainflux-users | {"level":"info","message":"gRPC communication is not encrypted","ts":"2021-08-16T00:55:29.652643475Z"} mainflux-users | {"level":"error","message":"Failed to configure e-mailing util: Parse e-mail template failed : read email.tmpl: is a directory","ts":"2021-08-16T00:55:29.685850208Z"} mainflux-nginx exited with code 0 mainflux-users | {"level":"info","message":"Users service started using http, exposed port 8180","ts":"2021-08-16T00:55:29.703379883Z"}
the cli log:
the ui log:
ubuntu@ubuntu:~$ cd ui/
ubuntu@ubuntu:~/ui$ make run
docker-compose -f docker/docker-compose.yml up
Creating volume "docker_mainflux-influxdb-volume" with default driver
Creating volume "docker_mainflux-bootstrap-db-volume" with default driver
Creating volume "docker_mainflux-grafana-volume" with default driver
Creating volume "docker_mainflux-opcua-adapter-volume" with default driver
Creating volume "docker_mainflux-opcua-redis-volume" with default driver
Creating volume "docker_mainflux-twins-db-volume" with default driver
Creating volume "docker_mainflux-twins-db-configdb-volume" with default driver
WARNING: Found orphan containers (mainflux-coap) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
mainflux-jaeger is up-to-date
Creating mainflux-twins-db ...
Creating mainflux-opcua-redis ...
Creating mainflux-ui ...
Creating mainflux-opcua-redis ... done
Creating mainflux-ui ... done
Creating mainflux-bootstrap-db ... done
Creating mainflux-twins-db ... done
Creating mainflux-provision ... done
Recreating mainflux-nats ... done
Recreating mainflux-auth-db ... done
Recreating mainflux-users-db ... done
Recreating mainflux-things-db ... done
Creating mainflux-influxdb ...
Creating mainflux-influxdb-reader ... done
Creating mainflux-bootstrap ...
mainflux-auth is up-to-date
Creating mainflux-influxdb ... done
mainflux-mqtt is up-to-date
Creating mainflux-bootstrap ... done
Recreating mainflux-users ... done
Creating mainflux-influxdb-writer ... done
Creating mainflux-opcua ... done
Creating mainflux-twins ... done
Creating mainflux-grafana ... done
Recreating mainflux-nginx ... done
Attaching to mainflux-jaeger, mainflux-es-redis, mainflux-vernemq, mainflux-opcua-redis, mainflux-bootstrap-db, mainflux-provision, mainflux-influxdb-reader, mainflux-ui, mainflux-auth-redis, mainflux-nats, mainflux-things-db, mainflux-auth-db, mainflux-auth, mainflux-things, mainflux-mqtt, mainflux-http, mainflux-users-db, mainflux-influxdb, mainflux-twins-db, mainflux-bootstrap, mainflux-opcua, mainflux-influxdb-writer, mainflux-twins, mainflux-users, mainflux-grafana, mainflux-nginx
mainflux-auth-db |
mainflux-auth-db | PostgreSQL Database directory appears to contain a database; Skipping initialization
mainflux-auth-db |
mainflux-auth-db | 2021-08-16 00:55:27.688 UTC [1] LOG: starting PostgreSQL 13.1 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.2.1_pre1) 10.2.1 20201203, 64-bit
mainflux-auth-db | 2021-08-16 00:55:27.692 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
mainflux-auth-db | 2021-08-16 00:55:27.695 UTC [1] LOG: listening on IPv6 address "::", port 5432
mainflux-auth-redis | 1:C 16 Aug 2021 00:55:20.296 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
mainflux-auth-redis | 1:C 16 Aug 2021 00:55:20.297 # Redis version=5.0.13, bits=64, commit=00000000, modified=0, pid=1, just started
mainflux-auth-redis | 1:C 16 Aug 2021 00:55:20.297 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
mainflux-auth-redis | 1:M 16 Aug 2021 00:55:20.308 Running mode=standalone, port=6379.
mainflux-auth-redis | 1:M 16 Aug 2021 00:55:20.308 # Server initialized
mainflux-auth-redis | 1:M 16 Aug 2021 00:55:20.308 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
mainflux-auth-redis | 1:M 16 Aug 2021 00:55:20.308 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
mainflux-auth-redis | 1:M 16 Aug 2021 00:55:20.308 DB loaded from disk: 0.000 seconds
mainflux-auth-redis | 1:M 16 Aug 2021 00:55:20.308 Ready to accept connections
mainflux-auth-db | 2021-08-16 00:55:27.697 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
mainflux-auth-db | 2021-08-16 00:55:27.704 UTC [20] LOG: database system was shut down at 2021-08-16 00:55:14 UTC
mainflux-auth-db | 2021-08-16 00:55:27.798 UTC [1] LOG: database system is ready to accept connections
mainflux-bootstrap | {"level":"info","message":"gRPC communication is not encrypted","ts":"2021-08-16T00:55:30.419289488Z"}
mainflux-bootstrap | {"level":"info","message":"Bootstrap service started using http on port 8202","ts":"2021-08-16T00:55:30.447261455Z"}
mainflux-bootstrap | {"level":"info","message":"Subscribed to Redis Event Store","ts":"2021-08-16T00:55:30.447696877Z"}
mainflux-bootstrap-db | The files belonging to this database system will be owned by user "postgres".
mainflux-bootstrap-db | This user must also own the server process.
mainflux-bootstrap-db |
mainflux-bootstrap-db | The database cluster will be initialized with locale "en_US.utf8".
mainflux-bootstrap-db | The default database encoding has accordingly been set to "UTF8".
mainflux-bootstrap-db | The default text search configuration will be set to "english".
mainflux-bootstrap-db |
mainflux-bootstrap-db | Data page checksums are disabled.
mainflux-bootstrap-db |
mainflux-bootstrap-db | fixing permissions on existing directory /var/lib/postgresql/data ... ok
mainflux-bootstrap-db | creating subdirectories ... ok
mainflux-bootstrap-db | selecting dynamic shared memory implementation ... posix
mainflux-bootstrap-db | selecting default max_connections ... 100
mainflux-bootstrap-db | selecting default shared_buffers ... 128MB
mainflux-bootstrap-db | selecting default time zone ... UTC
mainflux-bootstrap-db | creating configuration files ... ok
mainflux-bootstrap-db | running bootstrap script ... ok
mainflux-bootstrap-db | performing post-bootstrap initialization ... sh: locale: not found
mainflux-bootstrap-db | 2021-08-16 00:55:19.108 UTC [30] WARNING: no usable system locales were found
mainflux-bootstrap-db | ok
mainflux-bootstrap-db | syncing data to disk ... ok
mainflux-bootstrap-db |
mainflux-bootstrap-db |
mainflux-bootstrap-db | Success. You can now start the database server using:
mainflux-bootstrap-db |
mainflux-bootstrap-db | pg_ctl -D /var/lib/postgresql/data -l logfile start
mainflux-bootstrap-db |
mainflux-bootstrap-db | waiting for server to start....2021-08-16 00:55:20.305 UTC [35] LOG: starting PostgreSQL 13.3 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.3.1_git20210424) 10.3.1 20210424, 64-bit
mainflux-bootstrap-db | 2021-08-16 00:55:20.306 UTC [35] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
mainflux-bootstrap-db | 2021-08-16 00:55:20.309 UTC [36] LOG: database system was shut down at 2021-08-16 00:55:20 UTC
mainflux-bootstrap-db | 2021-08-16 00:55:20.311 UTC [35] LOG: database system is ready to accept connections
mainflux-bootstrap-db | done
mainflux-bootstrap-db | server started
mainflux-bootstrap-db | initdb: warning: enabling "trust" authentication for local connections
mainflux-bootstrap-db | You can change this by editing pg_hba.conf or using the option -A, or
mainflux-bootstrap-db | --auth-local and --auth-host, the next time you run initdb.
mainflux-bootstrap-db | 2021-08-16 00:55:20.643 UTC [1] LOG: starting PostgreSQL 13.3 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.3.1_git20210424) 10.3.1 20210424, 64-bit
mainflux-bootstrap-db | 2021-08-16 00:55:20.643 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
mainflux-bootstrap-db | 2021-08-16 00:55:20.643 UTC [1] LOG: listening on IPv6 address "::", port 5432
mainflux-bootstrap-db | 2021-08-16 00:55:20.644 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
mainflux-bootstrap-db | 2021-08-16 00:55:20.647 UTC [49] LOG: database system was shut down at 2021-08-16 00:55:20 UTC
mainflux-bootstrap-db | 2021-08-16 00:55:20.649 UTC [1] LOG: database system is ready to accept connections
mainflux-bootstrap-db | CREATE DATABASE
mainflux-bootstrap-db |
mainflux-bootstrap-db |
mainflux-bootstrap-db | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/
mainflux-bootstrap-db |
mainflux-bootstrap-db | waiting for server to shut down...2021-08-16 00:55:20.529 UTC [35] LOG: received fast shutdown request
mainflux-bootstrap-db | .2021-08-16 00:55:20.529 UTC [35] LOG: aborting any active transactions
mainflux-bootstrap-db | 2021-08-16 00:55:20.530 UTC [35] LOG: background worker "logical replication launcher" (PID 42) exited with exit code 1
mainflux-bootstrap-db | 2021-08-16 00:55:20.530 UTC [37] LOG: shutting down
mainflux-bootstrap-db | 2021-08-16 00:55:20.535 UTC [35] LOG: database system is shut down
mainflux-bootstrap-db | done
mainflux-bootstrap-db | server stopped
mainflux-bootstrap-db |
mainflux-bootstrap-db | PostgreSQL init process complete; ready for start up.
mainflux-bootstrap-db |
mainflux-auth | {"level":"error","message":"Failed to connect to postgres: dial tcp 172.18.0.2:5432: connect: connection refused","ts":"2021-08-16T00:51:27.788502337Z"}
mainflux-auth | {"level":"error","message":"Failed to connect to postgres: dial tcp 172.18.0.2:5432: connect: connection refused","ts":"2021-08-16T00:51:29.664403597Z"}
mainflux-auth | {"level":"error","message":"Failed to connect to postgres: dial tcp 172.18.0.2:5432: connect: connection refused","ts":"2021-08-16T00:51:33.040170456Z"}
mainflux-auth | {"level":"info","message":"Authentication gRPC service started using http on port 8181","ts":"2021-08-16T00:51:34.198223058Z"}
mainflux-auth | {"level":"info","message":"Authentication gRPC service started, exposed port 8181","ts":"2021-08-16T00:51:34.198408946Z"}
mainflux-auth | {"level":"info","message":"Authentication service started using http, exposed port 8189","ts":"2021-08-16T00:51:34.207663809Z"}
mainflux-auth | {"level":"info","message":"Method issue for the key with expiration date 2021-08-16 10:54:44.732181738 +0000 UTC took 3.960224ms to complete without errors.","ts":"2021-08-16T00:54:44.736149355Z"}
mainflux-auth | {"level":"info","message":"Method identify took 198.899µs to complete without errors.","ts":"2021-08-16T00:54:44.785756149Z"}
mainflux-auth | {"level":"info","message":"Method identify took 133.887µs to complete without errors.","ts":"2021-08-16T00:54:44.808586566Z"}
mainflux-auth | {"level":"info","message":"Method identify took 62.463µs to complete without errors.","ts":"2021-08-16T00:54:44.817670482Z"}
mainflux-auth | {"level":"info","message":"Method identify took 48.139µs to complete without errors.","ts":"2021-08-16T00:54:44.825485534Z"}
mainflux-influxdb | influxdb init process in progress...
mainflux-influxdb | ts=2021-08-16T00:55:29.570880Z lvl=info msg="InfluxDB starting" log_id=0V~78r8W000 version=1.8.5 branch=1.8 commit=3d16c6318cf5
mainflux-influxdb | ts=2021-08-16T00:55:29.570919Z lvl=info msg="Go runtime" log_id=0V~78r8W000 version=go1.13.8 maxprocs=2
mainflux-es-redis | 1:C 16 Aug 2021 00:51:26.811 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
mainflux-es-redis | 1:C 16 Aug 2021 00:51:26.811 # Redis version=6.2.2, bits=64, commit=00000000, modified=0, pid=1, just started
mainflux-es-redis | 1:C 16 Aug 2021 00:51:26.811 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
mainflux-es-redis | 1:M 16 Aug 2021 00:51:26.813 monotonic clock: POSIX clock_gettime
mainflux-es-redis | 1:M 16 Aug 2021 00:51:26.813 Running mode=standalone, port=6379.
mainflux-es-redis | 1:M 16 Aug 2021 00:51:26.813 # Server initialized
mainflux-es-redis | 1:M 16 Aug 2021 00:51:26.813 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
mainflux-es-redis | 1:M 16 Aug 2021 00:51:26.815 * Ready to accept connections
mainflux-influxdb | ts=2021-08-16T00:55:29.889540Z lvl=info msg="Using data dir" log_id=0V~78r8W000 service=store path=/var/lib/influxdb/data
mainflux-influxdb | ts=2021-08-16T00:55:29.889622Z lvl=info msg="Compaction settings" log_id=0V~78r8W000 service=store max_concurrent_compactions=1 throughput_bytes_per_second=50331648 throughput_bytes_per_second_burst=50331648
mainflux-influxdb | ts=2021-08-16T00:55:29.912481Z lvl=info msg="Open store (start)" log_id=0V~78r8W000 service=store trace_id=0V~78sU0000 op_name=tsdb_open op_event=start
mainflux-influxdb | ts=2021-08-16T00:55:29.912575Z lvl=info msg="Open store (end)" log_id=0V~78r8W000 service=store trace_id=0V~78sU0000 op_name=tsdb_open op_event=end op_elapsed=0.099ms
mainflux-influxdb | ts=2021-08-16T00:55:30.016962Z lvl=info msg="Opened service" log_id=0V~78r8W000 service=subscriber
mainflux-influxdb | ts=2021-08-16T00:55:30.017001Z lvl=info msg="Starting monitor service" log_id=0V~78r8W000 service=monitor
mainflux-influxdb | ts=2021-08-16T00:55:30.017008Z lvl=info msg="Registered diagnostics client" log_id=0V~78r8W000 service=monitor name=build
mainflux-influxdb | ts=2021-08-16T00:55:30.017011Z lvl=info msg="Registered diagnostics client" log_id=0V~78r8W000 service=monitor name=runtime
mainflux-influxdb | ts=2021-08-16T00:55:30.017013Z lvl=info msg="Registered diagnostics client" log_id=0V~78r8W000 service=monitor name=network
mainflux-influxdb | ts=2021-08-16T00:55:30.017019Z lvl=info msg="Registered diagnostics client" log_id=0V~78r8W000 service=monitor name=system
mainflux-influxdb | ts=2021-08-16T00:55:30.022784Z lvl=info msg="Starting precreation service" log_id=0V~78r8W000 service=shard-precreation check_interval=10m advance_period=30m
mainflux-influxdb | ts=2021-08-16T00:55:30.022849Z lvl=info msg="Starting snapshot service" log_id=0V~78r8W000 service=snapshot
mainflux-influxdb | ts=2021-08-16T00:55:30.023118Z lvl=info msg="Starting continuous query service" log_id=0V~78r8W000 service=continuous_querier
mainflux-influxdb-writer | {"level":"info","message":"Using SenML transformer","ts":"2021-08-16T00:55:30.015648533Z"}
mainflux-influxdb-writer | {"level":"warn","message":"Failed to load subjects: unable to open configuration file : open /config.toml: no such file or directory","ts":"2021-08-16T00:55:30.015762351Z"}
mainflux-influxdb-writer | {"level":"info","message":"InfluxDB writer service started, exposed port :8900","ts":"2021-08-16T00:55:30.015886116Z"}
mainflux-http | {"level":"info","message":"gRPC communication is not encrypted","ts":"2021-08-16T00:51:31.922584979Z"}
mainflux-http | {"level":"info","message":"HTTP adapter service started on port 8185","ts":"2021-08-16T00:51:31.969811667Z"}
mainflux-influxdb | ts=2021-08-16T00:55:30.023270Z lvl=info msg="Starting HTTP service" log_id=0V~78r8W000 service=httpd authentication=false
mainflux-influxdb | ts=2021-08-16T00:55:30.023293Z lvl=info msg="opened HTTP access log" log_id=0V~78r8W000 service=httpd path=stderr
mainflux-influxdb | ts=2021-08-16T00:55:30.023399Z lvl=info msg="Listening on HTTP" log_id=0V~78r8W000 service=httpd addr=127.0.0.1:8086 https=false
mainflux-influxdb | ts=2021-08-16T00:55:30.105702Z lvl=info msg="Starting retention policy enforcement service" log_id=0V~78r8W000 service=retention check_interval=30m
mainflux-influxdb | ts=2021-08-16T00:55:30.105836Z lvl=info msg="Listening for signals" log_id=0V~78r8W000
mainflux-influxdb | ts=2021-08-16T00:55:30.109588Z lvl=info msg="Sending usage statistics to usage.influxdata.com" log_id=0V~78r8W000
mainflux-influxdb | ts=2021-08-16T00:55:30.312762Z lvl=info msg="Storing statistics" log_id=0V~78r8W000 service=monitor db_instance=_internal db_rp=monitor interval=10s
mainflux-influxdb-reader | {"level":"info","message":"gRPC communication is not encrypted","ts":"2021-08-16T00:55:23.95173498Z"}
mainflux-influxdb-reader | {"level":"info","message":"InfluxDB reader service started, exposed port 8905","ts":"2021-08-16T00:55:24.737357677Z"}
mainflux-nats | [1] 2021/08/16 00:55:19.793284 [INF] Starting nats-server
mainflux-nats | [1] 2021/08/16 00:55:19.793381 [INF] Version: 2.2.4
mainflux-nats | [1] 2021/08/16 00:55:19.793384 [INF] Git: [924b314]
mainflux-nats | [1] 2021/08/16 00:55:19.793386 [INF] Name: NACTZMS2FHKRSKNJIUT4ROJBN34E65R6EURJHFGYUTT27PKWNRRFLHYN
mainflux-nats | [1] 2021/08/16 00:55:19.793387 [INF] ID: NACTZMS2FHKRSKNJIUT4ROJBN34E65R6EURJHFGYUTT27PKWNRRFLHYN
mainflux-nats | [1] 2021/08/16 00:55:19.793394 [INF] Using configuration file: /etc/nats/nats.conf
mainflux-nats | [1] 2021/08/16 00:55:19.795926 [INF] Listening for client connections on 0.0.0.0:4222
mainflux-nats | [1] 2021/08/16 00:55:19.796192 [INF] Server is ready
mainflux-jaeger | 2021/08/16 00:51:27 maxprocs: Leaving GOMAXPROCS=2: CPU quota undefined
mainflux-jaeger | {"level":"info","ts":1629075087.1965857,"caller":"flags/service.go:116","msg":"Mounting metrics handler on admin server","route":"/metrics"}
mainflux-jaeger | {"level":"info","ts":1629075087.1983154,"caller":"flags/admin.go:120","msg":"Mounting health check on admin server","route":"/"}
mainflux-jaeger | {"level":"info","ts":1629075087.1992738,"caller":"flags/admin.go:126","msg":"Starting admin HTTP server","http-addr":":14269"}
mainflux-jaeger | {"level":"info","ts":1629075087.1992972,"caller":"flags/admin.go:112","msg":"Admin server started","http.host-port":"[::]:14269","health-status":"unavailable"}
mainflux-jaeger | {"level":"info","ts":1629075087.206957,"caller":"memory/factory.go:61","msg":"Memory storage initialized","configuration":{"MaxTraces":0}}
mainflux-jaeger | {"level":"info","ts":1629075087.2717173,"caller":"server/grpc.go:76","msg":"Starting jaeger-collector gRPC server","grpc.host-port":":14250"}
mainflux-jaeger | {"level":"info","ts":1629075087.2717621,"caller":"server/http.go:44","msg":"Starting jaeger-collector HTTP server","http host-port":":14268"}
mainflux-jaeger | {"level":"info","ts":1629075087.2718732,"caller":"server/zipkin.go:48","msg":"Listening for Zipkin HTTP traffic","zipkin host-port":":0"}
mainflux-jaeger | {"level":"info","ts":1629075087.352679,"caller":"grpc/builder.go:67","msg":"Agent requested insecure grpc connection to collector(s)"}
mainflux-jaeger | {"level":"info","ts":1629075087.3551996,"caller":"grpc@v1.29.1/clientconn.go:243","msg":"parsed scheme: \"\"","system":"grpc","grpc_log":true}
mainflux-jaeger | {"level":"info","ts":1629075087.3552217,"caller":"grpc@v1.29.1/clientconn.go:249","msg":"scheme \"\" not registered, fallback to default scheme","system":"grpc","grpc_log":true}
mainflux-jaeger | {"level":"info","ts":1629075087.3552701,"caller":"grpc@v1.29.1/resolver_conn_wrapper.go:143","msg":"ccResolverWrapper: sending update to cc: {[{:14250
Thanks,
@iot-lorawan Try to login without port, i.e http://localhost
. The port 3000
is for internal use only. It's explained here: https://github.com/mainflux/ui#install
Hi manuio, Thanks for your kindly help, now it work well as follow your suggestion.
Best Regards,
Hi, I install and run mainflux and mainflux ui, it work ok, when i create user for login into ui web, it raise erro with error: failed to create entity : 502 Bad Gateway Could you help.
Best Regards,