IBM Bluemix is not showing logs of virtual machine on site with official ubuntu 16.04 virtual machine cloud image.
Logs:
mt-logstash-forwarder.service: Service hold-off time over, scheduling restart.
ubuntu-16 systemd[1]: Stopped Multi-tenant Logstash Forwarder.
ubuntu-16 systemd[1]: mt-logstash-forwarder.service: Start request repeated too quickly.
ubuntu-16 systemd[1]: Failed to start Multi-tenant Logstash Forwarder.
This is bug of systemd 219 inubuntu 16.04. Upgrade to systemd 231 fixed this error.
Because of systemd 231 compiled for ubuntu 16.10 and stored in ubuntu yakkety repository you need to add this string
deb http://cz.archive.ubuntu.com/ubuntu yakkety main
into file /etc/apt/sources.list and then run this command:
sudo apt-get install --upgrade systemd
I have installed redis-server by apt-get under ubuntu 16.04.
It works for me after:
apt-get update
sudo apt-get install --upgrade systemd
Keep original redis.service systemd script.
Related
I'm building a new web server on a new M1 Mac Mini running the latest version of Big Sur, fresh install. Only thing I have done to the machine is install Chrome.
I'm installing Apache with the following:
Install xcode command line tools: xcode-select --install
Install Homebrew: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Install missing libraries: brew install openssl
Check to see if apache is running, remove any scripts:
sudo apachectl stop
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null
Install httpd: brew install httpd
Configure autostart: brew services start httpd
At this point, httpd is running fine, and I can see the pages at http://localhost:8080
And I can confirm httpd starts up fine after reboot.
Issue is, I can't shut it down. if i issue the command brew services stop httpd, I get the following:
Mac-mini / % brew services stop httpd
Stopping httpd... (might take a while)
==> Successfully stopped httpd (label: homebrew.mxcl.httpd)
Mac-mini / %
Activity monitor still shows multiple instances of httpd running, though.
The only way to shut it down is either quit it in actvity monitor or issue the command
sudo apachectl -k stop
Any suggestions of why niether of the following commands work or how to track down the issue?
brew services stop httpd
brew services restart httpd
I am using Google Cloud Platform to test out ModSecurity and I am using a tutorial to launch it. However, I need to restart Apache every once in a while. I'm using Ubuntu 18.04. I write sudo systemctl restart apache2, but an error comes back and it says Failed to restart apache2.service: Unit apache2.service not found. What should I do?
Did you install apache2 first ?
sudo apt install apache2
For those who run into the same issue using Debian
I did have apache2 installed and running as was confirmed by apache2.service | loaded active running.
I still tried to install it.
I did also get the same error Failed to restart apache2.service: Unit apache2.service not found
How I got apache2 to restart
Using: Debian (9.13)
sudo service apache2 restart
or by typing
sudo apachectl stop
sudo apachectl start
Type sudo apt install apache2
To start the apache service type
sudo systemctl start apache2
if you tried to install it and still got the same problem , you can update it , try :
apt-get update
I followed below steps to install Redis on CentOS. But Redis 3.2.x version got downloaded, I want more recent version (i.e 4.0.11 or 5.0.x) to be downloaded.
I need steps how to upgrade the Redis current installation? I used below steps while installation
We can use yum to install EPEL:
sudo yum install epel-release
As soon as we finish installing EPEL, we can use yum once again to install Redis:
sudo yum install redis
After a few minutes this installation will be completed and then you can start the Redis service:
sudo systemctl start redis.service
There is always the chance for Redis to start on boot, all you have to do is enable it through the enable command:
sudo systemctl enable redis
If you want to check Redis`s status you should run the following:
sudo systemctl status redis.service
I have found the Remi repository keeps up with the latest binaries. While you can add them to your repos (see https://rpms.remirepo.net), you can just point yum directly at the rpm file there as well (e.g. yum install -y http://rpms.remirepo.net/enterprise/7/remi/x86_64/redis-5.0.0-1.el7.remi.x86_64.rpm).
Edit: Regarding an upgrade, I assumed you don't have any data at this point, so I would suggest a quick yum uninstall redis before installing the latest. If you really need to upgrade with data and all, you need to just be sure to preserve your persistent data files and replace them before starting the new version.
my setup,
am using virtual box vm for installation of weblogic server fmw_12.2.1.1.0_wls.jar on top of Ubuntu 16.04 server
installed oracle java using
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
now java is installed in /usr/lib/jvm/java-8-oracle/jre/bin/java and i have set java_home = /usr/lib/jvm/java-8-oracle
have placed the file fmw_12.2.1.1.0_wls.jar in /usr/lib/jvm/java-8-oracle
when trying to install weblogic server from /usr/lib/jvm/java-8-oracle using java -jar fmw_12.2.1.1.0_wls.jar it fails with the error message as
preparing to launch the oracle universal installer from /tmp/OralInstall2016
Exception in thread "main" java.long.UnsatisifiedLinkError: /usr/lib/jvm/java-8-oracle/jrelib/amad64/libawt_xawt.so:libXender.so cannot open shared object file: no such file or directory
Please advise
You're missing pre-requisites. Perhaps there are more, but the one you're referred is because of missing X-Windows subsystem. Easiest just to invoke:
$ sudo apt install -y xterm
I hope it will help,
Jarek
I am trying to install Cobbler on a brand new Ubuntu 15.10 virtual box but it is not working. When I run the apt-get install cobbler cobbler-web it seems to break apache completely to the point I can't get it working again.
I see this in the apache error log:
[wsgi:crit] [pid 8112:tid 140273573488512] mod_wsgi (pid=8112): The mod_python module can not be used on conjunction with mod_wsgi 4.0+. Remove the mod_python module from the Apache configuration.
and this in the auth.log:
polkitd(authority=local): Unregistered Authentication Agent for unix-process:8081:54865 (system bus name :1.24, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
I have tried removing the mod_python and wsgi modules but apache still doesn't start up. And I think Cobbler uses them anyways, so I kind of need them.
I have also tried disabling polkitd. I don't find any clues when searching for that weird error message.
I was able to install Cobbler on Ubuntu 14.04 pretty easily and apache works fine.
Here is the basic chain of install commands I used:
apt-get update
apt-get install apache2
apt-get install isc-dhcp-server
apt-get install bind9 bind9utils bind9-doc
apt-get install cobbler cobbler-web debmirror mkisofs
Disable the module by typing sudo a2dismod python
You should then see this:
Module python disabled. To activate the new configuration, you need to
run: service apache2 restart
So type sudo service apache2 restart.
If that doesn't fix it, check the error log for more information by typing
cat /var/log/apache2/error.log.