How to remove MySQL completely with config and library files?

So far I've tried the following commands: sudo apt-get remove mysql-server mysql-client mysql-common sudo apt-get purge mysql-server mysql-client mysql-common sudo apt-get autoremove But...

Disable pidfile for celerybeat

celeryd doesn't require a pidfile, but celerybeat seems to. Is there any way to disable it? I'm using Upstart to manage processes so using a pidfile is redundant.

how to automatically restart a node server?

We are finishing development of a project, the client is already using it but occasionally some errors occur - crashing the server. I know I could register a service as 'upstart' script on linux,...

GtkWarning could not open display - how can I notify-send from my daemon

I have a python-2.7.4 daemon script that uses the following command: from os import popen cmd = 'notify-send --icon=ICON_FILE --urgency=critical -t 10000 \'SCRIPT_NAME\' \'Here is my...

How do I start cron on docker ubuntu base?

I have installed cron via apt-get install cron Trying to start cron fails (as expected) because of upstart not running. What is the command line for starting cron properly (i.e. it will read...

how to set ulimit / file descriptor on docker container the image tag is phusion/baseimage-docker

I need to set the file descriptor limit correctly on the docker container I connect to container with ssh (https://github.com/phusion/baseimage-docker) Already tried: edit limits.conf the...

How can I find a Docker image with a specific tag in Docker registry on the Docker command line?

I try to locate one specific tag for a Docker image. How can I do it on the command line? I want to avoid downloading all the images and then removing the unneeded ones. In the official Ubuntu...

Why can't I start my gunicorn server? "Connection in use"

Any ideas why my gunicorn server won't start? [email protected]:~$ sudo /home/jeffy/django_files/django_test_venv/bin/gunicorn -c /home/jeffy/django_files/django_test_venv/gunicorn_config.py...

docker stop doesn't work for node process

I want to be able to run node inside a docker container, and then be able to run docker stop <container>. This should stop the container on SIGTERM rather than timing out and doing a SIGKILL. ...

How to restart puma after deploy?

I'm using Rails, Puma, Capistrano3. I have installed the gem capistrano3-puma as well. I started Puma with Puma Jungle https://github.com/puma/puma/tree/master/tools/jungle/upstart How do I...

Changing the default port for iPython notebook server / Jupyter

I am trying to run an ipython notebook / jupyter server on a machine behind a firewall. The only port which is open is port 80. So was wondering how I can change the default port from 8890 to...

enable to program FPGA

I'm trying to program the FPGA and boot over an SD card in xc7z020-clg400-1 zynq chip inside parallella, I can't figure out where is the problem, I have did vivado design , generate bitstream,...

Socket Error: Errno 111 Connection Refused

im trying to connect to a locally hosted HiveMQ broker using a RaspberryPi Virtual Machine (Using Oracle VM VirtualBox). im using Mqtt.fx aswell as a second client to look at if the published...

How to use the Docker remote API?

I installed Docker on Ubuntu 14.04, and it works fine. Under etc/default/docker I have this configuration: # Docker Upstart and SysVinit configuration file # Customize location of Docker binary...

Upstream prematurely closed FastCGI stdout while reading response header from upstream

I suddently get a 502 Bad gateway error and I don't understand why this error appear. This error appear moreover only for 1 single page!!... The exact error in my Nginx log is : Upstream...

Can I import a Golang package based on the OS I'm building for?

Say I have a go project that based on which OS, and in some cases which distro, I want to use say a Systemd client package vs an Upstart client package vs a sysv client package vs a launchd client...

Why won't my Upstart service start after reboot?

I have a golang script I want to always be running, and it should restart on reboot. I have a corresponding gopush.conf file in /etc/init/: start on filesystem or runlevel [2345] stop on runlevel...

Can I access K8s ClusterIP from k8s node directly?

I am using k8s 1.2 on ubuntu 14.04.4. Here is some info on my one k8s minion node: # cat /etc/os-release NAME="Ubuntu" VERSION="14.04.4 LTS, Trusty...

Airflow upstart script enters stop/waiting state immediately after start/running state

I'm trying to run this upstart script from the official repo for airflow: https://github.com/apache/incubator-airflow/blob/master/scripts/upstart/airflow-webserver.conf start on started...

undefined reference to `sd_notify'

I have a process which creates a lot of processes, I want to identify(get the pid) of one of the children. Looping through children would take a lot of resources(don't ask why). SO I'm trying to...

Not able to use systemd on ubuntu docker container

Problem It seems systemd is not active or available in Ubuntu Docker containers. Setup I'm running Docker containers from the ubuntu:16.04 and ubuntu:16.10 images. Tests If I execute: systemctl...

Connection refused by Docker container

I've struggled with this for quite some time. I have a Django application and I'm trying to package it into containers. The problem is that when I publish to a certain port (8001) the host refuses...

AWS ElasticBeanstalk .ebextensions not being executed

I am trying to get a few things completed post deploy on AWS EB. I have added my .ebextensions to the git repository and I only have one file 01_container_commands.config, it does not appear to...

How can I get Zeppelin to restart cleanly on an EMR cluster?

I am running an EMR cluster and trying to use a Zeppelin notebook for data analysis. Versions: Release label:emr-5.2.1 Hadoop distribution: Amazon 2.7.3 Hive 2.1.0 Spark 2.0.2 Zeppelin 0.6.2 I am...

Ubuntu AWS instance reachability check failed

I've recently added more storage to the /dev/sda (it was 8GB..made it to 150GB) by stopping the instance, detaching the volume and adding storage and reattaching and then starting the instance. I...

ModuleNotFoundError: No module named celery

Working on the celery upstarting for my flask project. When using the upstart command(sudo /etc/init.d/celeryd start) I get celery init v10.1. Using config script: /etc/default/celeryd Traceback...

Ansible failed to complete because of deprecated Python even though Python 3 is installed

I'm trying to run LaunchKit from google to get some app screenshots. I've gone through all of the steps on the GitHub page (https://github.com/LaunchKit/LaunchKit) for the open source code. After...

Node JS running on Synology Nas, accessing ssh Windows Powershell, port forward, Linux upstart (.conf) script running the app.js permanently

The Nas I used at home has installed Node JS v12 from Synology's package center. So I thought it would be cool to create a Node JS http webserver and study myself into back-end and front end...

Ret2LibC: system() argument "/bin/sh" throws error

I'm trying to perform a Ret2LibC attack. My buffer to return address offset is 24 bytes. Therefore the first 24 bytes of my "bad file" are AA, and I overwrite the return address in th next 4 bytes...

SpringBoot deployment on Ubuntu with logback configuration fails with FileNotFoundException (Permission Denied)

I am trying to deploy simple SpringBoot application on ubuntu server as an Upstart service. This application has logback-spring.xml configuration which points to exact same location where the...

Relevant tags