Questions tagged [linux]

Linux is the generic term for a UNIX-like open source operating system based on the Linux kernel. Use this tag for questions about DevOps practices, processes and tools in Linux environments.

Filter by
Sorted by
Tagged with
47
votes
7answers
69k views

How do you back up Jenkins jobs & master configs?

I'd like to backup all Jenkins jobs and config files. What's the easiest way of doing it?
16
votes
3answers
4k views

Which SCM tools does Jenkins support?

I'm aware that Jenkins supports Git and SVN. What other SCM tools does Jenkins support?
8
votes
2answers
6k views

Difference between chroot and Docker

I don't understand the difference between docker and chroot. Yes its nice in terms of the packaging the registry. But somehow I get the feeling its just chroot with extra bells and whistles. I know I'...
7
votes
2answers
2k views

Does Docker allow containers to be OS agnostic?

We currently use a Windows based server to host 2 VMs. One VM uses Windows with a Windows app and the other VM uses Linux with a Linux app. Is the below scenario possible? Bare server with Windows ...
7
votes
1answer
88 views

Debug BackendConnectionErrors from Kubernetes Service LoadBalancer sesrvice

We recently moved some of our production infrastructure to Kubernetes. Many pods are exposed through a LoadBalancer service on AWS. This creates an ELB, registers each node in the cluster with the ELB,...
6
votes
6answers
281 views

In the HashiCorp stack, where's the appropriate place to add users?

I'm in the process of building some custom Linux images using HashiCorp's Packer, which will later be deployed to Azure using HashiCorp's Terraform. The VMs created from these images will need to have ...
6
votes
1answer
528 views

How to keep configuration files automatically during apt-get upgrade or install?

When performing and apt-get update; apt-get upgrade -y on a server I encountered the message: Setting up sudo (1.8.16-0ubuntu1.5) ... Configuration file '/etc/sudoers' ==> Modified (by you or by ...
5
votes
4answers
11k views

docker “Cannot mkdir: Permission denied”

I'm trying to run wordpress inside docker. I've been following this tutorial : https://www.sitepoint.com/how-to-use-the-official-docker-wordpress-image/ But when I run this command : docker run -e ...
5
votes
1answer
184 views

Advantages of Linux Containers over Docker

I'd like to understand the differences between Linux Containers and Docker, especially what kind of advantages Containers have in comparison to Docker.
5
votes
1answer
868 views

Are NixOS and GuixSD the incoming Linux distros of DevOps?

The main advantage of these distros is the declarative approach which allows for setup to be done in the same way as you would configure a Vagrantfile or Dockerfile. In the way that Docker replaced/...
5
votes
1answer
2k views

How do you connect a build node to the Jenkins master?

I'd like to connect a build node to the Jenkins master. Ideally without using a web browser or being in front of the physical machine. What would be the easiest way to achieve that?
5
votes
1answer
113 views

Pause/Suspend guest in KVM without virsh and libvirtd

I have installed KVM without libvirt/virsh and virtualmanager. Packages which installed are kvm qemu-kvm bridge-utils libguestfs-tools How can I pause/suspend VM in this case?
4
votes
2answers
2k views

How to automate Powershell's interactive Get-Credential method?

I am trying to write a python script which automates the powershell's Get-Credential method. Here is something i wrote: import subprocess COMMAND_LINE = 'powershell' powershell = subprocess.Popen(...
4
votes
1answer
56 views

What's missing from this simple recipe that creates a user?

I've spun many boxes in the cloud before, but was growing tired of going through the same dance; and as I'm trying to get familiar with Chef, I figured, that's a good use case to do a little learning. ...
4
votes
2answers
294 views

How to create Golang Linux binaries using a Windows host

When go build is issued on a Windows host a .exe binary is created. How to ensure that a Linux binary is created on a Windows host? The following was tried, but did not solve the issue: GOOS=linux;...
4
votes
2answers
914 views

How to detect what interface has private IP in Ansible

I plan to reconfigure iptables on our servers (mostly CentOS 7, some CentOS 6) with different network configurations, some on 1Gbit interface, some on 10Gbit, some with VLANs and some with configured ...
4
votes
2answers
454 views

How to automate rolling upgrades for ec2 running linux behind elastic and/or application load balancer?

Would like to ask for recommendations on ready automated solutions or templates for rolling ec2 instance upgrade on AWS, requiring a reboot with ELB/ALB. Specifically required to perform the ...
4
votes
2answers
192 views

Docker security risks passing secrets over environment variables

I'm new to Docker and want to put my Django web application into containers. For the last couple days I'm struggling with passing credentials safe to containers. Online there is always the hint ...
4
votes
2answers
1k views

How to pass a /dev/disk device on macOS into Linux Docker?

I've connected external HDD via USD on macOS, and I'm running Ubuntu's Docker container as: docker run -it --device=/dev/disk3 --privileged ubuntu bash but the device is not present in the container:...
3
votes
1answer
535 views

Build FreeBSD Docker image using Ubuntu host OS

I know that in generally it is impossible to build FreeBSD Docker image on Linux host OS due to different kernels and sys calls. Relevant discussion. However, I would like to know maybe there is a ...
3
votes
2answers
120 views

Is there a system which automates everything (OS release, and above) to host websites on?

This is not really a DevOps question but more of a System Automation question (which DevOps covers only a part of, by popular opinion, so I hope it's okay). I feel like some 5 USD IaaS VPS with ...
3
votes
2answers
73 views

Deploy two independently hosted services in production at once without any downtime

I have two different services. Let's say Service A and Service B. Service B is dependent on Service A. Both code bases are hosted in separate repo in Bitbucket and code bases are maintained by ...
3
votes
2answers
987 views

Ultimate docker permission solution

I'm using docker some time and I like the conception very much. But I found a thing is a big problem for me. I'm talking about permissions. While I'm not worrying about production, setting up my ...
3
votes
1answer
36 views

Is it possible to securely delete a file from a virtual disk in a cloud provider?

Considering that virtual hard drives are generally formatted using something like ext3 that abstracts away from the underlying block device, which in and of itself is an abstraction over the top of a ...
2
votes
1answer
1k views

Ansible tmp files created with odd permissions

I have an ansible playbook which can be simplified to this: - name: Provision server hosts: all_hosts become: yes ...
2
votes
2answers
110 views

Getting data from crashed docker container

I am having docker container with Ubuntu installed which was running with Nvidia docker But now I connected that HDD in a different computer. Now After typing following command in newly assembled ...
2
votes
1answer
2k views

Permission errors with non-root USER when running on Linux

I have been getting some unexpected failures with the execution of my Docker images when running on my Ubuntu 16.04.3 LTS machine. I'm using Docker version 18.02.0-ce (edge), installed from apt. I've ...
2
votes
2answers
72 views

Automatic production deployment for a Node.js app on RHEL 7?

I am looking for some way to have a maximally simple(no Jenkins or anything like that) automatic production deployment for a Node.js application on a RHEL 7 system. The caveat is: At the organization ...
2
votes
1answer
229 views

Docker won't create a bridge network without being given an explicit subnet

The problem The problem is that this happens: $ docker network create alpine4 Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign ...
2
votes
1answer
669 views

Incorrect timezoneID inside docker container

I have created a docker image from the base Centos7 image and while running the container from it, the time and timezone were not in sync with my host. To give the container the same timezone as that ...
2
votes
2answers
4k views

How can a Windows server be a slave to Jenkins running on Linux when there in an error installing the slave-agent.jnlp file?

I want to have a Windows Server 2016 slave node with a master Jenkins (version 2.89.2) running on Red Hat Enterprise Linux 7.x. I am trying to install the slave-agent.jnlp file from the Jenkins web ...
2
votes
1answer
48 views

archive contents of a reviewboard server as read-only

My team was using an Ubuntu box to host an instance of Reviewboard 2.5.2 that we used for a few years before migrating to a Bitbucket service in the cloud. The machine was maintained by my predecessor ...
1
vote
3answers
6k views

How to get memory usage per process with sar, sysstat?

Can I get memory usage per process with Linux? we monitor our servers with sysstat/sar. But besides seeing that memory went off the roof at some point, we can't pinpoint which process was getting ...
1
vote
1answer
60 views

How frequently do PaaS:VPS agencies upgrade OS_release in comparison to PaaS:shared-webserver?

I know that in a In PaaS:shared-webserver service a user could have the OS of its server environment release_upgraded in 8 or 12 years or so ! For example, I host a few sites on a particular host that ...
1
vote
1answer
46 views

Why are IaaS hosting services are usually fixed-priced and PaaS are usually dynamically-priced?

Basic plans in IaaS host-providers like DigitalOcean and Linode are usually fixed-priced and basic plans in PaaS host-providers like Microsoft Azure or Amazon Web Services are usually dynamically-...
1
vote
1answer
173 views

Best method of retrieving environment information via Salt Stack?

I have been tasked with using Salt Stack to find out what files/services exist in each of our environments (Test, UAT, Production). The Salt master can speak to all servers in Test and UAT (...
1
vote
1answer
26 views

Azure Security Center with Ubuntu 19

Has anyone successfully gotten the Azure Security Center agent to work with Ubuntu 19? My omsconfig.log is full of messages like This event indicates that failure happens when LCM is trying to get ...
1
vote
1answer
12 views

How to make PM2 as a autostart service?

I want to make my PM2 as a startup service, because for example when my server loses power or something happens to it, it does not automatically restart the PM2 service.
1
vote
1answer
264 views

Windows Docker in swarm with Linux nodes connection issue

I have the following setup for my docker swarm: three Linux master nodes one Linux slave nodes Windows slave node They are connected with an overlay network. Within the linux nodes everything works ...
1
vote
2answers
2k views

Creating a cron job with Ansible (ERROR! 'cron' is not a valid attribute for a Play)

I am relatively inexperienced when it comes to Ansible however I have previously created playbooks which will create a cron job successfully. For the life of me I cannot work out what is wrong with my ...
1
vote
1answer
2k views

Apache container cant access php files mounted in /var/www/ - 403 error

I want to run my php website in a container with apache and php7 I am using this docker image : https://hub.docker.com/r/nimmis/apache-php7/ I run Fedora so I enter the example command given in ...
1
vote
1answer
1k views

After removing Docker container, why is it automatically re-created?

I'm using ubuntu-16.04 desktop and installed Docker-1.5-1 and docker-engine-17.05.0~ce-0~ubuntu-xenial, in which I installed openmedicus/phplist. My aim is to remove the container, and the image as ...
1
vote
1answer
70 views

How do I return just the full path of a file found with the find module in Ansible?

This has been reworded, expanded upon and clarified via an update late on 11/9/18. I request it be upvoted now that it has enough code. I want to find a softlink (to another file) in the $PATH ...
1
vote
0answers
492 views

Running a powershell script via Jenkins on a Linux host

I have a powershell script cloned into my workspace from a bitbucket repository. If I login to the Jenkins server cli I can run it by doing cd /var/lib/jenkins/workspace/powershell pwsh ./psscript....
1
vote
1answer
122 views

Re-initialize etcd-cluster completely (on coreos)

Over the past updates (espcially the update to etcd-wrapper: https://github.com/coreos/coreos-overlay/tree/master/app-admin/etcd-wrapper) my etcd-cluster with five machines broke. Now I'm trying to ...
1
vote
2answers
494 views

Join a Linux Docker swarm with a local Windows Docker for test purposes

I'm currenlty trying to connect/join a Linux Docker Swarm cluster with my Windows machine in order to test a stack without sending the stack over and over to my test cluster under Linux. My problem is ...
1
vote
0answers
107 views

Running MySQLite3 with PHP PDO in a Docker Container

I'm currently trying to build a site in a Docker container running in an Ubuntu VM, which has Apache and PHP installed already. I want to be able to access Sqlite3 features with PHP using PDO. ...
0
votes
2answers
40 views

What is the most common server permission policy for web application deployment?

I have a server with Ubuntu with a web server (Apache or Nginx) running a PHP application. The application consists of the following parts: An executable code that handles HTTP requests (say in the /...
0
votes
1answer
24 views

how to run an Ansible command for specific number of hosts

I am new to Ansible and i have a question about limitting hosts in a host group at running commands.I have these host groups in my inventory: [primary] host1 host2 [standby] host3 host4 ...
0
votes
1answer
43 views

How can I access the console of a booting EC2 instance in AWS?

I'm new to AWS and am looking for a way to access my EC2's console so I can triage issues such: boot to single user mode view console output as system boots gain console access to debug GRUB issues