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 :)
Related
I have tried installing MongoDB on my system by following many tutorials but none of them actually work.
On the official MongoDB documentation they have not provided any information for installation on Ubuntu 22.10 or 22.04lts, there is only installation guide for ubuntu 20.04 and below.
I am running ubuntu 22.10 and I really need to install MongoDB to continue my web development.
Please Help.
I have tried adding repositories.
Referred to these links,
but none of them seems to work.
https://tutorialforlinux.com/2022/11/19/mongodb-ubuntu-22-10-installation-step-by-step/3/
https://techviewleo.com/install-mongodb-on-ubuntu-linux/
Terminal Screenshot
My docker environment was working fine. I restarted my system and it stopped unexpectedly. whenever I try to start docker it throws the following error
WSL 2 integration with distro Ubuntu 20.04 unexpectedly stopped with exit code 1.
I am using the following versions
Windows 10
Docker Desktop 4.6.1
WSL 2
List item
.wslconfig (memory=8GB, processors=4)
I have tried following patterns to make it run
restarted docker and windows many times
done with wsl upgrade > sudo apt update && sudo apt upgrade -y
I had the same issue when updated docker desktop with WSL2 backed has a work around I did the following steps:
In docker desktop settings i enabled again the "enabled integration with other distros"
Apply and restart the changes then stop Docker desktop.
Enter to Settings -> Apps and search for ubuntu
Click on Ubuntu and advanced settings
Select repair
Restart the computer
After computer starts enter to the ubuntu wsl via console or terminal
Start docker desktop
Try docker ps or docker-compose to check if the error was resolved.
Hope this helps!
Check for a system variable
Path - C:\Windows\System32
Maybe it will save you a few hours.
Please try this solution comes from todpale:
close Docker Desktop
restart Ubuntu through services.msc or this command (you can put in bat):
net stop LxssManager && net start LxssManager
start Docker again
You also may check if your distro is enabled in Docker settings (General tab and Resources tab -> WSL Integration).
There is a discussion about this issue on Github https://github.com/docker/for-win/issues/9972
Have the same problem. It solved after I add 'C:\Windows\System32' to path.
Try type wsl.exe or wslconfig.exe /l. If nothing happens than modify the path.
Unfortunately none of the solutions here worked for me. Steps to fix were:
Update WSL2 Ubuntu distro:
sudo apt update
sudo apt upgrade
Uninstall Docker Desktop on Windows
Reinstall Docker Desktop on Windows
Note that containers and volumes were lost with the uninstall.
I tried every answer here but when I'm starting docker was still facing the same issue.
So I started the docker without WSL after installation, then changed the setting to use WSL. Docker is working fine now. Hope this helps someone.
Just posting what worked for me. I was using a WSL distro that I restored from a previous Windows installation (named here ubuntu-restore).
Initially, I was able to get more information to debug my problem by running:
sudo /mnt/wsl/docker-desktop/docker-desktop-user-distro proxy --distro-name ubuntu-restore
And the console gave the following error (simplified):
[docker-desktop-user-distro in ubuntu-restore][I] mounting /mnt/c/Users/no-longer-exists to /mnt/wsl/docker-desktop-bind-mounts/ubuntu-restore/b34c91da7c9e60d4983f67b84fe84fda955dbf79d010eb25ab0aaec28012fb5c
[docker-desktop-user-distro in ubuntu-restore][W] restoreMounts: ensure ready failed: mkdir /mnt/c/Users/no-longer-exists: permission denied
Which meant I had to clean up some old bind mounts that stayed in the distro. I found them in /var/lib/docker-desktop/mounts.data, removed them, and the WSL integration works again.
How can I install snap on my amazon linux 2?
I've gone through a few links on the web:
https://github.com/albuild/snap
https://forum.snapcraft.io/t/cannot-install-snapd-on-amazon-linux-2/20824/4
I can't seem to find correct instructions to install snap on my amazon linux 2 machine. I've done it before, but I forgot how I did it.
https://github.com/albuild/snap
rebuild workspace and instructions work
How to install Octave on Amazon EC2 instance? The configuration of the EC2 instance is as follows:
First, I created a tmp directory and downloaded the EPEL rpm in the tmp directory and installed the EPEL repository with the commands:
I tried to use the following command (please see the following website for more details about this command link for more details of the command) to install Octave, but it was not working (see the following result):
Also, I tried to enable the package by changing "enabled = 0" to "enabled = 1" in the file "/etc/yum.repos.d", and used yum to install octave, but it was still not working. The error message is as follows:
I tried to use the command to test it (see below for more details):
I am not sure if some package management tools (e.g., subscription-manager, dnf) to handle the dependency issues. Thanks!
Amazon Linux is based on RHEL and Fedora, but is not RHEL or Fedora. Fedora EPEL is made on RHEL and will also work on CentOS and other rebuilds which aim to be just like RHEL. It looks like you are hitting an area where Amazon Linux is different. Your options are:
Rebuild all of those missing packages on Amazon Linux
Install Octave and all dependencies from source rather than RPM
Use RHEL, Fedora, or CentOS
I'm trying to install caffe on a Amazon Linux AMI. It has "yum" package manager. When I look at requirements, I see that, I have to run the following command:
sudo yum install gflags-devel glog-devel lmdb-devel
However, when I do this, I always get the following error:
No package gflags-devel available.
No package glog-devel available.
No package lmdb-devel available.
So, this command is from the official web page of caffe and therefore I believe there is no mistake in the installation command. My question is how can I fix the problem ? I'm a newbie on this issues and therefore sorry if my question is so simple.
Note : I know that there is a pre-installed caffe AMI available but I need to install it on my own instance.
EDIT
The only thing I could find is the that instance is Linux AMI 2016.03 Release.
EDIT2
I was able to install the aforamentioned packages by enabling other repositories as explained here and here.
As a final step I have to install opencv-devel package but guess what? Thanks to Amazon Linux AMI it does not exist too! So, if is there anyone who could tell me how could I solve this new problem, I'd be very appreciate.
You have to install opencv from source.
Linux AMI is based on cent OS. Here is a guide while wil help you to install opencv from source.
Link:https://www.vultr.com/docs/how-to-install-opencv-on-centos-7