frinxio / frinx-machine Goto Github PK
View Code? Open in Web Editor NEWWorkflow, Inventory & Network Control
Workflow, Inventory & Network Control
release: 1.8
os: Ubuntu 18.4
run startup.sh error info:
[INFO]: KrakenD image tag: 1.0.0
[INFO]: Uniflow swarm worker node id: t1qvyoyqfcnwsbqwwmfb2bx5z
service krakend: secret not found: frinx_krakend_tls_cert.pem
[ERROR]: Problem with starting Uniflow.
[ERROR]: If 'network frinx-machine not found!', wait a while and start Uniflow again.
check certificates file:
~/work/FRINX-machine-1.8# ls config/certificates/
frinx_krakend_tls_cert.pem frinx_krakend_tls_key.pem frinx_uniconfig_tls_cert.pem frinx_uniconfig_tls_key.pem frinx_uniconfig_X509.crt
frinx_krakend_tls_cert.pem file exist,so what's the problem
three is full log for run startup.sh
[INFO]: Docker running in swarm mode
[INFO]: Selected resource configuration: ./config/prod_settings.txt
[INFO]: Deploying Uniflow, Uniconfig and Monitoring services
[INFO]: Monitoring swarm node id: t1qvyoyqfcnwsbqwwmfb2bx5z
Updating service fm_prometheus (id: z3g0hafkgm0gikn0gmxen25xr)
image prom/prometheus:v2.29.1 could not be accessed on a registry to record
its digest. Each node will access prom/prometheus:v2.29.1 independently,
possibly leading to different nodes running different
versions of the image.
Updating service fm_grafana (id: 6hlpmp044m5fpjxqw1yy53z4e)
image grafana/grafana:8.1.2 could not be accessed on a registry to record
its digest. Each node will access grafana/grafana:8.1.2 independently,
possibly leading to different nodes running different
versions of the image.
Updating service fm_swarm-node-info (id: hgd9ponn8v8l8mps8ujvv6r3a)
image prom/node-exporter:v1.2.2 could not be accessed on a registry to record
its digest. Each node will access prom/node-exporter:v1.2.2 independently,
possibly leading to different nodes running different
versions of the image.
Updating service fm_swarm-services-info (id: 4814yzz5u21cpuhctm3ab8hki)
image google/cadvisor:v0.33.0 could not be accessed on a registry to record
its digest. Each node will access google/cadvisor:v0.33.0 independently,
possibly leading to different nodes running different
versions of the image.
Updating service fm_loki (id: m76v4ugdb6w68w4d4cg7h22go)
image grafana/loki:2.2.1 could not be accessed on a registry to record
its digest. Each node will access grafana/loki:2.2.1 independently,
possibly leading to different nodes running different
versions of the image.
[INFO]: KrakenD image tag: 1.0.0
[INFO]: Uniflow swarm worker node id: t1qvyoyqfcnwsbqwwmfb2bx5z
service krakend: secret not found: frinx_krakend_tls_cert.pem
[ERROR]: Problem with starting Uniflow.
[ERROR]: If 'network frinx-machine not found!', wait a while and start Uniflow again.
Is there a way how to use http instead of https via browser?
Hi there,
I created an install as per doc, everything seems to be working fine, all dockers are loaded and working but I can't add devices.
with the error:
"we couldn't add Device"
devices page is also not loading, can only see:
[GraphQL]
martin@xen:~/.../frinx/FRINX-machine(master)$ sudo ./install.sh -l 0e57a786f7dbd27fa77db684cf3b234d6f23ed784e52cbfb107fd4317ba2646c66f7a141b0e823946d8f9d956852c95d33dc82f945779b1c9969049e94935b2a
Submodule 'conductor' (https://github.com/FRINXio/conductor.git) registered for path 'conductor'
Submodule 'sample-topology/cli-testtool' (https://github.com/marosmars/cli-testtool.git) registered for path 'sample-topology/cli-testtool'
Cloning into '/home/martin/repos/frinx/FRINX-machine/conductor'...
Cloning into '/home/martin/repos/frinx/FRINX-machine/sample-topology/cli-testtool'...
Submodule path 'conductor': checked out '2b074358ff5864724fc169b90ec79d87a396b13c'
Submodule path 'sample-topology/cli-testtool': checked out 'de7126a6916563406d6d5e851369d387c2b2c83c'
Downloading https://services.gradle.org/distributions/gradle-4.8.1-all.zip
Exception in thread "main" java.net.SocketException: Network is unreachable (connect failed)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:400)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:243)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:225)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:402)
at java.base/java.net.Socket.connect(Socket.java:591)
at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:657)
at java.base/sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:174)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:182)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
at java.base/sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:265)
at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:372)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1181)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1075)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1581)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1509)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:245)
at org.gradle.wrapper.Download.downloadInternal(Download.java:66)
at org.gradle.wrapper.Download.download(Download.java:51)
at org.gradle.wrapper.Install$1.call(Install.java:62)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
sudo ./install.sh -l 0e57a786f7dbd27fa77db684cf3b234d6f23ed784e52cbfb107fd4317ba2646c66f7a141b0e823946d8f9d956852c95d33dc82f945779b1c9969049e94935b2a
This is output of console:
Building conductor-ui
Step 1/14 : FROM node:alpine
alpine: Pulling from library/node
4fe2ade4980c: Pull complete
36e3ebf48735: Pull complete
2542dc4892a7: Pull complete
Digest: sha256:fcab88e96877f3a592be65131ca08d613db8558fefbc3fcc988876fd3b5a447d
Status: Downloaded newer image for node:alpine
---> 5ffbcf1d9932
Step 2/14 : MAINTAINER Netflix OSS [email protected]
---> Running in aefc5d0bb032
Removing intermediate container aefc5d0bb032
---> 42288987baf6
Step 3/14 : RUN apk update && apk add autoconf automake libtool build-base libstdc++ gcc abuild binutils nasm libpng libpng-dev libjpeg-turbo libjpeg-turbo-dev python
---> Running in 449e2274a074
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
v3.8.1-1-g91d49cb572 [http://dl-cdn.alpinelinux.org/alpine/v3.8/main]
v3.8.1-1-g91d49cb572 [http://dl-cdn.alpinelinux.org/alpine/v3.8/community]
OK: 9540 distinct packages available
(1/56) Installing fakeroot (1.22-r0)
(2/56) Installing sudo (1.8.23-r2)
(3/56) Installing libcap (2.25-r1)
(4/56) Installing pax-utils (1.2.3-r0)
(5/56) Installing libressl (2.7.4-r0)
(6/56) Installing libattr (2.4.47-r7)
(7/56) Installing attr (2.4.47-r7)
(8/56) Installing tar (1.30-r0)
(9/56) Installing pkgconf (1.5.3-r0)
(10/56) Installing patch (2.7.6-r2)
(11/56) Installing lzip (1.20-r0)
(12/56) Installing ca-certificates (20171114-r3)
(13/56) Installing nghttp2-libs (1.32.0-r0)
(14/56) Installing libssh2 (1.8.0-r3)
(15/56) Installing libcurl (7.61.1-r0)
(16/56) Installing curl (7.61.1-r0)
(17/56) Installing abuild (3.2.0-r0)
Executing abuild-3.2.0-r0.pre-install
(18/56) Installing m4 (1.4.18-r1)
(19/56) Installing libbz2 (1.0.6-r6)
(20/56) Installing perl (5.26.2-r1)
(21/56) Installing autoconf (2.69-r2)
(22/56) Installing automake (1.16.1-r0)
(23/56) Installing binutils (2.30-r5)
(24/56) Installing libmagic (5.32-r0)
(25/56) Installing file (5.32-r0)
(26/56) Installing gmp (6.1.2-r1)
(27/56) Installing isl (0.18-r0)
(28/56) Installing libgomp (6.4.0-r8)
(29/56) Installing libatomic (6.4.0-r8)
(30/56) Installing mpfr3 (3.1.5-r1)
(31/56) Installing mpc1 (1.0.3-r1)
(32/56) Installing gcc (6.4.0-r8)
(33/56) Installing musl-dev (1.1.19-r10)
(34/56) Installing libc-dev (0.7.1-r0)
(35/56) Installing g++ (6.4.0-r8)
(36/56) Installing make (4.2.1-r2)
(37/56) Installing fortify-headers (0.9-r0)
(38/56) Installing build-base (0.5-r1)
(39/56) Installing libjpeg-turbo (1.5.3-r1)
(40/56) Installing libjpeg-turbo-dev (1.5.3-r1)
(41/56) Installing libpng (1.6.34-r1)
(42/56) Installing zlib-dev (1.2.11-r1)
(43/56) Installing libpng-dev (1.6.34-r1)
(44/56) Installing ncurses-terminfo-base (6.1_p20180818-r1)
(45/56) Installing ncurses-terminfo (6.1_p20180818-r1)
(46/56) Installing ncurses-libs (6.1_p20180818-r1)
(47/56) Installing readline (7.0.003-r0)
(48/56) Installing bash (4.4.19-r1)
Executing bash-4.4.19-r1.post-install
(49/56) Installing libltdl (2.4.6-r5)
(50/56) Installing libtool (2.4.6-r5)
(51/56) Installing nasm (2.13.03-r0)
(52/56) Installing expat (2.2.5-r0)
(53/56) Installing libffi (3.2.1-r4)
(54/56) Installing gdbm (1.13-r1)
(55/56) Installing sqlite-libs (3.24.0-r0)
(56/56) Installing python2 (2.7.15-r1)
Executing busybox-1.28.4-r1.trigger
Executing ca-certificates-20171114-r3.trigger
OK: 266 MiB in 71 packages
Removing intermediate container 449e2274a074
---> 17de01f55a9a
Step 4/14 : RUN mkdir -p /app/ui
---> Running in 789187950dc8
Removing intermediate container 789187950dc8
---> f5e7bab180ee
Step 5/14 : COPY ./ui/package.json /app/ui
---> bfb191be4b02
Step 6/14 : COPY ./ui/package-lock.json /app/ui
---> a745db2051ec
Step 7/14 : RUN cd app/ui && npm install
---> Running in 17bef7c1f6df
npm WARN deprecated [email protected]: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://npm.community
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-09-17T13_23_24_917Z-debug.log
ERROR: Service 'conductor-ui' failed to build: The command '/bin/sh -c cd app/ui && npm install' returned a non-zero code: 1
If you have new commits in conductor and would like to update the sub repository HEAD in FRINX Machine follow these steps:
in the FRINX Machine base directory enter:
git status
git add conductor/
git commit -m "Update conductor HEAD"
git push origin master
The following Elasticsearch search and delete APIs can be used to find a suitable range of entries to delete. Use the Kibana DevTools console to execute the following commands:
Search:
POST /conductor/_search
{
"query": {
"bool": {
"filter": {
"range": {
"startTime": {
"gte": "2019-04-25T06:00:00.000Z",
"lte": "2019-04-26T11:00:00.000Z"
}
}
}
}
}
}
and delete (BE CAREFUL - ALL DATA THAT MATCHES THIS RANGE WILL BE LOST):
POST /conductor/_delete_by_query
{
"query": {
"bool": {
"filter": {
"range": {
"startTime": {
"gte": "2019-04-26T06:00:00.000Z",
"lte": "2019-04-26T11:00:00.000Z"
}
}
}
}
}
}
Hello,
I am really interested in your solution but I have difficulties in finding the repository hosting the Uniflow interface solution, presented here: https://docs.frinx.io/frinx-uniflow/workflow-builder/workflow-builder.html
I suppose it should have been found at https://github.com/FRINXio/fm-workflows but the link is not working.
Can you please provide a valid link?
Thank you!
Andra
mounting a device with uniconfig native with a blacklist does not work from the UI. I tried the following formats in the text box and both did not work. I tried to mount with postman and i worked.
openconfig-interfaces:interfaces,ietf-interfaces:interfaces,openconfig-vlan:vlans,openconfig-routing-policy:routing-policy
"openconfig-interfaces:interfaces","ietf-interfaces:interfaces","openconfig-vlan:vlans","openconfig-routing-policy:routing-policy"
Clean ubuntu 20.04 install. Single node. Docker networking configuration is incorrect. Some of services is always restarting and never came up. Logs gives error "no route to host" on database connection.
`302174873fc2 frinx/frinx-inventory-server:1.0.0 "/run_inventory.sh" 11 seconds ago Up 5 seconds (health: starting) 8000/tcp fm_inventory.1.tvacdjh7ju7brk3553iiww4ol
538c10210286 frinx/uniflow-conductor-server:1.0.1 "/bin/sh /app/startu…" 21 seconds ago Up 14 seconds (health: starting) 8080/tcp, 8090/tcp fm_conductor-server.1.f8bdj733txmrumnhnjrq5wuzn
f482dd74ed6c frinx/workflow-proxy:1.0.5 "docker-entrypoint.s…" 31 seconds ago Up 25 seconds (health: starting) 80/tcp, 8088/tcp fm_workflow-proxy.1.ix9d4y3h99uc2yobq0cwi6la5
91811dfe2e62 frinx/uniconfig:4.2.8 "/opt/uniconfig-frin…" 3 minutes ago Up 3 minutes (health: starting) 8181/tcp, 8185/tcp fm_uniconfig-controller.1.r335f25w8ij9aebu7m0a3eq03
`
Hi All,
I am trying to install FM on a bare minimal ubuntu 18.04 server all up to date and I get an error
[INFO]: Installing docker-ce
OK
./install.sh: line 76: add-apt-repository: command not found
I think I need to add a repo? any assitance greatly recieved
Python print does not provide enough granularity and therefore stdout is vorbose.
Replace print with python3 logging, especially in the wrapper which handles all workers' communication:
https://github.com/FRINXio/FRINX-machine/blob/master/microservices/netinfra_utils/workers/worker_wrapper.py
It should be possible to change logger log levels for stdout during a runtime.
After updating to the latest version (git pull) and after re-installing (./install.sh) we still launch the old version of the conductor-ui. To update the docker image to the latest version, go to the conductor folder in your FRINX-machine repository and type
sudo docker-compose build conductor-ui
This will update the conductor image to the most recent version that is available in your FRINX -machine repository.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.