Why can't I see the deployed model in CVAT UI but see it in Nuclei Dashboard? - serverless

I have deployed CVAT (Server version: 2.2, Core version: 5.0.1, Canvas version: 2.13.2, UI version: 1.37.0) and Nuclio (with CLI version : 1.5.16, Git commit: ae43a6a560c2bec42d7ccfdf6e8e11a1e3cc3774, OS: darwin, Arch: amd64, Go version: go1.14.3) on a Mac.
Everything runs quite well but the serverless function (deployed from terminal).
I see the model deployed on the Nuclio Dashboard but I don't see this function on the Models page of CVAT.
I had been following https://openvinotoolkit.github.io/cvat/docs/manual/advanced/serverless-tutorial/ to deploy. In addition to the commands in this tutorial, I have to add the argument "--platform local". For example, nuctl get functions --platform local else it would yell me with some error.
Lastly, when I deployed the function "SIamMask" I added a port number to the "triggers" section of the Function.yaml like such:
triggers:
myHttpTrigger:
maxWorkers: 1
kind: 'http'
workerAvailabilityTimeoutMilliseconds: 10000
attributes:
port: 32003
maxRequestBodySize: 33554432 # 32MB
Any thoughts?

Related

Serverless Version Upgrade Name resolution errors

I was trying to update the serverless version for my project from 2.72 to 3.x. Hence I started working on the resolution of the deprecations warnings. All are gone except of the following.
Cannot resolve variable at "resources.Resources.ApiGatewayAcessLogsSubscriptionFilter.Properties.DestinationArn": String value consist of variable which resolve with non-string value
The variable inside the serverless.yml is referenced as follow
{self:custom.localEnvironment.logs-destination.${self:provider.region}}
The custom section of the serverless.yml is defined as follow:
custom:
localEnvironment:
logs-destination:
region-x: "**** destination log group"
Environment Information
Your Environment Information ---------------------------
Operating System: darwin
Node Version: 14.20.0
Framework Version: 2.72.3 (local)
Plugin Version: 5.5.4
SDK Version: 4.3.2
Components Version: 3.18.2
Note env says version is 2.72.3 but to enforce the new name resolver I am using the following in the file
variablesResolutionMode: 20210326
I looked for various resources on the serverless forums, didn't find something which match exactly with my situation. Though I have found the following un-answered question
https://forum.serverless.com/t/variables-resolution-errored/16999
P.S. New to the community please feel free to edit the question.

NodeMCU http server stopped working

I was successful at running nodemcu-httpserver by Marcos Kirsch on ESP02.
Now I've got a new ESP12e.
I have flushed the same nodemcu and uploaded the same files, same program to it.
But when I run it and call the server, nothing happens. Nothing, like it was not there, yet the device still operates. It can list files, for instance.
Any reason why? Any way to diagnose that?
My current version of firmware is:
NodeMCU custom build by frightanic.com
branch: master
commit: b580bfe79e6e73020c2bd7cd92a6afe01a8bc867
SSL: false
modules: adc,enduser_setup,file,gpio,http,net,node,pwm,spi,tmr,tsl2561,uart,wifi,ws2801
build built on: 2016-07-09 10:38
powered by Lua 5.1.4 on SDK 1.5.1(e67da894)
> = wifi.sta.getip()
192.168.8.104 255.255.255.0 192.168.8.1
> start_httpserver()
nodemcu-httpserver running at http://192.168.8.104:80

Worker package disfunction when importing postgresql package

I'm trying to use the Worker package and the PostgreSQL package.
I'm not sure why but if I run the example in
https://diegorochablog.wordpress.com/2014/02/18/worker-dart-concurrent-programming-does-not-have-to-be-hard/
After changing nothing but adding an import statement: import 'package:postgresql/postgresql.dart';, The example stops working (the task's execute is not called).
Dart VM version: 1.17.0-dev.4.1 (Thu May 19 11:21:39 2016) on "macos_x64".
pubspec.yaml
name: fibFuturesConcu
version: 0.0.1
description: A simple console application.
dependencies:
worker: any
Update
Apparently it does not happen with the stable version of Dart (1.16.0).
The problem is gone when using Dart Stable 1.16.

travis-ci: matrix.exclude ignored?

i'm setting up travis-ci form my C++-project, and want to have three different jobs per build:
linux (native=64bit)
osx/64bit (native)
osx/32bit
to achieve this, i've configure travis to build on linux and osx, and created an evironment-variable ARCH that is set either to a specific architecture (e.g. i386) or empty (for native builds)
here's my .travis.yml:
language: cpp
env:
matrix:
- ARCH=
- ARCH=i386
global:
- secure: ...
os:
- linux
- osx
matrix:
exclude:
- os: linux
before_install:
- ./travis-ci/install-dependencies.sh
script:
- ./travis-ci/build.sh
the script- and before_install-scripts are setup to honour the ARCH envvar.
now for reasons unknown to me, when i push to github, the build-matrix includes:
OS:linux, env:ARCH=
OS:linux, env:ARCH=i386
and indeed, i get two jobs for linux.
so it seems that my exclude statement is ignored.
any hints what i should do to not build linux/ARCH=i386?
So it seems that the problem was, that my particular project had not had OSX support enabled yet (currently this needs to be done manually).
Thus the os axis of the matrix did not really exist.
Once the osx builds were enabled (and therefore the os axis was established properly), the exclude statement started to work as expected.

Using Jenkins' Testlink plugin

Hi i'm trying to implement testlink plugin in jenkins.
I followed this tutorial http://tupilabs.com/books/jenkins-testlink-plugin-tutorial/en/book.pdf
I can build the project but the test isn't run.
there is a file not found error
I don't understand where i have to put my testfile. I supposed the output format must be TestNG, but where i have to put it ?
Thanks for your answer
I had exactly the same problem with building project, when I was following through tutorial placed in book Jenkins:The Definitive Guide.
I had Jenkis (jenkins-1.502.msi) instaled on Windows7 64 as a service - whatever I tried always received:
[workspace] $ mvn.bat
The system cannot find the file specified
FATAL: command execution failed
java.io.IOException: Cannot run program "mvn.bat" (in directory "C:\Work\jenkins\jobs\gameoflifedefault\workspace"): CreateProcess error=2, The system cannot find the file specified
Unfortunately I didn't managed to resolve this jenkis service problem but found another solution to make it work on Windows:
Use Apache Tomcat java server - if you have properly configured Tomcat do:
Download jenkins.war
Place it in webapps folder in your Tomcat directory
Run Tomcat and check via http://localhost:8080/manager if jenkins is there
Go to http://localhost:8080/jenkins
Now mvn.bat is seen and my build run without problems.
Ofcourse I understand that maven is properly configured on your system - so you should had specified in environmental variables:
variable: M2
value: %M2_HOME%\bin
variable: M2_HOME
value: C:\yourPathToMaven\apache-maven-3.0.4
variable: PATH
add to existing value: %M2_HOME%;
To check if maven is visible type in comand promp:
C:\Users\x>mvn --version
You should get something like:
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: C:\Work\Maven\apache-maven-3.0.4
Java version: 1.7.0, vendor: Oracle Corporation
Java home: C:\Work\ja\jdk1.7.0_10\jre
Default locale: en_US, platform encoding: Cp1250
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
Hope it helps.
Update : I found that the error was :
Cannot run program mvn.bat in directory d:/jenkins/jobs/JobTest/workspace CreateProcess error=2 File not found.
I made a free style project as said in the tutorial. It seems to be a maven error so i don't understand ...
If somebody can help me i'd be gratefull

Resources