Setting up the movesense development environment with vagrant - movesense

I tried to set up the development environment with vagrant by following this guide, "Automated setup on all operating systems using Vagrant" at https://bitbucket.org/suunto/movesense-device-lib/src/523308c2b380fcde46d51af9af2f9ed17907ab55/README.md
However, I am not able to download a remote file. Here is the error output:
~/symbio/suunto-movesense-device-lib-c96b25358d86$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/artful64' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'ubuntu/artful64'
default: URL: https://vagrantcloud.com/ubuntu/artful64
==> default: Adding box 'ubuntu/artful64' (v20180718.0.0) for provider: virtualbox
default: Downloading: https://vagrantcloud.com/ubuntu/boxes/artful64/versions/20180718.0.0/providers/virtualbox.box
default: Download redirected to host: cloud-images.ubuntu.com
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
The requested URL returned error: 404 Not Found
How I can fix this problem?
Using Vagrant 2.2.3 and Debian 9.7

this is probably caused by the Debian artfull64 going out of support and the repo/image taken down from Ubuntu servers.
Try updating to a version of Ubuntu that is newer (Xenial or Bionic) to get LTS and not having the build break again too soon.
To upgrade edit the config.vm.box line in the Vagrant file:
config.vm.box = 'ubuntu/xenial64'
Possible candidates for the box can be found in the vagrant documentation
https://app.vagrantup.com/boxes/search
I had a similar issue with it and got the Movesense guys to update to artful from zesty I also warned them that artful would go out of support in July 2018 and that they should use LTS version of Ubuntu.
The main problem was to get a version that hat the "gcc-arm-embedded" package in its repo and at the time I had the issue it was not in bionic/xenial at that time but it should be by now.

Related

I get this error running PMD from salesforce CLI, "ERROR running scanner:run: Attempted to resolve unregistered dependency token: "RuleManager""

Can anyone help me with this. Im using Mac. I cant find the location of the rulemanager. Please see error below
Lxxxxxxx:pmd-bin-6.34.0 xxxxxx$ sfdx scanner:run pmd --target /usr/src --category rulesets/java/quickstart.xml -f sarif
(node:17810) [editions-autoloader-none-broadened] Error Plugin: sfdx-cli: editions-autoloader-none-broadened: Unable to determine a suitable edition, even after broadening.
module: #oclif/config#1.17.0
task: runHook init
plugin: sfdx-cli
root: /Users/xxxxxxx/.local/share/sfdx/client/7.100.0-9d243d8
See more details with DEBUG=*
(Use node --trace-warnings ... to show where the warning was created)
ERROR running scanner:run: Attempted to resolve unregistered dependency token: "RuleManager"
Kieran, this is an issue that we just discovered. It is related to an incompatibility with the version of Node.js that is bundled with the Salesforce CLI and a library that is used by sfdx-scanner.
A temporary workaround can be found at https://github.com/forcedotcom/sfdx-scanner/issues/412
You will need to use the npm installation instead of the pkg installer since you are interested in the Sarif output. Sarif output was added in version 2.6.0. The issue affects versions 2.6.0-2.8.0 when using the pkg installer on a Mac.
We hope to have a fix rolled out in the next couple of days. I will post here when version 2.9 has been released. Sorry for any inconvenience.
Kieran, this issue has been fixed in version 2.9.1. You can upgrade by executing the following commands in your shell.
sfdx plugins:uninstall #salesforce/sfdx-scanner
sfdx plugins:install #salesforce/sfdx-scanner

An unexpected errors occured with Yarn 1.13.0 on Xubuntu 16

I managed to get the latest Yarn v1.13.0 installed on Xubuntu 16 with their curl installation instruction.
Now I'm getting this errors trying to install a project's dependencies.
An expected error occurred:
"https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.6.tgz:
Request failed \"404 Not Found\
Same 'Not Found' message is displayed by the error url.
Seems to be caused by the security issue https://github.com/dominictarr/event-stream/issues/116?utm_content=educational&utm_campaign=2018-11-28&utm_source=email-sendgrid&utm_term=13952972&utm_medium=833442
How do I fix it? How do I find the project deps that use the corrupted version of event-stream?
Seemingly was caused by an older version of Nodemon prolly affected by the security issue above. Updating it to the latest version in package.json seemed to have helped.

self-contained asp.net core web api is getting:- Failed to initialize CoreCLR, HRESULT: 0x80131500 on Ubuntu 16.10-x64

I have a self contained asp.net core website, than I am able to run fine in windows 10, but when publishing for ubuntu.16.10-x64, and running it in ubuntu 16.10 x64 desktop version is getting a:
Failed to initialize CoreCLR, HRESULT: 0x80131500
I have run updates and upgrades of the os:
(sudo apt-get update, sudo apt-get upgrade)
I am executing the starting command as sudo.
The file has run permissions ( -rwxrwx--x )
TargetFramework is netcoreapp1.1.
libicu-dev is already the newest version (55.1-7ubuntu0.2).
How to go about troubleshooting the error?
Update 28/07/17
While it seems there are several related issues which can cause this (most seem to be dependency related), some users have reported that for Ubuntu 16.1 following the instructions on the get started page has resolved the error.
Several other fixes for various other scenarios are suggested on this thread.
In addition, as per https://github.com/dotnet/coreclr/issues/11417 - some instances may be due to an existing bug in the CoreCLR 1.1 - which does not sound likely to be fixed in this version. Migrating to version 2.0 is suggested as a workaround in that case.
Original answer:
To help with diagnosing the issue, you can enable detailed startup errors by specifying detailed error logging with .UseSetting("detailedErrors", "true") and .CaptureStartupErrors(true) as per the following example:
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseSetting("detailedErrors", "true")
.UseIISIntegration()
.UseStartup<Startup>()
.CaptureStartupErrors(true)
.Build();
host.Run();
}
Update 01/24/2018
the issue got resolved after moving to .net core 2.0

mongod command crashes with message

I have installed MongoDB 3.0.4 . When i execute command "mongod" it crashes with message "Mongod.exe has stopped working". Here is problem details
Problem Event Name: APPCRASH
Application Name: mongod.exe
Application Version: 0.0.0.0
Application Timestamp: 557ef9c9
Fault Module Name: MSVCR120.dll
Fault Module Version: 12.0.21005.1
Fault Module Timestamp: 524f83ff
Exception Code: c000001d
Exception Offset: 0000000000092bc3
OS Version: 6.1.7600.2.0.0.256.48
Locale ID: 1033
Additional Information 1: fd3b
Additional Information 2: fd3bb24d4274b34ca613c6f4e63ceb13
Additional Information 3: 3204
Additional Information 4: 3204b56578b4c221b1569b71b387eb68
I am using Windows 7 64 bit operating system. Why this problem ???
Thanks in advance.
I was facing the exact issue with current version 3.0.6 of mongodb. I uninstalled it and installed 2.6.11 verson. And it worked! For your information I am also using Win 7 OS 64 bit.
I had the same problem when launching Worckbench.
I just installed the Visual C++ Redistributable Packages for Visual Studio 2013 and the problem was solved.
Installing Windows 7 SP1 fixed the problem for me.
I have installed MongoDB 3.2.10 using Windows Server 2008 R2 x64, and it was the same problem with you.
The solution is upgrade the OS to SP1.

WebSphere Application Server 7.0.0.33 installation error - "failed to Install Update Installer"

I ran into errors when trying to install WebSphere Commerce Fix Pack 8 (on WCS FEP 1 and FP 7) and so started WebSphere Commerce installation from scratch. I was able to install RAD but am running into the below error when trying to install WebSphere Application Server 7.0.0.33 (I also tried installing other versions, but ended up having the same error).
Any help and ideas to overcome this problem would be much appreciated. Thanks in advance!
Please note this is: WebSphere Commerce Developer Environment and WebSphere Application Server Test Environment.
Operating System: Windows 7 Enterprise 64-bit
Antivirus: McAfee
IBM Installation Manager:
Version: 1.8.0
Internal version: 1.8.0.20140902_1503
Architecture: 32-bit
RAD:
Succeeded installing the below version:
IBM® Rational® Application Developer™ for WebSphere® Software
Version 7.5.5.5 iFix1 (7.5.5051.RADO7555iFix1-I20120913_1613)
WebSphere Application Server: Ran into the below error while attempting to install WAS 7.0.0.33
Error during "install" phase:
Error recorded in the log file:
actionStep : -INSTALL
version : 7.0.0.17
sourcePath : C:\IBM\SDP\image\UPDI70
installPath : C:\IBM\SDP\runtimes\updi_v70
calling performInstall
compare = 0
Deleting installPath : C:\IBM\SDP\runtimes\updi_v70
performInstall : Install Update Installer
OSCommand : Invoking at : C:\IBM\SDP\image\UPDI70\UpdateInstaller
OSCommand : Print out Command
C:\IBM\SDP\image\UPDI70\JDK\jre.pak\repository\package.java.jre\java\jre\bin\java.exe
-cp
setup.jar
run
-OPT
silentInstallLicenseAcceptance=true
-OPT
allowNonRootSilentInstall=true
-OPT
disableOSPrereqChecking=true
-OPT
disableEarlyPrereqChecking=true
-OPT
skipStartMenu=true
-OPT
installLocation=C:\IBM\SDP\runtimes\updi_v70
-silent
OSCommand : Done Print out Command
Unable to load JNI dll archive:C:\IBM\SDP\image\UPDI70\UpdateInstaller\setup.jar+/6d03fb4a8c94a5cdd9d0f5efa721f948/win32ppk/win32ppk.dll
java.lang.UnsatisfiedLinkError: C:\Users\SHEELA~1.DOS\AppData\Local\Temp\ismp001\win32ppk.dll (Access is denied. )
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1011)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1019)
at java.lang.Runtime.load0(Runtime.java:781)
at java.lang.Runtime.load(Runtime.java:769)
at com.installshield.util.LibraryLoader.loadLibrary(LibraryLoader.java:77)
at com.installshield.wizard.platform.win32.Win32Utils.loadDLL(Win32Utils.java:49)
at com.installshield.wizard.platform.win32.Win32SystemUtilServiceImpl.initialized(Win32SystemUtilServiceImpl.java:68)
at com.installshield.wizard.service.AbstractServiceImplementor.initialize(AbstractServiceImplementor.java:23)
at com.installshield.wizard.service.ServiceFactory.createImpl(ServiceFactory.java:129)
at com.installshield.wizard.service.ServiceFactory.createService(ServiceFactory.java:55)
at com.installshield.wizard.service.ServiceFactory.createService(ServiceFactory.java:24)
at com.installshield.wizard.service.LocalWizardServices.loadService(LocalWizardServices.java:107)
at com.installshield.wizard.service.LocalWizardServices.getService(LocalWizardServices.java:122)
at com.installshield.wizard.service.system.SystemUtilServiceInitialize.execute(SystemUtilServiceInitialize.java:17)
at com.installshield.wizard.Wizard.executeStartupBeans(Wizard.java:1451)
at com.installshield.wizard.Wizard$RunThread.run(Wizard.java:1534)
Thanks for looking into it!
FINALLY figured it out ... turned out McAfee (anti-virus) software was blocking the install.
I was able to successfully install WAS 7.0.0.33 after turning off the McAfee services - specifically the McAfee Host Intrusion Prevention Service.
The error stack seems to indicate a file permission issue:
Unable to load JNI dll
archive:C:\IBM\SDP\image\UPDI70\UpdateInstaller\setup.jar+/6d03fb4a8c94a5cdd9d0f5efa721f948/win32ppk/win32ppk.dll
java.lang.UnsatisfiedLinkError: C:\Users\SHEELA~1.DOS\AppData\Local\Temp\ismp001\win32ppk.dll ***(Access is denied. )***
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1011)
Maybe check privileges for the user installing the product/fix?