How can I find out where a Perl module is installed?

How do get the path of a installed Perl module by name, e.g. Time::HiRes? I want this just because I have to run my perl script on different nodes of a SGE Grid Engine system. Sometimes, even run...

"UNPROTECTED PRIVATE KEY FILE!" Error using SSH into Amazon EC2 Instance (AWS)

This is probably a stupidly simple question to some :) I've created a new linux instance on Amazon EC2, and as part of that downloaded the .pem file to allow me to SSH in. When I tried to ssh...

How do you do a simple "chmod +x" from within python?

I want to create a file from within a python script that is executable. import os import stat os.chmod('somefile', stat.S_IEXEC) it appears os.chmod doesn't 'add' permissions the way unix chmod...

npm install errors with Error: ENOENT, chmod

I am trying to globally install an npm module I just published. Every time I try to install, either from npm or the folder, I get this error. npm ERR! Error: ENOENT, chmod...

Single command to create a file and set its permission

I am using the following 2 commands to create a 0B file and set its extn to 644 touch filename.ext chmod 777 filename.txt My question is that whether there is any single command in unix (korn...

Specifying index path with Hibernate Search and Spring

I have problem setting the correct path for my index. It would be great if it was inside my spring application, since it would work even after I deploy my application to Cloudbees I guess. This is...

RabbitMQ command doesn't exist?

OS: Mac OSX 10.9 I have rabbitmq installed via home brew and when I go to /usr/local/sbin and run rabbitmq-server it states that: rabbitmq-server: command not found even as sudo it states the same...

Clone private git repo with dockerfile

I have copied this code from what seems to be various working dockerfiles around, here is mine: FROM ubuntu MAINTAINER Luke Crooks "[email protected]" # Update aptitude with new repo RUN apt-get...

SITE CHMOD command failed through ftp, can't figure out why

Using FTPClient for .NET 2.0. I'm connecting to a vsftpd server and I'm able to write the file, but I'm unable to run the command. I've supplied the code below. I'm also able to run QUOTE SITE...

Why does SetSUID not work for shell script?

I am trying to create a executor program for regular users on linux with SUID bit set so whatever commands, passed to the program as parameters, get executed with root permission. However when I...

nginx - phppgadmin - *1 access forbidden by rule

I want to setup phppgadmin, postgresql is already - done by following this article but I have nginx, I did so far these configs: ln -s /usr/share/phppgadmin...

Can Elixir or Erlang programs be compiled to a standalone binary?

It says that Elixir has a tool called elixirc and Erlang has a tool called erlc to compile modules for use. It says immediately after this that you can then run code with the elixir command line...

On mac OS X terminal, how to see what user created file

I would like to see what user creates my log files for my php project. Strangely enough, PHP can create the files but it can't write to them so I have chmod them all the time. I would like to see...

Error creating AWS CloudFormation Stack (AMI cannot be described)

I want to create a Amazon Web Services stack (CloudFormation) (clicking the New Stack Button to create a new AWS CLoudFormation Stack) based on this template: { "AWSTemplateFormatVersion" :...

standard_init_linux.go:178: exec user process caused "exec format error"

docker started throwing this error: standard_init_linux.go:178: exec user process caused "exec format error" whenever I run a specific docker container with CMD or ENTRYPOINT, with no regard to...

getting a java.lang.ClassNotFoundException when starting a Docker container

I am having a problem starting a .jar file within a Docker Container. The error message I am getting is: Exception in thread "main" java.lang.ClassNotFoundException: ccinfw.MainApplication I...

There is no existing directory at /storage/logs and its not buildable: Permission denied

I have a problem with my Laravel deployment on a OVH web server. After made composer update php artisan cache:clear php artisan route:clear php artisan dump-autoload I have this...

Git hooks: '.git/hooks/pre-commit': Operation not permitted

This is all on OS X Mojave. I’m trying to block myself from mistakenly making commits to the master branch, because that is a thing I do a little too often, using the pre-commit Git hook from...

Android Command line tools sdkmanager always shows: Warning: Could not create settings

I use the new Command line tools of android because the old sdk-tools repository of android isn't available anymore. So I changed my gitlab-ci to load the commandlintools. But when I try to run it...

homebrew error The following directories are not writable by your user:

When I tried to install Python 3 through Homebrew, I got the following message. How can I fix this error? I’m not familiar with command line, so I would appreciate if you could provide me with...

What is the best way to use Docker for Entity Framework core update with Postgres?

Background I am building an API to hold user info in a Postgres DB, using dotnet core and EF core. I do not think it has any impact on the question following but for a background explanation, I am...

How to upload large docker images to google container registry?

I'm creating a lap image from this (https://github.com/ulsmith/alpine-apache-php7) and in my application, I have a 2.5 GB folder of images the image is built successfully but when I try to push it...

Unable to install pip azure-cognitiveservices-speech within a docker container

Original Issue I'm unable to install azure-cognitiveservices-speech within a docker container using pip. My container is running fine and is able to install all other packages (django,...

How to get rid of cryptography build error?

I am trying to build a dockerfile but the problem is when it trying to build specifically cryptography is not building. MY Dockerfile FROM python:3.7-alpine ENV PYTHONUNBUFFERED 1 RUN apk update...

EACES permission denied when trying to launch an installed Symfony "Akeneo PIM" with Docker

I started my first internship on monday and I'm working on a PIM created by Akeneo, which is build using Symfony. They have a nice guide to install it on their website and I figured i'd learn...

npm WARN old lockfile The package-lock.json file was created with an old version of npm

I've a dockerfile as below but during RUN npm ci step, there is a warning npm WARN old lockfile The package-lock.json file was created with an old version of npm which i can not able to figure...

DockerFile in ./docker/8.0 vs DockerFile in ./vendor/laravel/sail/runtimes/8.0

Good day, I got stumbled to a peculiar issue. I'm a newbie in Laravel Sail with Docker. When I change the laravel service context to point to DockerFile in ./docker/8.0 which I used to add some...

Laravel application hang on Google Cloud Run but runs fine on home setup

I am testing out Google Cloud Run as a platform to run a new project. Project is developed using NodeJS and Laravel. Created a docker images based on php-fpm. This image runs fine on my dev...

How can I install php8.0-ssh2 from an Alpine Docker image

Here is the Dockerfile (see below) that I use for my projects. Could you explain to me how to install php8.0-ssh2 from this Dockerfile. FROM php:8.0.0-fpm-alpine ARG UID ARG GID RUN apk add...

How to to trace malware orignation on ubuntu server and stop it

I have a ubuntu server with self hosted giltab-ce and two days ago my server started using 400% CPU. My hosting provider advised me to update my Gitlab (which was version 13.6.1), that I updated...