Ceilometer Http 500 - openstack

I was installing Ceilometer using this guide: http://docs.openstack.org/developer/ceilometer/install/manual.html
After I have finished everything, I try to test it by using: ceilometer meter-list and it gives me this error: HTTPInternalServerError (HTTP 500)
Here's what I have in the log:
root#iaas-hk01:/etc/apache2/sites-enabled# tail -f /var/log/apache2/ceilometer_error.log
[Wed Jul 24 18:35:48 2013] [error] File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 80, in connect
[Wed Jul 24 18:35:48 2013] [error] return dialect.connect(*cargs, **cparams)
[Wed Jul 24 18:35:48 2013] [error]
[Wed Jul 24 18:35:48 2013] [error] File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 281, in connect
[Wed Jul 24 18:35:48 2013] [error] return self.dbapi.connect(*cargs, **cparams)
[Wed Jul 24 18:35:48 2013] [error]
[Wed Jul 24 18:35:48 2013] [error] OperationalError: (OperationalError) unable to open database file None None
[Wed Jul 24 18:35:48 2013] [error]
[Wed Jul 24 18:35:48 2013] [error] [client 192.168.10.16] mod_wsgi (pid=2178): Exception occurred processing WSGI script '/opt/stack/ceilometer/ceilometer/api/app.wsgi'.
[Wed Jul 24 18:35:48 2013] [error] [client 192.168.10.16] TypeError: expected byte string object for header value, value of type int found
Hopefully someone can provide me some guidance in fixing this.

you should set the keystone api - end points. so that ceilometer api can talk with keystone...
Here are steps...
Create a service for ceilometer in keystone
$ keystone service-create --name=ceilometer \
--type=metering \
--description="Ceilometer Service"
Create an endpoint in keystone for ceilometer
$ keystone endpoint-create --region RegionOne \
--service_id $CEILOMETER_SERVICE \
--publicurl "http://$SERVICE_HOST:8777/" \
--adminurl "http://$SERVICE_HOST:8777/" \
--internalurl "http://$SERVICE_HOST:8777/"
Note that: 8777 is the default port of ceilometer if you have customised use the customised one..

Related

EC2 Linux instance crashes every few hours

I have installed a WordPress site in AWS EC2 t3.micro on platform Linux/UNIX. The ec2 instance stops responding every few hours. That means if I try to call the website from the browser I get "This site can't be reached" message. The site starts to work again if I reboot the instance from the ec2 console. The inbound rules for HTTP and HTTPS set to 0.0.0.0/0. There is a number of website visitors. There is 4.2G available space on the EC2 instance. The latest error log entries are:
[Tue Jul 12 09:01:50.142638 2022] [mpm_prefork:notice] [pid 566] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Tue Jul 12 09:01:50.142711 2022] [core:notice] [pid 566] AH00094: Command line: '/usr/sbin/apache2'
[Tue Jul 12 10:23:11.216290 2022] [php:warn] [pid 1077] [client X.X.X.X:57861] PHP Warning: Undefined array key "referrer" in /var/www/html/wp-content/plugins/elementor-pro/modules/forms/classes/form-record.php on line 179, referer: https://SITE-NAME-REMOVED/contact-us/
[Tue Jul 12 10:23:11.217667 2022] [php:warn] [pid 1077] [client X.X.X.X:57861] PHP Warning: Undefined array key "referrer" in /var/www/html/wp-content/plugins/elementor-pro/modules/forms/classes/form-record.php on line 179, referer: https://SITE-NAME-REMOVED/contact-us/
sh: 1: /usr/sbin/sendmail: not found
[Mon Jul 11 00:00:01.527769 2022] [mpm_prefork:notice] [pid 570] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Mon Jul 11 00:00:01.527800 2022] [core:notice] [pid 570] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 11 13:44:17.339898 2022] [mpm_prefork:notice] [pid 577] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Mon Jul 11 13:44:17.347833 2022] [core:notice] [pid 577] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 11 13:44:26.721451 2022] [php:warn] [pid 727] [client x.X.x.x:35130] PHP Warning: Undefined array key "referrer" in /var/www/html/wp-content/plugins/elementor-pro/modules/forms/classes/form-record.php on line 179, referer: https://SITE-NAME-REMOVED/contact-us/
[Mon Jul 11 13:44:26.722285 2022] [php:warn] [pid 727] [client x.x.x.x:35130] PHP Warning: Undefined array key "referrer" in /var/www/html/wp-content/plugins/elementor-pro/modules/forms/classes/form-record.php on line 179, referer: https://SITE-NAME-REMOVED/contact-us/
sh: 1: /usr/sbin/sendmail: not found
[Mon Jul 11 14:37:11.427820 2022] [mpm_prefork:notice] [pid 577] AH00169: caught SIGTERM, shutting down
[Mon Jul 11 17:32:49.756249 2022] [mpm_prefork:notice] [pid 600] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Mon Jul 11 17:32:49.756835 2022] [core:notice] [pid 600] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 11 20:15:40.358852 2022] [mpm_prefork:notice] [pid 600] AH00169: caught SIGTERM, shutting down
Could anyone please advise?

Error while installing wordpress on CentOS 7

I´ve got a problem with installing wordpress on centos 7.
I used this guide to install it cause I´m quite new to linux:
https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-centos-7
I did everything step by step but it didn´t work. So I decided to reinstall my root server cause I wanted to have a new clean machine on which I could try it again. Then I used this guide to install it:
http://www.linuxveda.com/2015/09/15/install-wordpress-centos-7/
Same error as before..
The last entries in my error_log are:
[Wed Apr 13 12:16:06.794902 2016] [:error] [pid 23495] [client 66.249.93.167:41393] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
[Wed Apr 13 12:16:06.794974 2016] [:error] [pid 23495] [client 66.249.93.167:41393] PHP Fatal error: Unknown: Failed opening required '/home/Soluna/homepages/stormcloud/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
[Wed Apr 13 12:16:07.352614 2016] [:error] [pid 23496] [client 79.196.171.71:51928] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
[Wed Apr 13 12:16:07.352706 2016] [:error] [pid 23496] [client 79.196.171.71:51928] PHP Fatal error: Unknown: Failed opening required '/home/Soluna/homepages/stormcloud/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
[Wed Apr 13 12:16:07.671419 2016] [:error] [pid 23497] [client 5.79.100.165:49709] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
[Wed Apr 13 12:16:07.671488 2016] [:error] [pid 23497] [client 5.79.100.165:49709] PHP Fatal error: Unknown: Failed opening required '/home/Soluna/homepages/stormcloud/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
[Wed Apr 13 12:16:18.058248 2016] [:error] [pid 23494] [client 79.196.171.71:51933] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
[Wed Apr 13 12:16:18.058303 2016] [:error] [pid 23494] [client 79.196.171.71:51933] PHP Fatal error: Unknown: Failed opening required '/home/Soluna/homepages/stormcloud/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
[Wed Apr 13 12:16:21.985259 2016] [:error] [pid 23495] [client 79.196.171.71:51934] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
[Wed Apr 13 12:16:21.985311 2016] [:error] [pid 23495] [client 79.196.171.71:51934] PHP Fatal error: Unknown: Failed opening required '/home/Soluna/homepages/stormcloud/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
Can anyone help me? Since now I´ve got nothing installed on the server except teamspeak 3. On my old root server (Hetzner Online) everything worked well but now it doesn´t...Any ideas of how to fix it? I already changed the permissions of all wordpress files but still the same error..
They key is
Permission denied
Check permissions of the folder and files where you are storaging your wordpress files, apache should be able to read them.

error logs: client denied by server configuration

this is my error logs!! pls help me.. googlerbot can't crawl my website too. i'm using shared hosting.
[Wed Apr 16 11:17:34 2014] [error] [client 198.143.34.33] client
denied by server configuration:
/home/markgelo/public_html/markgiver/403.shtml
[Wed Apr 16 11:17:34 2014] [error] [client 198.143.34.33] client
denied by server configuration:
/home/markgelo/public_html/markgiver/2014
[Wed Apr 16 11:17:30 2014] [error] [client 199.30.20.15] client denied
by server configuration:
/home/markgelo/public_html/mkvmusic.tk/403.shtml
[Wed Apr 16 11:17:30 2014] [error] [client 199.30.20.15] client denied
by server configuration: /home/markgelo/public_html/mkvmusic.tk/2014
[Wed Apr 16 11:17:29 2014] [error] [client 198.143.38.65] client
denied by server configuration: /home/markgelo/public_html/403.shtml
[Wed Apr 16 11:17:29 2014] [error] [client 198.143.38.65] client
denied by server configuration:
/home/markgelo/public_html/download-strike-the-blood-all-episodes-720p-80mb-english-subbed-mediafire
[Wed Apr 16 11:17:20 2014] [error] [client 199.30.20.10] client denied
by server configuration:
/home/markgelo/public_html/mkvmusic.tk/403.shtml
[Wed Apr 16 11:17:20 2014] [error] [client 199.30.20.10] client denied
by server configuration: /home/markgelo/public_html/mkvmusic.tk/2014
[Wed Apr 16 11:17:13 2014] [error] [client 5.255.253.38] client denied
by server configuration:
/home/markgelo/public_html/androidnews/403.shtml
[Wed Apr 16 11:17:13 2014] [error] [client 5.255.253.38] client denied
by server configuration:
/home/markgelo/public_html/androidnews/wp-content
[Wed Apr 16 11:17:09 2014] [error] [client 198.143.46.33] client
denied by server configuration: /home/markgelo/public_html/403.shtml
[Wed Apr 16 11:17:09 2014] [error] [client 198.143.46.33] client
denied by server configuration:
/home/markgelo/public_html/wp-content/uploads/2013/03/542102.jpg
[Wed Apr 16 11:17:07 2014] [error] [client 5.255.253.38] client denied
by server configuration:
/home/markgelo/public_html/androidnews/403.shtml
[Wed Apr 16 11:17:07 2014] [error] [client 5.255.253.38] client denied
by server configuration:
/home/markgelo/public_html/androidnews/wp-content
[Wed Apr 16 11:17:02 2014] [error] [client 65.55.215.34] client denied
by server configuration: /home/markgelo/public_html/hentai/403.shtml
[Wed Apr 16 11:17:02 2014] [error] [client 65.55.215.34] client denied
by server configuration:
/home/markgelo/public_html/hentai/wp-content/uploads/2013/08/H62_Initiation_LRG.jpg
[Wed Apr 16 11:16:58 2014] [error] [client 198.143.39.1] client denied
by server configuration: /home/markgelo/public_html/403.shtml
[Wed Apr 16 11:16:58 2014] [error] [client 198.143.39.1] client denied
by server configuration: /home/markgelo/public_html/
[Wed Apr 16 11:16:53 2014] [error] [client 180.76.6.146] client denied
by server configuration:
/home/markgelo/public_html/backlinks/403.shtml
[Wed Apr 16 11:16:53 2014] [error] [client 180.76.6.146] client denied
by server configuration: /home/markgelo/public_html/backlinks/
[Wed Apr 16 11:16:47 2014] [error] [client 66.249.77.99] client denied
by server configuration: /home/markgelo/public_html/android/403.shtml
[Wed Apr 16 11:16:47 2014] [error] [client 66.249.77.99] client denied
by server configuration: /home/markgelo/public_html/android/2013
[Wed Apr 16 11:16:42 2014] [error] [client 66.249.77.71] client denied
by server configuration:
/home/markgelo/public_html/mkvmusic.tk/403.shtml
[Wed Apr 16 11:16:42 2014] [error] [client 66.249.77.71] client denied
by server configuration: /home/markgelo/public_html/mkvmusic.tk/2014
[Wed Apr 16 11:16:41 2014] [error] [client 199.21.148.44] client
denied by server configuration:
/home/markgelo/public_html/android/403.shtml
[Wed Apr 16 11:16:41 2014] [error] [client 199.21.148.44] client
denied by server configuration:
/home/markgelo/public_html/android/android-games
[Wed Apr 16 11:16:34 2014] [error] [client 157.55.33.182] client
denied by server configuration:
/home/markgelo/public_html/markgiver/403.shtml
[Wed Apr 16 11:16:34 2014] [error] [client 157.55.33.182] client
denied by server configuration:
/home/markgelo/public_html/markgiver/2013
[Wed Apr 16 11:16:34 2014] [error] [client 157.55.33.182] client
denied by server configuration:
/home/markgelo/public_html/markgiver/403.shtml
I had the same issue today. It was a problem with .htaccess file of the server in my case.
You can find it in the /public_html/ folder.
Rename it to .htacces_old, or with some other name, then try to reload a website page.
If you can't find this file - it may be because this is a hidden file. You can change it's visiblility on CPANEL > Settings, check a box "Show hidden files (dotfiles).
One of your Wordpress security plugins checks each IP against a blacklist of IPs and if there is a match then that IP is not allowed to connect.
I checked 2 of the IPs listed above and one came up:
http://www.liveipmap.com/199.21.148.44 (open proxy)
and another came up
https://www.projecthoneypot.org/ip_198.143.38.33 (spam harvester / comment spammer)
If you want to allow open proxy and comment spammers, you need to check every setting in your security plugin or find a different plugin to use).
http://wordpress.org/support/topic/plugin-better-wp-security-404-not-found-on-all-site-links
Go to the WP Dashboard --> Settings --> Permalinks
click on default and save changes.
Then click on Postname and save changes.
I have rechecked my logs throughout the last hour and there are NO errors in the logs! Woot!
Now if Bit51 would have addressed this directly ... it so would have solved a headache I really did not need today! UGH.
good luck!!

Cannot access Wordpress dashboard through WAMP

I can access the actual wordpress site via WAMP's localhost route, but I cannot log into the admin/dashboard page of the wordpress site.
I think it is a problem with apache.
Can anybody help me?
here are messages from the apache error logs:
[Sun Nov 03 07:11:17.294107 2013] [mpm_winnt:notice] [pid 2700:tid 416] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Sun Nov 03 07:11:19.296221 2013] [mpm_winnt:notice] [pid 5784:tid 324] AH00364: Child: All worker threads have exited.
[Sun Nov 03 07:11:19.328223 2013] [mpm_winnt:notice] [pid 2700:tid 416] AH00430: Parent: Child process 5784 exited successfully.
[Sun Nov 03 07:11:22.842424 2013] [mpm_winnt:notice] [pid 5408:tid 416] AH00455: Apache/2.4.4 (Win32) PHP/5.4.16 configured -- resuming normal operations
[Sun Nov 03 07:11:22.842424 2013] [mpm_winnt:notice] [pid 5408:tid 416] AH00456: Server built: Feb 23 2013 13:07:34
[Sun Nov 03 07:11:22.842424 2013] [core:notice] [pid 5408:tid 416] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Sun Nov 03 07:11:22.844424 2013] [mpm_winnt:notice] [pid 5408:tid 416] AH00418: Parent: Created child process 4348
[Sun Nov 03 07:11:24.173500 2013] [mpm_winnt:notice] [pid 4348:tid 324] AH00354: Child: Starting 150 worker threads.
More info:
The error is not a 404. Rather wordpress doesnt recognize my username/password.
final edit:
found a solution to my problem:
http://www.velvetblues.com/web-development-blog/how-to-add-an-admin-user-to-a-wordpress-database/

Error in Openstack Dashboard Authentication

After rebooting my openstack server, when I try to login in the Openstack Dashboard, the login fails and I get this error in the horizon_error.log:
[Sat Sep 14 21:44:31 2013] [error] DEBUG:openstack_auth.backend:Beginning user authentication for user "admin".
[Sat Sep 14 21:44:31 2013] [error] REQ: curl -i -X POST http://127.0.0.1:5000/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient"
[Sat Sep 14 21:44:31 2013] [error] REQ BODY: {"auth": {"passwordCredentials": {"username": "admin", "password": "mysecretpassword"}}}
[Sat Sep 14 21:44:31 2013] [error]
[Sat Sep 14 21:44:31 2013] [error] Starting new HTTP connection (1): 127.0.0.1
[Sat Sep 14 21:44:31 2013] [error] DEBUG:openstack_auth.backend:Authorization Failed: <attribute 'message' of 'exceptions.BaseException' objects> (HTTP Unable to establish connection to http://127.0.0.1:5000/v2.0/tokens)
[Sat Sep 14 21:44:31 2013] [error] WARNING:openstack_auth.forms:Login failed for user "admin".
How can I fix this issue
Best Regards,
Pedro
Looks like your keystone service is down:
(HTTP Unable to establish connection to http://127.0.0.1:5000/v2.0/tokens)
Are you sure keystone is running?
You can check if your keystone service is running using :
ps -ef | grep keystone
If you are using devstack, then simply navigate to the devstack directory and rejoin the session
/home/<user>/devstack
./rejoin-stack.sh

Resources