I'm trying to isntall POI Data provider on my ubuntu 14. The documentation is a little bit old, but I have installed everything without problems.
When I try to test my enabler:
http://localhost/poi_dp/radial_search.php?lat=1&lon=1&category=test_poi
I obtain a empty web page and this error in the javascript console:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
I obtain this when I list my process:
ps ax | grep 'postgres\|mongo\|apache2'
965 ? Ssl 0:04 /usr/bin/mongod --config /etc/mongod.conf
15480 ? S 0:00 /usr/lib/postgresql/9.3/bin/postgres -D /var/lib/postgresql/9.3/main -c config_file=/etc/postgresql/9.3/main/postgresql.conf
15482 ? Ss 0:00 postgres: checkpointer process
15483 ? Ss 0:00 postgres: writer process
15484 ? Ss 0:00 postgres: wal writer process
15485 ? Ss 0:00 postgres: autovacuum launcher process
15486 ? Ss 0:00 postgres: stats collector process
16161 ? Ss 0:00 /usr/sbin/apache2 -k start
16164 ? S 0:00 /usr/sbin/apache2 -k start
16165 ? S 0:00 /usr/sbin/apache2 -k start
16166 ? S 0:00 /usr/sbin/apache2 -k start
16167 ? S 0:00 /usr/sbin/apache2 -k start
16168 ? S 0:00 /usr/sbin/apache2 -k start
16188 ? S 0:00 /usr/sbin/apache2 -k start
16419 pts/4 S+ 0:00 grep --color=auto postgres\|mongo\|apache2
Whe I verify the postgres sql table
$ psql -U gisuser poidatabase
poidatabase=> SELECT count(*) FROM fw_core;
I read 4 as expected.
But whe I try to verify mongo db:
$ mongo
> use poi_db
> db.collections
I only get "poi_db.collections" and not:
The db.collections command should list five POI data component collections created by the installation: fw_contact, fw_marker, fw_media, fw_relationships and fw_time.
what is the problem? any idea? thanks.
Regarding that db.collections returns nothing try command:
$ mongo
> use poi_db
> show collections
These apparent problems have been corrected in the new release that has been pushed to GitHub https://github.com/Chiru/FIWARE-POIDataProvider.git . See the updated guide http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/POI_Data_Provider_-_Installation_and_Administration_Guide for installation. Moreover the errors e.g. in sanity-check procedure have been corrected. (Another answer below refers to an error in sanity check.)
Related
I have just installed XAMPP, and I cannot run MySQL Database on Mac OS M1.
I have tried multiple things I have found online so far. First, I downloaded the 8.1.6 / PHP 8.1.6 (361 Mb) and I couldn't even start it, then I downloaded the 163 Mb version and everything seemed fine, except that I cannot run the database.
I have tried everything from here, but it didn't work.
I couldn't find the ID either, after running
ps aux | grep mysql
I got:
_mysql 22508 0.0 1.1 34989944 178672 ?? Ss 3:39PM 0:00.30 /usr/local/mysql/bin/mysqld --user=_mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --log-error=/usr/local/mysql/data/mysqld.local.err --pid-file=/usr/local/mysql/data/mysqld.local.pid --keyring-file-data=/usr/local/mysql/keyring/keyring --early-plugin-load=keyring_file=keyring_file.so
root 23300 0.0 0.0 408628368 1648 s000 S+ 3:41PM 0:00.00 grep mysql
sh-3.2#
Server events:
Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started
Starting ProFTPD...
Checking syntax of configuration file
/Applications/XAMPP/xamppfiles/proftpd/scripts/ctl.sh : proftpd started
Stopping all servers...
Stopping Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd stopped
Stopping ProFTPD...
Checking syntax of configuration file
/Applications/XAMPP/xamppfiles/proftpd/scripts/ctl.sh : proftpd stopped
Could someone help me with this, please?
Thank you.
I am trying to write my own mariadb-alpine docker image. Everything works file but while I am trying to collect the mariadb logs I am getting nothing. I tried to follow a lot of related issue like this and tried those but in vain.
FROM alpine:edge
COPY my.cnf /etc/mysql/my.cnf
RUN set -ex \
&& apk add mariadb mariadb-client shadow \
&& ln -snf /usr/lib/mariadb /usr/lib/mysql \
&& mysql_install_db --user=mysql --skip-name-resolve --auth-root-authentication-method=socket --auth-root-socket-user=root --force --rpm --skip-test-db \
&& usermod -a -G tty mysql \
&& ln -sf /dev/stdout /var/log/mysqld.err \
&& chown -h mysql:mysql /var/log/mysqld.err
CMD ["mysqld_safe"]
EXPOSE 3306
Is it required to mysqld take pid=1 to work stdout ? In my case it is some like below.
# ps aux
PID USER TIME COMMAND
1 root 0:00 {mysqld_safe} /bin/sh /usr/bin/mysqld_safe
134 mysql 0:00 /usr/bin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mariadb/plugin --user=mysql --log-error=/var/log/mysqld.err --pid-file=49ea99ae9348.p
166 root 0:00 sh
171 root 0:00 ps aux
You're likely running into these issues:
https://github.com/moby/moby/issues/31243
https://github.com/moby/moby/issues/31106
Something with alpine breaks the ability to access /dev/stdout when you change user accounts. The workaround I've used involves:
Running the container with a tty
Adding the user inside the container to the tty group
Starting the command with a gosu/exec to replace the pid 1 shell script with your app
I'm not sure if the last part was required, and you may not have access to do this with the mysql command. You're already doing the second item. That just leaves the first item that you can implement with:
docker run -t your_image
or in a compose file:
services:
mysql:
image: your_image
tty: true
....
The only other option is to run your application directly as mysql instead of starting it as root with user: mysql in the compose file, but that may not be supported by mysql itself.
If none of those work, the option used by the official image is to pick a debian base image instead of the alpine image. You can see their Dockerfile here:
https://github.com/docker-library/mysql/blob/696fc899126ae00771b5d87bdadae836e704ae7d/8.0/Dockerfile
I tried almost all commands to kill gunicorn server. but nothing is working. how can i kill these processes and free 80 port
12652 ? Ss 0:00 sudo gunicorn -b 0.0.0.0:80 foss.wsgi:application
12654 ? S 0:00 /usr/bin/python /usr/local/bin/gunicorn -b 0.0.0.0:80 foss.wsgi:application
12659 ? S 0:00 /usr/bin/python /usr/local/bin/gunicorn -b 0.0.0.0:80 foss.wsgi:application
12709 ? Ss 0:00 sudo gunicorn -b 0.0.0.0:80 foss.wsgi:application
12711 ? S 0:00 /usr/bin/python /usr/local/bin/gunicorn -b 0.0.0.0:80 foss.wsgi:application
12717 pts/11 S+ 0:00 grep --color=auto gunicorn
Grab the pid, for example 12652 here, and issue this command:
sudo kill -9 12652
That will issue a SIGKILL, which can not be caught or ignored by an application.
If the server just starts up again immediately after, it means there's some process control system or init scripts such as supervisord or systemd configured on the box, which is managing the service and can autorestart when the service goes down.
You'll have to disable it in the process control system, e.g. supervisord stop yourapp.
This morning I get up to a date where all db on my dedicated server down. I couldn't restart the service. When I do ps aux | grep mysql I see a process which pid changes constantly.
root 4715 0.0 0.0 103248 844 pts/0 S+ 08:28 0:00 grep mysql
So I stop running on boot and restarted the server.
chkconfig --list mysql shows me
mysql 0:off 1:off 2:off 3:off 4:off 5:off 6:off
But I still see mysql process on ps. Why?
Server OS: CentOS.
Panel: WHM
What you're seeing is the grep process running. mysql is not running.
The entry you're seeing is the command you are using to search for MySQL.
To test this try doing:
ps aux | grep banana
When I reboot, mysql 5.1.59 is not running despite Activity Monitor showing 2 mysql PIDs. IF I quit the 2 mysql instances, I am able to startup mysql in Webmin (working PID is 3735, see below).
When I run this in Terminal: ps axu | grep mysql
I get:
root 3261 0.0 0.0 2435492 932 ?? Ss 9:52AM 0:00.03 /bin/sh /usr/local/mysql/bin/mysqld_safe --user=mysql
admin1 3843 0.0 0.0 2435492 348 s000 R+ 9:56AM 0:00.00 grep mysql
_mysql 3735 0.0 0.3 2522936 13680 ?? S 9:53AM 0:00.04 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql --log-error=/usr/local/mysql/data/macpro.local.err --pid-file=/usr/local/mysql/data/macpro.local.pid --socket=/tmp/mysql.sock --port=3306
Why do there seem to be 3 instances (3 users) here?
I assumed that my file:
com.mysql.mysql.plist
in
Library/LaunchDaemons
would be the only method that mysql launches at startup. I do not use the mysql PrefPane (never worked anyway), nor are there any mysql items in Library/StartupItems.
Any help would be great. Thanks!