Getting docker error 400: client error when trying to run QuantConnect's LEAN engine locally on Ubuntu - linux

I'm simply trying to backtest the starter code provided when creating a new project via the LEAN CLI. When running:
lean backtest <myProject>
I get the following error:
Error: 400 Client Error for http+docker://localhost/v1.41/containers/create?name=lean_cli_0739587438b94317948c15d649098bea: Bad Request ("invalid mount config for type "bind": bind source path does not exist:
/tmp/lean-cli-kapzl8hj/config.json")
OS:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
I've tried uninstalling and re-installing Docker, removing and pulling down the Docker image again, as well as uninstalling and re-installing the LEAN CLI.
When I uninstall Docker and re-install, it seems to work until a restart my machine. Then I get the error again.
What I should see is a bunch of output with relevant statistics indicating a successful run of the backtesting algorithim.
Even if you're unfamiliar with QuantConnect itself, any help here would be highly appreciated.

Related

Snapcraft doesnt install snaps, gives a mount error

had it all working and the next day it randomly gave this error to me. I dont know what I did.
also i had a error on the ubuntu screen itself when executed this command “unable to mount volume an operation is already pending” something like that. cant get to re create this
$ snap install ubuntu-frame
error: cannot perform the following tasks:
Run hook prepare-plug-graphics-core20 of snap "ubuntu-frame" (run hook "prepare-plug-graphics-core20": cannot perform operation: mount --bind /snap/core20/current/etc/nsswitch.conf /tmp/snap.rootfs_lOwlQ8/etc/nsswitch.conf: Permission denied)
Ubuntu version
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
Snap version
snap 2.57.6
snapd 2.57.6
series 16
ubuntu 20.04
kernel 4.9.333-127
Its an odroid i have to get it in a kiosk for work. and all it gave me is headaches with errors.
I tried reinstalling snap purged it. didnt fix anything.

How to resolve the following "keyserver receive failed" issue on my Ubuntu 18.04 LTS while installing MongoDB?

Keyserver not available error.
I am trying to install MongoDB on my system. I try to follow the steps given in the following website - Click Here
I am getting the 'keyserver not available' error as given in the image above due to which I am not able to install MongoDB on my Ubuntu 18.04 LTS.
Always try to refer the official documentation for these purposes. The article you have linked is an outdated one and it's actually trying to install xenial version on Bionice beaver, which can be done but not recommended.
Use the below offical mongodb documentation to install the MongoDB community version on your Ubuntu 18.04 machine.
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

VirtualBox/Vagrant Not Working in Ubuntu 16.04

I have VirtualBox errors that stop Vagrant from starting. Both are installed. However, when I run:
vagrant up
I get the following
VirtualBox is complaining that the installation is incomplete. Please
run `VBoxManage --version` to see the error message which should contain
instructions on how to fix this error.
Then I run:
VBoxManage --version
And get:
WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-generic.
You will not be able to start VMs until this problem is fixed.
5.0.4_LinuxMintr102546
All of this has already been installed and reinstalled in trying to get this error fixed.
How do I fix this?

Jenkins Installation Wizard Error

I've tried installing Jenkins on AWS & DigitalOcean instances/droplets without any luck.
For EC2 instances used the latest Amazon Linux AMI (ami-f9dd458a) & Ubuntu 14.04 (ami-ed82e39e). On DigitalOcean I tried using Ubuntu 14.04 & 16.04. I've also attempted to install jenkins using jdk-7 & jdk-8 following Debian based installation or Red-Hat distribution installation instructions (even tried to install LTS version).
For all of the above the installation runs smoothly but after unlocking with the initialAdminPassword and selecting either option in the wizard ("Install suggested plugins" or "Select plugins to install") I face a connection (?) error:
I copied the logs from /var/log/jenkins/jenkins.log and they are in this gist.
Could this be a dumb mistake I did along the way? I've used Jenkins from a docker container but kinda need to install natively now for. Thanks for the help.
Solved: Install on an instance with more RAM.
For some reason I had no problems installing in a smaller machine using the docker image. Oh well :)

Cannot connect to the Docker daemon on ubuntu 14.04

I have a VPS hosting with Ubuntu installed
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
Kernel version is 3.13.0-*
I tried to install docker and I went through all steps as mentioned here and everything installed and worked fine with the exception of this:
For Ubuntu Trusty, Wily, and Xenial, it’s recommended to install the
linux-image-extra kernel package. The linux-image-extra package allows
you use the aufs storage driver.
To install the linux-image-extra package for your kernel version
sudo apt-get install linux-image-extra-$(uname -r)
When I was trying to run this command I've been told that
E: Unable to locate package linux-image-extra-3.13.0-042stab113.17
E: Couldn't find any package by regex 'linux-image-extra-3.13.0-042stab113.17'
Anyway seems like docker is installed and I can start it using
service docker start
And when I run this command it says that
docker start/running, process 12235
But when I check the status it says me that
docker stop/waiting
And when I try to start hello-world container it says me that
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
Error: failed to start containers: hello-world
I've already installed docker on my OS X following all steps from official tutorial and it worked fine,
but can't figure out what's wrong with my ubuntu.
Thanks in advance!

Resources