When attempting to attach an agent jar file onto another process running in java, I have came across the exception: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded I was running linux, with java Oracle JDK 8_101, however afte…
Tag: linux
Can’t resolve monitoring-influxdb on Kubernetes with heapster and kube-dns
I am trying to get Heapster working on my Kubernetes cluster. I am using Kube-DNS for DNS resolution. My Kube-DNS seems to be set up correctly: kubectl describe pod kube-dns-v20-z2dd2 -n kube-system kubectl describe svc kube-dns -n kube-system kubectl describe ep kube-dns -n kube-system kubectl exec -it busyb…
PostgreSQL COPY FROM STDIN not working, but FROM PATH works
In PostgreSQL I previously created a table like so: The idea is to import multiple csv files into this table. My approach is to use COPY … FROM STDIN instead of COPY … FROM ‘/path/to/file’, as I want to be able to cat from the shell multiple csv files and pipe them to the sql script. T…
sdist/bdist_wheel not including pyc in Linux but is included in Windows
I am trying to create a Python distribution where I have to include both the source and the compiled binary. (Yes, I read arguments against/for adding .pyc, but my use case requires the .pyc to be added). Running my steps in Windows, both the source and compiled binaries are added in the output file (I used b…
Getting error as “initializing endpoint: java.net.BindException: Address already in use /127.0.0.1:8080” while installing JBoss AS7
Here I’ve installed JBoss AS 7.1 in AWS ec-2 linux instance. Please help before marking it as duplicate as many SO questions are already available but nothing helped me here. The server is running successfully It’s only accessible for http://localhost:8080 and from the other machines, here I want …
psql – Mac trying to connect postgreSQL in Ubuntu system installed in a virtual machine in remote server
Apologize in front, maybe the situation here is a bit complicated. I searched everywhere online but couldn’t find a perfect solution, plus I have tried almost all the solutions mentioned in other posts. Situation: So I have a postgreSQL database installed in a Ubuntu system. The system is actually a vir…
Dotnet core segmentation fault on linux
I have used AngleSharp to parse a website in a Dotnet core App It works fine in Windows but on Debian It crashed with this error : Segmantion fault the url that I had for parsing was https when I replaced it with an http url, It worked! Answer The problem caused by conflicting between two version of libssl. Y…
PHP – Concern running bash scripts through website
I am working on a game panel and I building it in PHP and BASH. So, the web panel controls the game severs by running bash scripts when buttons are pressed. So far so good. My problems come when I need to run the bash scripts because the user running them needs sudo privileges or the scripts will have a
How can I get a guarantee that when a memory is freed, the OS will reclaim that memory for it’s use?
I noticed that this program: which allocates 3 memories, 3 times and each time frees different memory, frees the memory according to watch free -m, which means that the OS reclaimed the memory for every free regardless of the memory’s position inside the program’s address space. Can I somehow get …
Mount entry in fstab with go
Is there a way to mount a ssh device with Go using an entry in fstab where the mount options are defined. I have been trying syscall.Mount without success. 2018/01/20 11:31:07 operation not permitted exit status 1 A user mount using the fstab entry works fine. sshfs#jeanluc@<remote IP>:/home/jeanluc /ho…