I am trying to start a virtual machine but there is an error occurring at the line on which libvirt_domain_create() function is called.
The error is:
Error while starting domain:operation forbidden: read only access prevents virDomainCreate
I am using root as a user and i have added root in the libvirtd and apache group in Centos7.
Please tell how to start the virtual machine in php-cli as this error is coming in php-cli.
Thanks in advance.
It is hard to say without seeing the code, but based on the error message it sounds like you explicitly opened the connection to libvirt in read-only mode.
Related
My workbench was previously working fine until recently, but I'm now getting the following error:
I'm not sure what's relevant so I'll list out everything that I think might be relevant:
My OS is Windows and I'm using JawsDB & Heroku as my server.
I've recently tried to mess with the my.cnf file (in an attempt to enable 'LOAD DATA LOCAL INFILE')
I think this is the extent to which I've used mysql_config_editor:
I've run "SET GLOBAL local_infile = true;" after logging in to my local sql.
I've checked numbers 1-4 on the error message. Here is an image of my connection to be sure:
I think I've messed with the NetBIOS at some point, and that might be a problem as discussed here, but I don't see "manage server instances" anywhere.
I'm not sure what else might be the issue here. Thanks in advance.
Edit: After trying to connect to the MySQL server through the command line, I get "ERROR 2003 (HY000): Can't connect to MySQL server on 'lyl3nln24eqcxxot.cbetxkdyhwsb.us-east-1.rds.amazonaws.com' (10060)", which seems to be an authentication error and not a connection error according to this link. But I'm unsure how to deal with this authentication error if it is one.
I'm not sure if this constitutes as an answer, but I've managed to establish a connection through my usual wifi (as opposed to a public school's wifi). It looks like either my security settings are different when on a public wifi or the public wifi itself had some sort of security setting that was blocking my connection.
After reading multiple questions of users with problems like:
forgot password
installed multiple instances of MySQL
forgot to start MySQL
etc. etc
I started to consider if it is actually possible to conclude from the error page if MySQL is running at all?
Questions with the same type of answers:
mysql said: Cannot connect: invalid settings. xampp
phpMyAdmin - can't connect - invalid setings - ever since I added a root password - locked out
MySQL Says: Cannot connect: invalid settings
But does the error page actually say this is a mysql server response or it couldn't connect (server isn't running for instance)
Take the following code:
<?php
//Step1
$db = mysqli_connect('localhost','username','password','database_name')
or die('Error connecting to MySQL server.');
?>
If one of the inputs is incorrect you will get the error:
Error connecting to MySQL server.
This could be modified into a nice looking error message (as the image above).
So does the error actually prove that MySQL is running or not?
I found a video of a walkthrough on how to fix this error. In the video you can see the servers are running. I was pretty curious about this whole issue.
Link to Youtube:
https://www.youtube.com/watch?v=8fK_DYvosA8
I'm assuming if that's how it worked for the video, that's how it works in general. I'm working off the idea that something can't give you an error message unless it's running.
Sort of. phpMyAdmin generally returns the error message that it gets from MySQL, so for instance if the isn't a MySQL daemon listening on on the TCP/IP protocol, phpMyAdmin shows:
#2003 - Can't connect to MySQL server on '127.0.0.1' (111) — The server is not responding.
For an incorrect username or password, the error message is:
#1045 - Access denied for user 'root'#'localhost' (using password: YES)
"Invalid settings" usually means you have conflicting directives or incorrect information in one of your configuration statements. Without seeing your config.inc.php it's difficult to guess what's wrong here, but this also can mean something went wrong between the PHP library itself and MySQL.
The rejected connection message you posted can also have several causes.
Basically, to directly answer your question, you often can tell based on the error message returned by MySQL or the PHP library (which is the message phpMyAdmin shows). "Can't connect" means phpMyAdmin couldn't get any response from the MySQL daemon, which could have several causes but most often means MySQL isn't running. Most of the other error messages mean it's running but there was a problem connecting. Generally the error message contains some information about why.
At every startup in Windows I get an error message by MySQL Notifier:
Does anybody know how to get rid of this?
If this is because of Firewall, my question is if anybody has a solution, instead of turning Firewall off.
I have the same error on my Windows 7 Professional computer but it does not appear every time I log in.
I saw a hyperlink on a MySQL forum that may help:
https://dev.mysql.com/doc/refman/5.5/en/windows-notifier-installation.html
Check that your MySQL service or daemon is running. In my case I have two versions of MySQL installed on my computer but only one of them is set to start up automatically. This might be why I get the message.
This is my first time using mysql-proxy to learn how to use cryptdb and I am using the ubuntu 12.0.4.3
I have created a proxy using
--proxy-backend-addresses=localhost:3306
--proxy-address=127.0.0.1:3307
However, when I'm trying to connect to this proxy it said that ERROR 1105 (HY000): #07000MySQL Proxy Lua script failed to load. Check the error log.
Does anyone know the reason of this problem?
Thanks for any illumination!
Did you check the path of the lua script? Specify your $EDBDIR by export EDBDIR=<the-path-to-your-lua-file> If you need to.
I downloaded and installed the driver setup file, DB2OLEDB.exe, from here:
http://download.microsoft.com/mwg-internal/de5fs23hu73ds/progress?id=HYLbKUfGNl
Using the connection string that worked on another PC, I tried to create a Connection Object in an SSIS package. When I tested the connection I got this error:
Test connection failed because of an error in initializing provider. A TCPIP socket error has occurred (10057): A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
Any suggestions on what the cause of this error is and how I might resolve this issue?
By the way, when I use the DB2 Configuration set up utility and test a connection from within that, I am able to successfully connect.
What other info can I provide to help you answer this question?
Thank you
Could this be related to a blocked port?
If you follow all the steps illustrated here: http://www.bidn.com/blogs/PatrickLeBlanc/ssis/700/connecting-to-db2-using-ssis do you still get the same result?
Maybe a silly question, did you restart the computer after the installation?
Are you an admin user on one machine and not on the other?
You could try to verify the port connectivity with a quick telnet command:
telnet your-db-host your-db-listening-port
If it connects, that one is off the list.
Doing some research I've found two possible fixes.
The first link suggests calling BeginReceive after the EndAccept logic is complete. Are you using script code, or just using the GUI without any scripting?
TCP async sockets throwing 10057
The second link points to drivers / software on the PC. It could be that you are missing a windows update or have faulty hardware / drivers.
I think this is less likely the case since you could connect to a different machine with the same connection string(?). Can you verify this is a valid statement?
http://social.msdn.microsoft.com/Forums/en-US/1bc3df95-c86d-4d25-aa20-30f61ed00c63/odd-socket-errors
If you could show the connection strings used for both the working and non working, and give a little more detail about The "Other PC" in comparison to the non-working PC... that would be helpful =]
If neither of the posts I've linked are the solution, this specific Google search has proven to yield some seemingly helpful results
"socket" "10057" "no address was supplied."