i have been trying to install mariadb on my ubuntu machine but the error ii keep getting is shown on the link below
https://imgur.com/9LOtUk9 "Error Image"
tried uninstalling mysql and mariadb nd reinstalled mariadb all over again
apt-get install mariadb-server
my expected result is below when i try to check the status after installation
mariadb.service - MariaDB 10.3.10 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: active (running)
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Main PID: 15152 (mysqld)
Status: "Taking your SQL requests now..."
CGroup: /system.slice/mariadb.service
└─15152 /usr/sbin/mysqld
Related
I want to install Rstudio after I have installed R on my ubuntu 20.4
Everything is fine till I want to execute the actual installation with
sudo gdebi rstudio-server-1.3.1073-amd64.deb
rstudio-server.service - RStudio Server
Loaded: loaded (/lib/systemd/system/rstudio-server.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2020-08-17 11:35:12 CEST; 11ms ago
Process: 128920 ExecStart=/usr/lib/rstudio-server/bin/rserver (code=exited, status=127)
Why do I get the (code=exited, status=127) and how can I solve it?
Thanks
I had the same issue and solved it by getting to the one for Ubuntu18/Bionic Beaver instead:
https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.2.5042-amd64.deb
sudo apt install gdebi
sudo gdebi rstudio-1.2.5042-amd64.deb
I am newer to nginx and am getting this error message while
sudo apt-get install nginx
can any one help me to fix this
nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2017-08-28 15:12:09 IST; 20ms ago
Docs: man:nginx(8)
Process: 6656 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Aug 28 15:12:09 onlyoffice systemd[1]: Starting A high performance web serv.....
Aug 28 15:12:09 onlyoffice nginx[6656]: nginx: [emerg] open() "/etc/nginx/ng...)
Aug 28 15:12:09 onlyoffice nginx[6656]: nginx: configuration file /etc/nginx...d
Aug 28 15:12:09 onlyoffice systemd[1]: nginx.service: Control process exite...=1
Aug 28 15:12:09 onlyoffice systemd[1]: Failed to start A high performance w...r.
Aug 28 15:12:09 onlyoffice systemd[1]: nginx.service: Unit entered failed state.
Aug 28 15:12:09 onlyoffice systemd[1]: nginx.service: Failed with result 'e...'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package nginx-full (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
nginx depends on nginx-full (<< 1.13.3-0+xenial1.1~) | nginx-light (<< 1.13.3-0+xenial1.1~) | nginx-extras (<< 1.13.3-0+xenial1.1~); however:
Package nginx-full is not configured yet.
Package nginx-light is not installed.
Package nginx-extras is not installed.
nginx depends on nginx-full (>= 1.13.3-0+xenial1) | nginx-light (>= 1.13.3-0+xenial1) | nginx-extras (>= 1.13.3-0+xenial1); however:
Package nginx-full is not configured yet.
Package nginx-light is not installed.
Package nginx-extras is not installed.
dpkg: error processing package nginx (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
nginx-full
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
thank you in advance
You could try to use the official nginx.repo for Ubuntu (Xenial)
Edit /etc/apt/sources.list and add these lines at the end of the file:
deb http://nginx.org/packages/ubuntu/ codename nginx
deb-src http://nginx.org/packages/ubuntu/ codename nginx
Save the file and run this commands:
sudo apt-get update
sudo apt-get install nginx
It should install the latest nginx version from the nginx official repo.
If that's not working try running this command instead:
apt-get -f install nginx
or
apt-get -f -y install nginx
When I am installing tomcat 7 in ubuntu 16.04 I got this error
invoke-rc.d: initscript tomcat7, action "start" failed.
● tomcat7.service - LSB: Start Tomcat.
Loaded: loaded (/etc/init.d/tomcat7; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2017-05-29 00:33:24 IST; 6ms ago
Docs: man:systemd-sysv-generator(8)
Process: 972 ExecStart=/etc/init.d/tomcat7 start (code=exited, status=1/FAILURE)
May 29 00:33:24 developer-HP-Notebook systemd[1]: Starting LSB: Start Tomcat....
May 29 00:33:24 developer-HP-Notebook tomcat7[972]: * no JDK or JRE found - please set JAVA_HOME
May 29 00:33:24 developer-HP-Notebook systemd[1]: tomcat7.service: Control process exited, code=exited status=1
May 29 00:33:24 developer-HP-Notebook systemd[1]: Failed to start LSB: Start Tomcat..
dpkg: error processing package tomcat7 (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
tomcat7
E: Sub-process /usr/bin/dpkg returned an error code (1)
Either Java is not installed or you have the environment variable JAVA_HOME not pointed to it. Check for existence of java on your system, by executing following command in a terminal:
java -version
Install Java, by either downloading a jdk or jre from oracle java: https://java.com/.
Or just run:
sudo apt-get install openjdk-8-jdk
enter code hereI need to install nginx latest mainline release 1.11.x on amazon linux running on ec2 instance.
I followed the below link of nginx official documentation to install the same, the steps are very clear but still i couldnt install on amazon linux.
I tried the same on RHEL 7 on ec2 which is perfectly working fine with the steps given in the link but not on amazon linux, Below is the link which i referred to do the installation process
https://www.nginx.com/resources/admin-guide/installing-nginx-open-source/
Is it Amazon linux is not yet compatible with the nginx newer release??? i could install 1.8.x version of nginx in aws linux without issues which is already found in amazon repository.
I tried accessing the nginx repository and install the specific version but i got error, Below is the error which i got
yum install nginx
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 1:1.11.2-1.el7.ngx will be installed
--> Processing Dependency: systemd for package: 1:nginx-1.11.2- 1.el7.ngx.x86_64
--> Processing Dependency: libpcre.so.1()(64bit) for package: 1:nginx-1.11.2-1.el7.ngx.x86_64
--> Finished Dependency Resolution
Error: Package: 1:nginx-1.11.2-1.el7.ngx.x86_64 (nginx)
Requires: systemd
Error: Package: 1:nginx-1.11.2-1.el7.ngx.x86_64 (nginx)
Requires: libpcre.so.1()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
led by skipping the same
Setting up nginx-full (1.6.2-5+deb8u1) ...
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript nginx, action "start" failed.
dpkg: error processing package nginx-full (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
nginx depends on nginx-full (>= 1.6.2-5+deb8u1) | nginx-light (>= 1.6.2-5+deb8u1) | nginx-extras (>= 1.6.2-5+deb8u1); however:
Package nginx-full is not configured yet.
Package nginx-light is not installed.
Package nginx-extras is not installed.
nginx depends on nginx-full (<< 1.6.2-5+deb8u1.1~) | nginx-light (<< 1.6.2-5+deb8u1.1~) | nginx-extras (<< 1.6.2-5+deb8u1.1~); however:
Package nginx-full is not configured yet.
Package nginx-light is not installed.
Package nginx-extras is not installed.
dpkg: error processing package nginx (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.19-18+deb8u3) ...
Processing triggers for systemd (215-17+deb8u3) ...
Errors were encountered while processing:
nginx-full
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
Above is the error that is given to me when running sudo apt-get install nginx. I tried removing apache and nginx both and reinstalling but it gives the same error.
I had the same problem.
I DO NOT have Apache, and nothing else was blocking my port 80.
I could NOT install nginx with
sudo apt-get install nginx
nor with
sudo apt-get install nginx-common nginx-full
After one week I stumbled over this little blog: https://etc.banana.fish/?p=75
In this blog, the solution is:
Install nginx-common: sudo apt-get install nginx-common
Remove listen [::]:80 default_server; from /etc/nginx/sites-enabled/default (I made this using the root-user)
Just to be sure, I did reboot my server.
Just to be sure twice, I did sudo apt-get update and then sudo apt-get upgrade.
Now I finally called sudo apt-get install nginx-full and it worked!
Afterwords I could see the Titlescreen of nginx, when I typed in the IP of my remote server!
You didn't post the output of systemctl status nginx.service so this might not be right, but I had this issue because I had an old install of nginx I'd forgotten about.
So, I purged nginx and reinstalled:
apt-get purge nginx-full nginx-common
apt-get install nginx-full
Then I received another error, got the details: systemctl status nginx.service
In my case
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
So I have another web server listening on port 80.
To fix, I edited the default nginx site nano /etc/nginx/sites-available/default and removed listen on port 80.
I only needed SSL, so:
server {
listen 443 ssl;
//rest of config....
}
Helped for me:
service apache2 stop
apt-get remove apache2*
apt-get autoremove
I was facing similar problems while installing nginx on ubuntu16 Amazon EC2 instance and the cause seems to be that I fiddled with the inbound ports under my security group settings
ideally they should be:
HTTP
TCP
80
0.0.0.0/0
and
HTTP
TCP
80
::/0
I had removed one of them for some reason by mistake it appears, when I fixed that everything got sorted