Waiting for missing types to be registered: - embedded-linux

I'm trying to run node-red on a Moxa UC8112, which has no graphics whatsoever and run completely through SSH command line.
I have tried to register and fix the node_modules with "npm install request" and "npm audit fix", but still receive the "Waiting for missing types to be registered:" error.
My command prompt is as follows:
moxa#Moxa:~/.node-red$
moxa#Moxa:~/.node-red$ npm install request
+ request#2.88.0
updated 1 package and audited 387 packages in 85.818s
found 0 vulnerabilities
moxa#Moxa:~/.node-red$ npm audit fix
up to date in 48.031s
fixed 0 of 0 vulnerabilities in 387 scanned packages
moxa#Moxa:~/.node-red$ node-red
31 Jan 11:47:40 - [info]
Welcome to Node-RED
===================
31 Jan 11:47:40 - [info] Node-RED version: v0.19.5
31 Jan 11:47:40 - [info] Node.js version: v6.14.0
31 Jan 11:47:40 - [info] Linux 4.1.0-ltsi-rt-uc8100-me+ arm LE
31 Jan 11:47:45 - [info] Loading palette nodes
31 Jan 11:47:50 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
31 Jan 11:47:50 - [warn] rpi-gpio : Cannot find Pi RPi.GPIO python library
31 Jan 11:48:02 - [info] Settings file : /home/moxa/.node-red/settings.js
31 Jan 11:48:02 - [info] Context store : 'default' [module=memory]
31 Jan 11:48:02 - [info] User directory : /home/moxa/.node-red
31 Jan 11:48:02 - [warn] Projects disabled :
editorTheme.projects.enabled=false
31 Jan 11:48:02 - [info] Flows file : /home/moxa/.node- red/flows_Moxa.json
31 Jan 11:48:02 - [info] Server now running at http://127.0.0.1:1880/
31 Jan 11:48:02 - [warn]
---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------
31 Jan 11:48:02 - [info] Waiting for missing types to be registered:
31 Jan 11:48:02 - [info] - twilioConfig
31 Jan 11:48:02 - [info] - modbustcp-server
31 Jan 11:48:02 - [info] - twilio-api
31 Jan 11:48:02 - [info] - modbus-client
31 Jan 11:48:02 - [info] - amazon config
31 Jan 11:48:02 - [info] - sms
31 Jan 11:48:02 - [info] - modbus-getter
I expect it to be an issue possibly with how I installed the node_modules? Even though I made sure to "npm install " in the .node-red directory.

In order to move a flow from one instance of Node-RED to another you need to ensure that all the nodes used are installed on the target system.
You can either install them via the manage pallet option in the menu or with npm on the command line.
The easiest way is probably to copy the package.json file from the .node-red directory on the source system to the . node-red directory on the target and then run npm install while in the same directory.

Related

Maven Spark Source Code Build Fails in Ubuntu 20.04

I am trying to build Spark 3.1.1 source code using mvn build as below:
./build/mvn -DskipTests clean package
However build fails without giving any proper error as below
killed 13456 "${MVN_BIN}" -DzincPort=${ZINC_PORT} "$#"
Any help is much appreciated.
My environment is as below:
OS: Ubuntu 20.04
Java : Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=1G; support was removed in 8.0
java version "1.8.0_271"
Java(TM) SE Runtime Environment (build 1.8.0_271-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)
spark Version : Spark 3.1.1
I encountered the same problem. After investigation, it was confirmed that the Linux oom-killer killed the process and the reason was insufficient memory.
Maven Log:
[INFO] --- scala-maven-plugin:4.5.6:compile (scala-compile-first) # spark-hive-thriftserver_2.12 ---
[INFO] Using incremental compilation using Mixed compile order
[INFO] Compiler bridge file: /home/tianshuang/.sbt/1.0/zinc/org.scala-sbt/org.scala-sbt-compiler-bridge_2.12-1.5.8-bin_2.12.15__52.0-1.5.8_20211211T222914.jar
[INFO] compiler plugin: BasicArtifact(com.github.ghik,silencer-plugin_2.12.15,1.7.6,null)
[INFO] compiling 27 Scala sources and 86 Java sources to /home/tianshuang/IdeaProjects/latest/spark/sql/hive-thriftserver/target/scala-2.12/classes ...
./build/mvn: line 185: 8772 Killed "${MVN_BIN}" "$#"
Cmd:
dmesg -T | grep -i kill
Output:
[Wed Apr 13 22:07:44 2022] fsnotifier invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0
[Wed Apr 13 22:07:44 2022] oom_kill_process.cold+0xb/0x10
[Wed Apr 13 22:07:44 2022] [ 1862] 1000 1862 114275 95 110592 117 0 gsd-rfkill
[Wed Apr 13 22:07:44 2022] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/user#1000.service,task=java,pid=8772,uid=1000
[Wed Apr 13 22:07:44 2022] Out of memory: Killed process 8772 (java) total-vm:15551840kB, anon-rss:4862120kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:10256kB oom_score_adj:0

Appengine devserver running on 2 ports

Upgraded my OS to Sierria, and installed JDK8, maven 3.3.9 and tried to run maven, and it throws an error. Going through appengine docs, it mentions "You can use Java 7 or Java 8, but you must use Java 7 bytecode level". So tried installing JDK7, but didn't work too. Tried to run on other ports, but the same problem occured.
[INFO] <<< appengine-maven-plugin:1.9.48:devserver (default-cli) < package # mark <<<
[INFO]
[INFO] --- appengine-maven-plugin:1.9.48:devserver (default-cli) # mark ---
[INFO]
[INFO] Google App Engine Java SDK - Running Development Server
[INFO]
[INFO] Retrieving Google App Engine Java SDK from Maven
[INFO] Running /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/bin/java -XstartOnFirstThread -javaagent:/Users/Raghu/.m2/repository/com/google/appengine/appengine-java-sdk/1.9.48/appengine-java-sdk/appengine-java-sdk-1.9.48/lib/agent/appengine-agent.jar -Xbootclasspath/p:/Users/Raghu/.m2/repository/com/google/appengine/appengine-java-sdk/1.9.48/appengine-java-sdk/appengine-java-sdk-1.9.48/lib/override/appengine-dev-jdk-overrides.jar -Dappengine.fullscan.seconds=5 -classpath /Users/Raghu/.m2/repository/com/google/appengine/appengine-java-sdk/1.9.48/appengine-java-sdk/appengine-java-sdk-1.9.48/lib/appengine-tools-api.jar com.google.appengine.tools.development.DevAppServerMain --allow_remote_shutdown -p 8080 /Users/Raghu/git/site/target/mark-6
[INFO] objc[4320]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/bin/java (0x100e654c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x100f2e4e0). One of the two will be used. Which one is undefined.
[INFO] Apr 02, 2017 11:21:05 PM com.google.appengine.tools.development.SystemPropertiesManager setSystemProperties
[INFO] INFO: Overwriting system property key 'java.util.logging.config.file', value '/Users/Raghu/.m2/repository/com/google/appengine/appengine-java-sdk/1.9.48/appengine-java-sdk/appengine-java-sdk-1.9.48/config/sdk/logging.properties' with value 'WEB-INF/logging.properties' from '/Users/Raghu/git/site/target/mark-6/WEB-INF/appengine-web.xml'
[INFO] Apr 02, 2017 11:21:06 PM com.google.apphosting.utils.jetty.JettyLogger info
[INFO] INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
[INFO] Apr 02, 2017 5:51:06 PM com.google.apphosting.utils.jetty.JettyLogger info
[INFO] INFO: jetty-6.1.x
[INFO] Apr 02, 2017 5:51:07 PM com.google.apphosting.utils.jetty.JettyLogger info
[INFO] INFO: Started SelectChannelConnector#localhost:8080
[INFO] Apr 02, 2017 5:51:07 PM com.google.appengine.tools.development.JettyContainerService startHotDeployScanner
[INFO] INFO: Full scan of the web app in place every 5s.
[INFO] Apr 02, 2017 5:51:07 PM com.google.appengine.tools.development.AbstractModule startup
[INFO] INFO: Module instance gamma is running at http://localhost:8080/
[INFO] Apr 02, 2017 5:51:07 PM com.google.appengine.tools.development.AbstractModule startup
[INFO] INFO: The admin console is running at http://localhost:8080/_ah/admin
[INFO] Apr 02, 2017 5:51:07 PM com.google.apphosting.utils.jetty.JettyLogger info
[INFO] INFO: jetty-6.1.x
[INFO] Apr 02, 2017 5:51:08 PM com.google.apphosting.utils.jetty.JettyLogger info
[INFO] INFO: Started SelectChannelConnector#localhost:52747
[INFO] Apr 02, 2017 5:51:08 PM com.google.appengine.tools.development.JettyContainerService startHotDeployScanner
[INFO] INFO: Full scan of the web app in place every 5s.
[INFO] Apr 02, 2017 5:51:08 PM com.google.appengine.tools.development.AbstractModule startup
[INFO] INFO: Module instance gamma instance 0 is running at http://localhost:52747/
[INFO] Apr 02, 2017 5:51:08 PM com.google.appengine.tools.development.AbstractModule startup
[INFO] INFO: The admin console is running at http://localhost:52747/_ah/admin
[INFO] Apr 02, 2017 11:21:08 PM com.google.appengine.tools.development.DevAppServerImpl doStart
[INFO] INFO: Dev App Server is now running
[INFO] Apr 02, 2017 11:21:08 PM com.google.appengine.tools.development.InstanceHelper sendStartRequest
[INFO] WARNING: Got exception while performing /_ah/start request on server: 0.gamma, java.lang.NullPointerException: null
After spending some time on it, I had figured out that the problem was that I was using a backend instance B1 in appengine-web.xml with basic scaling. Solved it by using a Frontend instance F1 with automatic scaling and everything started to work fine. Since it was running locally, I thought appengine-web.xml wouldn't be considered, my bad.
In appengine-web.xml:
<instance-class>F1</instance-class>
<automatic-scaling>
<max-idle-instances>1</max-idle-instances>
<min-pending-latency>automatic</min-pending-latency>
<max-pending-latency>10ms</max-pending-latency>
<max-concurrent-requests>5</max-concurrent-requests>
</automatic-scaling>

Error: Could not find or load main class org.apache.mahout.driver.MahoutDriver

I am trying to run this statement:
CODE:
/usr/local/lib/mahout/bin$ mahout seqwiki -i /user/wiki/enwiki-articles.xml -o /user/wiki/kmeansseqfiles
ERROR:
MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
MAHOUT_LOCAL is set, running locally
Error: Could not find or load main class org.apache.mahout.driver.MahoutDriver
I followed the top voted instructions from this stackoverflow page
However I still get the same error.
Where all my pom.xml files are
./mahout/hdfs/pom.xml
./mahout/trunk/integration/pom.xml
./mahout/trunk/math-scala/pom.xml
./mahout/trunk/buildtools/pom.xml
./mahout/trunk/examples/pom.xml
./mahout/trunk/math/pom.xml
./mahout/trunk/distribution/pom.xml
./mahout/trunk/pom.xml
./mahout/trunk/spark/pom.xml
./mahout/trunk/mrlegacy/pom.xml
./mahout/trunk/spark-shell/pom.xml
./mahout/integration/pom.xml
./mahout/math-scala/pom.xml
./mahout/buildtools/pom.xml
./mahout/examples/pom.xml
./mahout/flink/pom.xml
./mahout/math/pom.xml
./mahout/distribution/pom.xml
./mahout/mr/pom.xml
./mahout/pom.xml
./mahout/spark/pom.xml
./mahout/spark-shell/pom.xml
./mahout/h2o/pom.xml
when I do a clean install
hadoop#ip-:/usr/local/lib/mahout$ mvn -DskipTests -X clean install
Error:
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T16:41:47+00:00)
Maven home: /usr/local/lib/apache-maven-3.3.9
Java version: 1.7.0_111, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-91-generic", arch: "amd64", family: "unix"
[INFO] Mahout Build Tools ................................. FAILURE [ 1.140 s]
[INFO] Apache Mahout ...................................... SKIPPED
[INFO] Mahout Math ........................................ SKIPPED
[INFO] Mahout HDFS ........................................ SKIPPED
[INFO] Mahout Map-Reduce .................................. SKIPPED
[INFO] Mahout Integration ................................. SKIPPED
[INFO] Mahout Examples .................................... SKIPPED
[INFO] Mahout Math Scala bindings ......................... SKIPPED
[INFO] Mahout Spark bindings .............................. SKIPPED
[INFO] Mahout Flink bindings .............................. SKIPPED
[INFO] Mahout Spark bindings shell ........................ SKIPPED
[INFO] Mahout Release Package ............................. SKIPPED
[INFO] Mahout H2O backend ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
ls -l
total 160
drwxr-xr-x 2 root root 4096 Oct 24 02:51 bin
drwxr-xr-x 3 root root 4096 Oct 24 02:51 buildtools
-rw-r--r-- 1 root root 17916 Oct 24 02:51 CHANGELOG
drwxr-xr-x 3 root root 4096 Oct 24 02:51 distribution
-rw-r--r-- 1 root root 2313 Oct 24 02:51 doap_Mahout.rdf
drwxr-xr-x 4 root root 4096 Oct 24 02:51 examples
drwxr-xr-x 5 root root 4096 Oct 24 02:51 integration
-rw-r--r-- 1 root root 39588 Oct 24 02:51 LICENSE.txt
drwxr-xr-x 3 root root 4096 Oct 24 02:51 math
drwxr-xr-x 3 root root 4096 Oct 24 02:51 math-scala
drwxr-xr-x 3 root root 4096 Oct 24 02:51 mrlegacy
-rw-r--r-- 1 root root 1888 Oct 24 02:51 NOTICE.txt
-rw-r--r-- 1 root root 43921 Oct 24 02:51 pom.xml
-rw-r--r-- 1 root root 479 Oct 24 02:51 README.txt
drwxr-xr-x 3 root root 4096 Oct 24 02:51 spark
drwxr-xr-x 3 root root 4096 Oct 24 02:51 spark-shell
drwxr-xr-x 4 root root 4096 Oct 24 02:51 src

Unexpected Error at Installing CS6 on macOS 10.12

I want re-install my licensed CS6 Web & Design Premium os macOS 10.12 Sierra. However, installer says "Could not start the installation. Any file may be missing."
I got the PDapp.log which created by installer in /Libary/Logs.
The Log:
Wed Oct 12 19:34:00 2016 [INFO] Setup - Build Version - 6.0.335.0
Wed Oct 12 19:34:00 2016 [INFO] Setup - Logging Level verbosity Set to 4
Wed Oct 12 19:34:00 2016 [INFO] Setup - TimeLog: Bootstrapper Start
Wed Oct 12 19:34:00 2016 [INFO] Setup - TimeLog: Start initial checks
Wed Oct 12 19:34:00 2016 [INFO] Setup - Launch Path set to /var/folders/ln/ljj38hdx5f13q0db1q58bpsr0000gp/T/AppTranslocation/E0C66AE8-34B2-4A80-A424-D031D2709AEA/d
Wed Oct 12 19:34:00 2016 [INFO] Setup - Found 6 packages in setup manifest
Wed Oct 12 19:34:00 2016 [INFO] PIM - Build Version - 6.0.335.0
Wed Oct 12 19:34:00 2016 [INFO] PIM - Logging Level verbosity Set to 4
Wed Oct 12 19:34:00 2016 [WARN] PIM - Detected Old content in USF trying to delete it...
Wed Oct 12 19:34:00 2016 [WARN] PIM - Successfully deleted old content...
Wed Oct 12 19:34:00 2016 [INFO] PIM - Build Version - 6.0.335.0
Wed Oct 12 19:34:00 2016 [INFO] PIM - Logging Level verbosity Set to 4
Wed Oct 12 19:34:00 2016 [INFO] PIM - CREATE PIM Instance ...
Wed Oct 12 19:34:00 2016 [INFO] PIM - trying to createOrUpdatePIMDbSchema.
Wed Oct 12 19:34:00 2016 [INFO] PIM - SUCCESS Created Tables.
Wed Oct 12 19:34:00 2016 [INFO] PIM - PIM Database is Up To Date.
Wed Oct 12 19:34:00 2016 [INFO] PIM - Updater Inventory location:/var/folders/ln/ljj38hdx5f13q0db1q58bpsr0000gp/T/AppTranslocation/E0C66AE8-34B2-4A80-A424-D031D2709AEA/d/Install.app/Contents/Frameworks/UpdaterInventory.framework/UpdaterInventory
Wed Oct 12 19:34:00 2016 [FATAL] PIM - ERROR invalid xml file path. Could not read data from path /var/folders/ln/ljj38hdx5f13q0db1q58bpsr0000gp/T/AppTranslocation/E0C66AE8-34B2-4A80-A424-D031D2709AEA/d/packages/core/PDApp.pimx
Wed Oct 12 19:34:00 2016 [FATAL] PIM - Error Description Error Domain=NSCocoaErrorDomain Code=260 "The file “PDApp.pimx” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/var/folders/ln/ljj38hdx5f13q0db1q58bpsr0000gp/T/AppTranslocation/E0C66AE8-34B2-4A80-A424-D031D2709AEA/d/packages/core/PDApp.pimx, NSUnderlyingError=0x23add0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
Wed Oct 12 19:34:00 2016 [ERROR] PIM - Error couldnot initialize XML. Improper xml file.
Wed Oct 12 19:34:00 2016 [ERROR] Setup - Error in initialization. Manifest parsing failed.
Wed Oct 12 19:34:00 2016 [INFO] Setup - TimeLog: End initial checks
Wed Oct 12 19:34:02 2016 [INFO] Setup - ================= Exiting Installer with Code: 0 =================
Wed Oct 12 19:34:02 2016 [INFO] PIM - PIMSqlite closeDB status 0
Wed Oct 12 19:34:02 2016 [INFO] PIM - FREE PIM Instance ...
How can I fix this error?
Thanks.
For OSX 10.12.X (Sierra) run installer directly from Install.app/Contents/MacOS/Install

sfDoctrineGuardPlugin windows 2008 401 unauthorized

I have a Symfony 1.4 app working on Linux using sfDoctrineGuardPlugin. Everything's fine. I am porting this to W2008 MSSQL and am really close BUT cannot get past the 401 Unauthorized error.
The app starts up at frontend_dev.php and then because i'm not logged in, redirects to the plugin. I then get this in the symfony log:
Feb 16 11:05:34 symfony [info] {sfBasicSecurityFilter} Action "default/login" requires authentication, forwarding to "sfGuardAuth/signin"
Feb 16 11:05:34 symfony [info] {sfFilterChain} Executing filter "sfRenderingFilter"
Feb 16 11:05:34 symfony [info] {sfFilterChain} Executing filter "sfGuardRememberMeFilter"
Feb 16 11:05:34 symfony [info] {sfFilterChain} Executing filter "sfExecutionFilter"
Feb 16 11:05:34 symfony [info] {sfGuardAuthActions} Call "sfGuardAuthActions->executeSignin()"
Feb 16 11:05:34 symfony [info] {sfPHPView} Render "C:/inetpub/wwwroot/appFROMGMCSAPP/plugins/sfDoctrineGuardPlugin/modules/sfGuardAuth/templates/signinSuccess.php"
Feb 16 11:05:34 symfony [info] {sfPartialView} Render "C:/inetpub/wwwroot/appFROMGMCSAPP/plugins/sfDoctrineGuardPlugin/modules/sfGuardAuth/templates/_signin_form.php"
Feb 16 11:05:34 symfony [info] {sfPHPView} Decorate content with "C:\inetpub\wwwroot\appFROMGMCSAPP\apps\frontend\templates/layout.php"
Feb 16 11:05:34 symfony [info] {sfPHPView} Render "C:\inetpub\wwwroot\appFROMGMCSAPP\apps\frontend\templates/layout.php"
Feb 16 11:05:34 symfony [info] {sfWebResponse} Send status "HTTP/1.1 401 Unauthorized"
I guess I can add error_log statements into the executeSignin.. maybe my DB is not accessible even though the tables look ok ??
This bug on IIS has been fixed last year: http://trac.symfony-project.org/ticket/4557
Can you check that you have an up to date version of symfony & sfDoctrineGuardPlugin? Also, check if you don't have extended the signin action inside your app, where the 401 status can still be.

Resources