launcher.gcr.io/google/jenkins2 does not draw chart - jenkins

I am using launcher.gcr.io/google/jenkins2 to run jenkins in gcp kubernetes engine.
Everything seems ok except that I get Could not initialize class org.jfree.chart.JFreeChart error for every chart that jenkins attempt to draw. I googled the error and almost everyone solves that with adding -Djava.awt.headless=true. As you can guess I already tried that and it does not work.
Ideas?

One other possible solution/workaround is seen in JENKINS issue 39636:
I installed libxext6 libxrender1 fontconfig libfontconfig but it didn't help. After that I also installed libjfreechart-java but I still have the same problem.
Commenting out the assistive_technologies line in /etc/java-8-openjdk/accessibility.properties solved it.
You can see that recommendation in tianon's comment of that answer:
In my case it ended up being bugs.debian.org/798794 (from "Assistive technology not found error while building aprof-plot").
Adding "RUN sed -i 's/^assistive_technologies=/#&/' /etc/java-8-openjdk/accessibility.properties" to my Dockerfile fixed it. :)

Related

Sawtooth network and CoopEdge - installation problem with dockerfile

I'm learning about blockchain and now I'm starting with Sawtooth network as I have heard that it's quite popular. I came across and research paper about CoopEdge and it's very interesting (github link: https://github.com/coopedge/prototype).
However, I don't know clearly how to make this work. I personally send an email and still don't have the response so I have to try it with basic knowledge (blindly, somehow). There are two folder sawtooth-core and sawtooth-poer. I went with poer because the publication was talking about it. There are two type of dockerfile - docker-compose.yml and docker-compose-installed.yaml. I installed the first one with docker-compose and there was no problem. However, when I tried to install the latter one I keep getting the error:
Step 9/13 : RUN export VERSION=$(./bin/get_version) && sed -i -e "0,/version.*$/ s/version.*$/version\ =\ \"${VERSION}\"/" Cargo.toml && /root/.cargo/bin/cargo deb --deb-version $VERSION
---> Running in 7d244fc29e30
/bin/sh: 1: ./bin/get_version: Permission denied
91mcargo-deb: Argument to option 'deb-version' missing
I tried several methods by searching the internet but no luck so far. I also tried to install with root (sudo -i) but still it doesn't work at all.
Another thing is I don't know the second docker-file is mandatory for installation as there is no document or guidance provided by the author.
I appreciate any help that could solve this permission problem. Thank so much.
P.s: I'm using virtual machine with Ubuntu 18.04.

screen docker desktop tty

I try to screen into docker desktop vm using screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty, which work previously. But today is said Cannot execute "/Users/myusername/Library/Containers/com.docker.docker/Data/vms/0/tty": Operation not permitted. I search and found solution saying setting security and privacy of system preference which I did follow (below image). But still I got the errors, can anyone help?
While I don't understand the reason for this issue, I experienced the same, and the following helped for me:
Make the tty file readable:
chmod 400 ~/Library/Containers/com.docker.docker/Data/vms/0/tty
Do not try to execute that file, but read its contents:
screen $(cat ~/Library/Containers/com.docker.docker/Data/vms/0/tty)
Not the most beautiful solution, but works form me.
It seems the problem in recent Docker versions(Github issue). I tried many ways to workaround before downgrading the Docker. Finally, Docker version stable 2.3.0.2(45183) work for me

Jenkins sphinx-build not found

I'm using default sphinx-quickstart and Ubuntu 18.01
I'm having this issue with Jenkins when I try to do make html
/bin/sh: 1: sphinx-build: not found
Makefile:19: recipe for target 'html' failed
It works fine when I do the make html while in a terminal...
What could be the issue?
More information: I'm using the same user (tested with whoami) and I have installed sphinx using pip
I found a workaround based on one answer here
I changed the SPHINXBUILD to SPHINXBUILD = python -m sphinx. I'm not sure this is the best way to do it, but at least it works.
I'm pretty sure my original bug has something to do with make and sh executing on its own context and not finding sphinx-build. If someone has a better answer, please post :)

Cannot install dvdcli on my CentOS 7 host

I tried to install dvdcli on my mesos master.
I typed the following line in the console. But I get forbidden error.
I even tried to do a direct download. Still I get forbidden error.
curl -sSL https://dl.bintray.com/emccode/dvdcli/install | sh -s stable
Can someone help?
Its not just you https://github.com/rexray/dvdcli/issues/37. That was posted back in June and its still unresolved.
Also Dell is no longer funding the open source Code Team initiative https://blog.thecodeteam.com/2018/02/22/final-thank-code-team/ so I'm not sure about the future of the project. I have not been following it closely. I would suggest reaching out to on https://github.com/rexray/dvdcli/issues/37. Hopefully someone will have an answer for you there

Docker mkimage_yum.sh for centos 7 fails

A little confused at the moment. I've got docker on one my servers and as it doesn't have internet access, I'm trying to build a base image for centos7.4. The nice Docker site has a mkimage_yum.sh script for this purpose, but it consistently fails when it tries running:
yum -c /tmp/mkimage_yum.sh.gnagTv/etc/yum.conf --installroot=/tmp/mkimage_yum.sh.gnagTv -y clean all
with a "No enabled repos" error. The thing is, if I enter "yum repolist" I get back 17 entries, and I have manually tried to set several repos to enabled. Yet, this command still fails, and I do not understand what could be missing.
Anybody have some idea of what I can so this succeeds?
Jay
I figured out why this was failing, the docker file for mkimage_yum.sh does not contain the proper code if you're storing your repos in /etc/yum.repos.d, it assumes that everything is in /etc/yum.conf. This is really not correct, and it causes one of the later yum clean operations to fail. I fixed it, but I cannot upload the change as the server has no internet access.

Resources