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
1
vote
0answers
9 views

Issue building deb package using Docker/Windows

I am trying to create a way for our developers to be able to build deb packages from their Windows machines. We would like to reuse what we have for *nix so I've written a few batch scripts which are ...
2
votes
1answer
51 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 ...
0
votes
2answers
13 views

How to analyze the file activities due to process?

I need to analyze the file i/o operations caused due to a process. So I would like to know, which all files are affected by this program. Is there a tool for this particular use case?. One of our ...
0
votes
0answers
26 views

How to read from syslog? [closed]

I can write to syslog via: logger "foo bar baz" but how do I read from syslog? my only guess is: tail -f /var/log/syslog but that doesn't seem right from my testing. Note: also looking for a way ...
0
votes
0answers
69 views

What is the best method to start and stop an application?

I have some scripts to start and stop a java application which using jenkins. First option Check the port and kill pid if java is running. And then start the application. Second Option Write the ...
1
vote
2answers
568 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 ...
0
votes
0answers
7 views

Recover files from glusterfs server

Is there anyway to recover files from glusterfs server? There is .glusterfs folder with the files inside but it's coded/mapped for glusterfs server probably
1
vote
1answer
99 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
1answer
63 views

How can container user and host user both have access to same files in volume?

I'm using Docker namespaces in an effort to allow files created within a volume to be arbitrarily read and written to by both the container user and the host user (please let me know if this is even a ...
0
votes
1answer
18 views

AWS instance store volume - Create volume when instance is stopped/started thru SystemD(centos)

have an instance store volume(faster/cheaper) which we would like to create a volume(mkfs) when the instance is stopped and started via systemd. Is the best way for this is to have a shell script and ...
56
votes
8answers
78k 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?
1
vote
2answers
98 views

using copy module with wildcards

I need to copy a database backup file from a primary server to a standby server. Since I can't use synchronize, I was following this method: copy file to local ansible server from primary, then, copy ...
0
votes
0answers
23 views

How do I install kubeadm on RHEL 8.x?

I am using RHEL 8.x in AWS. I cannot install kubeadm because when I try "sudo yum -y install kubeadm" I get No match for argument: kubeadm Error: Unable to find a match The directions I found ...
2
votes
2answers
115 views

Docker compose volume syntax valid for Windows and Linux

We have developers working on an app using both Windows and Linux. The application is built within a Docker container, and ships a docker-compose specification for the build environment. The local ...
0
votes
0answers
7 views

Kernel random numbers generator fails on VMWare in a Debian VM - “Cannot find a hardware RNG device to use”

On a VMWare hypervisor in Apache CloudStack context, I get the following error with Debian 10: Aug 19 18:52:10 vm-ednus-1046 rng-tools[632]: Starting Hardware RNG entropy gatherer daemon: (Hardware ...
0
votes
0answers
15 views

Why access is denied by GitHub when docker-compose is run to start docker containers?

I would like to set up airflow with docker on MacBook Pro with macOS 10.14.x. I have got zpencerq/docker-airflow:1.10.2 and followed the instructions at https://docs.docker.com/compose/install/#...
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 ...
1
vote
1answer
24 views

reboot server during Ansible tasks

I have 3 scripts that must be run on server one by one. for example: - name: find config shell: /data/scripts/config1 become: yes become_user: root tags: find_config - name: change config ...
0
votes
2answers
31 views

copy contents of file on ansible server to another file on remote servers

I have a bash script on about 70 severs in /opt/zservice/etc/config that i want to change its content with ansible. the new content is on ansible server in this path /data/new_config. how i can use ...
1
vote
2answers
33 views

Which Users Should I Create With Terraform And Which With Ansible?

I am creating some Ubuntu VMs in Azure with Terraform. I am then configuring the VMs with ansible. When terraform creates the VM it creates an admin user resource "azurerm_virtual_machine" "main" { ...
0
votes
2answers
44 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
123 views

docker swarm init made docker go corrupted

I started learning docker recently and I set up a virtual machine (VirtualBox) with Lubuntu image: Linux verion: Linux 4.18.0-10-generic i686 Docker version: 18.06.1-ce, API-version: 1.38, Go version:...
0
votes
0answers
19 views

Build custom Linux distro ISOs with Docker?

Is it actually possible to use Docker containers as build environments for popular Linux distros like Ubuntu, Debian, CentOS, CoreOS or will be there some limitations? That is, output would be an ...
1
vote
1answer
19 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.
0
votes
1answer
19 views

how to give a user privilege to run Ansible commands or just an specific tag?

for example, I have a tag named 'installagent' and i want to run this command ansible -playbook -i /path agent.yml --tags installagent from another server via ssh on my Ansible server with user '...
0
votes
1answer
26 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 ...
3
votes
2answers
123 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 ...
0
votes
1answer
147 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
-1
votes
1answer
19 views

Utilise AWS IoT on non-supported hardware

Before I dig in too far, is there any way I can use any of the AWS IoT core functions on non-supported hardware? I can use the AWS Node.js libraries that are available (for my hardware), but I don't ...
4
votes
2answers
2k 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:...
0
votes
2answers
46 views

What Ansible does in cases there's a conflict between OS version and some software Ansible manages?

Say I use an IaaS cloud on which I installed Ubuntu 18.04 manually via the cloud company's OS installation tool and I ought to establish an all-ansible LAMP environment that will include some more ...
-3
votes
1answer
242 views

How can CaaS, PaaS, and FaaS users know if the operating system of their server environment is of the newest release?

Please consider this chart a moment; it shows the different hosting models common today: From the chart I learn that CaaS, PaaS and FaaS are three hosting-models by which a user can't control the OS ...
0
votes
1answer
63 views

Install minimal dependencies with apt

I have a simple Dockerfile which looks like the following FROM debian:stretch-slim as builder COPY . my_project/ RUN apt-get update && apt-get install -y build-essential libpqxx-dev libtbb-...
1
vote
1answer
61 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 ...
0
votes
1answer
19 views

What is the common term for Apache virtual hosts or Nginx block systems?

A webserver environment as with Apache or Nginx includes a type of file (or a file system) that I can call a webserver substrate; In Apache it is called a Virtual host and in Nginx I can call it a "...
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
votes
1answer
52 views

A cloud technology with automatic upgrades of my OS-release and web server release?

I desire a cloud technology that will redund my need of using Vagrant to continuously integrate OS release upgrades (say from Ubuntu 18.04 to 20.04 including all software installed by apt-get --- ...
0
votes
3answers
52 views

SSH tunneling to hosts deployed behind firewalls

I'm working on a deployment that will require me to place Ubuntu servers that monitor industrial equipment at various sites and behind firewalls that are out of my control. I need to maintain SSH ...
2
votes
1answer
386 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 ...
0
votes
3answers
56 views

Availability/Reproducibility of Ubuntu Minimal as Docker image

While for Debian you find on Docker Hub "slim" distributions, it seems not the case with Ubuntu. Now there is a "minimal Ubuntu for public clouds" distro from Canonical, but I can find just cloud VM ...
0
votes
1answer
413 views

How to redirect tomcat logs TO console?

So I have a problem that is the reverse of what everyone else on the internet wants.. I want to take tomcat logs that are being written out to /usr/local/tomcat/logs and have them be output to console ...
1
vote
1answer
297 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 ...
3
votes
2answers
1k 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 ...
4
votes
2answers
351 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 ...
9
votes
1answer
768 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 ...
2
votes
2answers
232 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 ...
6
votes
6answers
308 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 ...
0
votes
0answers
2k views

How to debug a docker on web app for containers in Azure which does not start

I am able to run my containers locally. I published them to container registry. And the deployment from container registry to web apps for containers is successful. But the service does not turn ...
-2
votes
1answer
19 views

DirectAdmin 2 users same folder

So I'm still a rookie in devops but I am looking for a way where we can link a folder from user1 to a folder from user2. I guess its sort of a symbolic link? How would you do something like that? Or ...
1
vote
0answers
605 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....