Skip to content

Instantly share code, notes, and snippets.

@takurx
Created February 12, 2024 21:14
Show Gist options
  • Save takurx/68b8d61097d2af7e8fe7d50eeb705855 to your computer and use it in GitHub Desktop.
Save takurx/68b8d61097d2af7e8fe7d50eeb705855 to your computer and use it in GitHub Desktop.
test tutorials.NGSI-LD/tutorials.Understanding-At-Context

Log

chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822$ git clone https://github.com/FIWARE/tutorials.NGSI-LD.git
Cloning into 'tutorials.NGSI-LD'...
remote: Enumerating objects: 2824, done.
remote: Counting objects: 100% (226/226), done.
remote: Compressing objects: 100% (137/137), done.
remote: Total 2824 (delta 157), reused 123 (delta 89), pack-reused 2598
Receiving objects: 100% (2824/2824), 2.77 MiB | 9.17 MiB/s, done.
Resolving deltas: 100% (1878/1878), done.
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822$ cd tutorials.NGSI-LD/
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD$ git submodule update --init --recursive
Submodule 'tutorials.Big-Data-Flink' (https://github.com/FIWARE/tutorials.Big-Data-Flink) registered for path 'tutorials.Big-Data-Flink'
Submodule 'tutorials.Big-Data-Spark' (https://github.com/FIWARE/tutorials.Big-Data-Spark) registered for path 'tutorials.Big-Data-Spark'
Submodule 'tutorials.CRUD-Operations' (https://github.com/FIWARE/tutorials.CRUD-Operations) registered for path 'tutorials.CRUD-Operations'
Submodule 'tutorials.Concise-Format' (https://github.com/FIWARE/tutorials.Concise-Format.git) registered for path 'tutorials.Concise-Format'
Submodule 'tutorials.Edge-Computing' (https://github.com/FIWARE/tutorials.Edge-Computing) registered for path 'tutorials.Edge-Computing'
Submodule 'tutorials.Entity-Relationships' (https://github.com/FIWARE/tutorials.Entity-Relationships) registered for path 'tutorials.Entity-Relationships'
Submodule 'tutorials.Extended-Properties' (https://github.com/FIWARE/tutorials.Extended-Properties) registered for path 'tutorials.Extended-Properties'
Submodule 'tutorials.Getting-Started' (https://github.com/FIWARE/tutorials.Getting-Started) registered for path 'tutorials.Getting-Started'
Submodule 'tutorials.Identity-Management' (https://github.com/FIWARE/tutorials.Identity-Management.git) registered for path 'tutorials.Identity-Management'
Submodule 'tutorials.IoT-Agent' (https://github.com/FIWARE/tutorials.IoT-Agent) registered for path 'tutorials.IoT-Agent'
Submodule 'tutorials.IoT-Agent-JSON' (https://github.com/FIWARE/tutorials.IoT-Agent-JSON.git) registered for path 'tutorials.IoT-Agent-JSON'
Submodule 'tutorials.IoT-Sensors' (https://github.com/FIWARE/tutorials.IoT-Sensors.git) registered for path 'tutorials.IoT-Sensors'
Submodule 'tutorials.Merge-Patch-Put' (https://github.com/FIWARE/tutorials.Merge-Patch-Put) registered for path 'tutorials.Merge-Patch-Put'
Submodule 'tutorials.Roles-Permissions' (https://github.com/FIWARE/tutorials.Roles-Permissions.git) registered for path 'tutorials.Roles-Permissions'
Submodule 'tutorials.Short-Term-History' (https://github.com/FIWARE/tutorials.Short-Term-History) registered for path 'tutorials.Short-Term-History'
Submodule 'tutorials.Subscriptions' (https://github.com/FIWARE/tutorials.Subscriptions) registered for path 'tutorials.Subscriptions'
Submodule 'tutorials.Time-Series-Data' (https://github.com/FIWARE/tutorials.Time-Series-Data) registered for path 'tutorials.Time-Series-Data'
Submodule 'tutorials.Understanding-At-Context' (https://github.com/FIWARE/tutorials.Understanding-At-Context) registered for path 'tutorials.Understanding-At-Context'
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Big-Data-Flink'...
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Big-Data-Spark'...
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.CRUD-Operations'...
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Concise-Format'...
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Edge-Computing'...
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Entity-Relationships'...
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Extended-Properties'...
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Getting-Started'...
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Identity-Management'...
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.IoT-Agent'...
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.IoT-Agent-JSON'...
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.IoT-Sensors'...
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Merge-Patch-Put'...
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Roles-Permissions'...
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Short-Term-History'...
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Subscriptions'...
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Time-Series-Data'...
Cloning into '/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Understanding-At-Context'...
Submodule path 'tutorials.Big-Data-Flink': checked out 'e23ceda09da09619f42664a06e53a61a310ee4f0'
Submodule path 'tutorials.Big-Data-Spark': checked out '1c102929401dedda53748699b0fdf7ccc51352c3'
Submodule path 'tutorials.CRUD-Operations': checked out '670146e850c089368dcab2e0a83d78a2149ba92b'
Submodule path 'tutorials.Concise-Format': checked out 'c1595fdb02dee7db0fe3baa6abc8738d910234bb'
Submodule path 'tutorials.Edge-Computing': checked out '89c4d39f6fdbdf40aa2e7a7dca6fecdb0f537521'
Submodule path 'tutorials.Entity-Relationships': checked out '7d0d9585c0ccc2c7ef50f07a8a23b84035de5f25'
Submodule path 'tutorials.Extended-Properties': checked out '03292b060f995561d74f269c2e05d41236788416'
Submodule path 'tutorials.Getting-Started': checked out '4f38561d7e5448401af825478c38dd8fefefe5b3'
Submodule path 'tutorials.Identity-Management': checked out 'b6604848e3c188e89a2298d1b7c0c336f2477615'
Submodule path 'tutorials.IoT-Agent': checked out '9bde79cd879f8b74b661a6bf2c927cda4f6260a1'
Submodule path 'tutorials.IoT-Agent-JSON': checked out '4e3a44b7d0d9b024978b426e3048d08b4e700a1b'
Submodule path 'tutorials.IoT-Sensors': checked out 'ee8b0be668807a54f1c4302774c20eb011effafb'
Submodule path 'tutorials.Merge-Patch-Put': checked out '153e0be37eaa7739eee706ccb969b5c6f5446670'
Submodule path 'tutorials.Roles-Permissions': checked out '416e35f5a86eafd8dc183e127caeb935d7f63d4f'
Submodule path 'tutorials.Short-Term-History': checked out 'f25adf47769cb2dd6339fd09a65f89741afaf74c'
Submodule path 'tutorials.Subscriptions': checked out 'd00187cfe3d70d348db2202bd29d1dc1f7eb8b49'
Submodule path 'tutorials.Time-Series-Data': checked out '0366955a9c7e480fb3b9e781a66cd4cc966472ef'
Submodule path 'tutorials.Understanding-At-Context': checked out '41174384069dabecb38775a93deacf640de56d4a'
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD$ docker-compose -v

Command 'docker-compose' not found, but can be installed with:

sudo snap install docker          # version 24.0.5, or
sudo apt  install docker-compose  # version 1.25.0-1

See 'snap info docker' for additional versions.

chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD$ docker version
Client: Docker Engine - Community
 Version:           24.0.6
 API version:       1.43
 Go version:        go1.20.7
 Git commit:        ed223bc
 Built:             Mon Sep  4 12:32:12 2023
 OS/Arch:           linux/amd64
 Context:           default
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/version": dial unix /var/run/docker.sock: connect: permission denied
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD$ sudo docker version
[sudo] password for chino: 
Client: Docker Engine - Community
 Version:           24.0.6
 API version:       1.43
 Go version:        go1.20.7
 Git commit:        ed223bc
 Built:             Mon Sep  4 12:32:12 2023
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          24.0.6
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.7
  Git commit:       1a79695
  Built:            Mon Sep  4 12:32:12 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.22
  GitCommit:        8165feabfdfe38c65b599c4993d227328c231fca
 runc:
  Version:          1.1.8
  GitCommit:        v1.1.8-0-g82f18fe
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD$ sudo ./service start legacy
sudo: ./service: command not found
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD$ sudo ./services start legacy
sudo: ./services: command not found
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD$ ls
app              LICENSE       README.md                 tutorials.CRUD-Operations       tutorials.Getting-Started      tutorials.IoT-Sensors         tutorials.Subscriptions
CONTRIBUTING.md  mkdocs.yml    tutorials.Big-Data-Flink  tutorials.Edge-Computing        tutorials.Identity-Management  tutorials.Merge-Patch-Put     tutorials.Time-Series-Data
docker           NOTICES.txt   tutorials.Big-Data-Spark  tutorials.Entity-Relationships  tutorials.IoT-Agent            tutorials.Roles-Permissions   tutorials.Understanding-At-Context
docs             package.json  tutorials.Concise-Format  tutorials.Extended-Properties   tutorials.IoT-Agent-JSON       tutorials.Short-Term-History
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD$ cd tutorials.Understanding-At-Context/
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Understanding-At-Context$ sudo ./services start legacy
cat: .env: No such file or directory
declare -x COLORTERM="truecolor"
declare -x DISPLAY=":0"
declare -x HOME="/root"
declare -x LANG="en_US.UTF-8"
declare -x LC_ADDRESS="ja_JP.UTF-8"
declare -x LC_IDENTIFICATION="ja_JP.UTF-8"
declare -x LC_MEASUREMENT="ja_JP.UTF-8"
declare -x LC_MONETARY="ja_JP.UTF-8"
declare -x LC_NAME="ja_JP.UTF-8"
declare -x LC_NUMERIC="ja_JP.UTF-8"
declare -x LC_PAPER="ja_JP.UTF-8"
declare -x LC_TELEPHONE="ja_JP.UTF-8"
declare -x LC_TIME="ja_JP.UTF-8"
declare -x LOGNAME="root"
declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:"
declare -x MAIL="/var/mail/root"
declare -x OLDPWD
declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
declare -x PWD="/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Understanding-At-Context"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SUDO_COMMAND="./services start legacy"
declare -x SUDO_GID="1000"
declare -x SUDO_UID="1000"
declare -x SUDO_USER="chino"
declare -x TERM="xterm-256color"
declare -x USER="root"
declare -x XAUTHORITY="/run/user/1000/gdm/Xauthority"
Creating a NGSI-LD @context file for normalized interactions
Unable to find image 'contextgen:latest' locally
docker: Error response from daemon: pull access denied for contextgen, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Understanding-At-Context$ git checkout NGSI-LD
Branch 'NGSI-LD' set up to track remote branch 'NGSI-LD' from 'origin'.
Switched to a new branch 'NGSI-LD'
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Understanding-At-Context$ sudo ./services create
cat: .env: No such file or directory
declare -x COLORTERM="truecolor"
declare -x DISPLAY=":0"
declare -x HOME="/root"
declare -x LANG="en_US.UTF-8"
declare -x LC_ADDRESS="ja_JP.UTF-8"
declare -x LC_IDENTIFICATION="ja_JP.UTF-8"
declare -x LC_MEASUREMENT="ja_JP.UTF-8"
declare -x LC_MONETARY="ja_JP.UTF-8"
declare -x LC_NAME="ja_JP.UTF-8"
declare -x LC_NUMERIC="ja_JP.UTF-8"
declare -x LC_PAPER="ja_JP.UTF-8"
declare -x LC_TELEPHONE="ja_JP.UTF-8"
declare -x LC_TIME="ja_JP.UTF-8"
declare -x LOGNAME="root"
declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:"
declare -x MAIL="/var/mail/root"
declare -x OLDPWD
declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
declare -x PWD="/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Understanding-At-Context"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SUDO_COMMAND="./services create"
declare -x SUDO_GID="1000"
declare -x SUDO_UID="1000"
declare -x SUDO_USER="chino"
declare -x TERM="xterm-256color"
declare -x USER="root"
declare -x XAUTHORITY="/run/user/1000/gdm/Xauthority"
cat: .env: No such file or directory
declare -x COLORTERM="truecolor"
declare -x DISPLAY=":0"
declare -x HOME="/root"
declare -x LANG="en_US.UTF-8"
declare -x LC_ADDRESS="ja_JP.UTF-8"
declare -x LC_IDENTIFICATION="ja_JP.UTF-8"
declare -x LC_MEASUREMENT="ja_JP.UTF-8"
declare -x LC_MONETARY="ja_JP.UTF-8"
declare -x LC_NAME="ja_JP.UTF-8"
declare -x LC_NUMERIC="ja_JP.UTF-8"
declare -x LC_PAPER="ja_JP.UTF-8"
declare -x LC_TELEPHONE="ja_JP.UTF-8"
declare -x LC_TIME="ja_JP.UTF-8"
declare -x LOGNAME="root"
declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:"
declare -x MAIL="/var/mail/root"
declare -x OLDPWD
declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
declare -x PWD="/home/chino/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Understanding-At-Context"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SUDO_COMMAND="./services create"
declare -x SUDO_GID="1000"
declare -x SUDO_UID="1000"
declare -x SUDO_USER="chino"
declare -x TERM="xterm-256color"
declare -x USER="root"
declare -x XAUTHORITY="/run/user/1000/gdm/Xauthority"
[+] Building 15.4s (9/9) FINISHED                                                                                                                                              docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                     0.0s
 => => transferring dockerfile: 313B                                                                                                                                                     0.0s
 => [internal] load .dockerignore                                                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                                                          0.0s
 => [internal] load metadata for docker.io/library/node:14-slim                                                                                                                          2.8s
 => [internal] load build context                                                                                                                                                        0.0s
 => => transferring context: 18.53kB                                                                                                                                                     0.0s
 => [1/4] FROM docker.io/library/node:14-slim@sha256:198142146b4c47193348f6415da769bdb5035c16fcab051c38c256a6b48f2e1c                                                                    6.2s
 => => resolve docker.io/library/node:14-slim@sha256:198142146b4c47193348f6415da769bdb5035c16fcab051c38c256a6b48f2e1c                                                                    0.0s
 => => sha256:c119feee8fd11f7f14346ddfc39f1bda0fdde79641ff2002396877f076c1f0e6 4.18kB / 4.18kB                                                                                           0.6s
 => => sha256:15962820dcf7c690d5b2bf553860dd72b0bdc1daa31bc7902565c0622a9577e4 35.71MB / 35.71MB                                                                                         5.3s
 => => sha256:198142146b4c47193348f6415da769bdb5035c16fcab051c38c256a6b48f2e1c 776B / 776B                                                                                               0.0s
 => => sha256:21b6dc452bd2c066724bd5be0f7256ef81a068c47de1adead10a2f810557de02 1.37kB / 1.37kB                                                                                           0.0s
 => => sha256:7671819c5461e04ada006f5024cc361becdfacd7af58676bcb7c59ca2b491249 6.80kB / 6.80kB                                                                                           0.0s
 => => sha256:9fbefa3370776b7ec7633cf07efc14cc24e0c0cd53893ad0e7e3f44ffdc1bedb 27.14MB / 27.14MB                                                                                         2.9s
 => => sha256:ab0d54d5015389c3f00a6ed39f6de98ac7edfb760006f045cdb9dc4564ac790a 2.75MB / 2.75MB                                                                                           2.6s
 => => sha256:41d0a18da0bb2ade8a4bb6f82e00982142a75eb2cdd0da6b8aab68bc72076aaf 452B / 452B                                                                                               2.9s
 => => extracting sha256:9fbefa3370776b7ec7633cf07efc14cc24e0c0cd53893ad0e7e3f44ffdc1bedb                                                                                                0.5s
 => => extracting sha256:c119feee8fd11f7f14346ddfc39f1bda0fdde79641ff2002396877f076c1f0e6                                                                                                0.0s
 => => extracting sha256:15962820dcf7c690d5b2bf553860dd72b0bdc1daa31bc7902565c0622a9577e4                                                                                                0.8s
 => => extracting sha256:ab0d54d5015389c3f00a6ed39f6de98ac7edfb760006f045cdb9dc4564ac790a                                                                                                0.0s
 => => extracting sha256:41d0a18da0bb2ade8a4bb6f82e00982142a75eb2cdd0da6b8aab68bc72076aaf                                                                                                0.0s
 => [2/4] COPY . /usr/src/app                                                                                                                                                            0.1s
 => [3/4] WORKDIR /usr/src/app                                                                                                                                                           0.0s
 => [4/4] RUN npm install --production &&     rm -rf /root/.npm/cache/* &&    chmod +x entrypoint.sh                                                                                     6.0s
 => exporting to image                                                                                                                                                                   0.1s
 => => exporting layers                                                                                                                                                                  0.1s
 => => writing image sha256:23c63d1568125e0990ac04b631e43465c9194c2de23f4ef128fbd657fe5ed5e0                                                                                             0.0s
 => => naming to docker.io/library/contextgen                                                                                                                                            0.0s
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Understanding-At-Context$ ./services jsonld test_create.json
Creating a JSON-LD @context file for key-values interactions
docker: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create": dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Understanding-At-Context$ sudo ./services jsonld test_create.json
Creating a JSON-LD @context file for key-values interactions
Cannot dereference file. The file is invalid. Error opening file "/files/test_create.json" 
ENOENT: no such file or directory, open '/files/test_create.json'
(node:1) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'components' of undefined
    at Object.getContext (/usr/src/app/bin/jsonld.js:73:19)
    at Object.jsonld (/usr/src/app/bin/swagger.js:60:35)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5)
(node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
datamodels.context.jsonld created
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Understanding-At-Context$ nano test_create.json
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Understanding-At-Context$ ls
agriculture.yaml  baseline.yaml  context-file-generator  datamodels.context.jsonld  datamodels.context-ngsi.jsonld  LICENSE  README.ja.md  README.md  services  supermarket.yaml
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Understanding-At-Context$ nano datamodels.context.jsonld 
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Understanding-At-Context$ nano datamodels.context-ngsi.jsonld 
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Understanding-At-Context$ nano baseline.yaml 
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/tutorials.NGSI-LD/tutorials.Understanding-At-Context$ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment