My Moodle site required I upgrade its database from MySQL 5.7.3 to MariaDB 10.2. I upgraded it to 10.3 through the MySQL/MariaDB Upgrade package on WHM, but after the upgrade, it gave this error:
"The MySQL/MariaDB server is not currently running. If this is not intentional, you may experience problems with your upgrade."
Due to this, my PhpMyAdmin has not been working with an error:
Failed to connect to “/var/lib/mysql/mysql.sock”; will fall back to TCP/IP. (Cpanel::Exception::IO::SocketConnectError/(XID yhcqsd) The system failed to connect a UNIX domain socket to “/var/lib/mysql/mysql.sock” because of an error: Connection refused at /usr/local/cpanel/Cpanel/Autodie/CORE/connect.pm line 29.
Cpanel::Autodie::connect(GLOB(0x3deab18), "\x{1}\x{0}/var/lib/mysql/mysql.sock\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}"...) called at /usr/local/cpanel/Cpanel/MysqlUtils/Unprivileged.pm line 181
Cpanel::MysqlUtils::Unprivileged::__ANON__() called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 100
eval {...} called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 91
Try::Tiny::try(CODE(0x3d53f70), Try::Tiny::Catch=REF(0x3d96b98)) called at /usr/local/cpanel/Cpanel/MysqlUtils/Unprivileged.pm line 186
Cpanel::MysqlUtils::Unprivileged::_get_socket("localhost", undef) called at /usr/local/cpanel/Cpanel/MysqlUtils/Unprivileged.pm line 90
Cpanel::MysqlUtils::Unprivileged::get_version_from_host("localhost", undef) called at /usr/local/cpanel/Cpanel/MysqlUtils/Running.pm line 64
Cpanel::MysqlUtils::Running::__ANON__() called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 100
eval {...} called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 91
Try::Tiny::try(CODE(0x3c23df0), Try::Tiny::Catch=REF(0x3dc2688)) called at /usr/local/cpanel/Cpanel/MysqlUtils/Running.pm line 68
Cpanel::MysqlUtils::Running::is_mysql_running() called at whostmgr/bin/whostmgr.pl line 6734
main::mysqlupgrade("mysqlupgrade") called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 366
Whostmgr::Dispatch::_do_call("mysqlupgrade", HASH(0x317bc98), HASH(0x316dfa0)) called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 178
Whostmgr::Dispatch::dispatch("mysqlupgrade", 1, ARRAY(0x317bc08), HASH(0x316dfa0)) called at whostmgr/bin/whostmgr.pl line 441
) at /usr/local/cpanel/Cpanel/MysqlUtils/Unprivileged.pm line 184.
at /usr/local/cpanel/Cpanel/MysqlUtils/Unprivileged.pm line 184.
Cpanel::MysqlUtils::Unprivileged::__ANON__(Cpanel::Exception::IO::SocketConnectError=HASH(0x3dead10)) called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 121
Try::Tiny::try(CODE(0x3d53f70), Try::Tiny::Catch=REF(0x3d96b98)) called at /usr/local/cpanel/Cpanel/MysqlUtils/Unprivileged.pm line 186
Cpanel::MysqlUtils::Unprivileged::_get_socket("localhost", undef) called at /usr/local/cpanel/Cpanel/MysqlUtils/Unprivileged.pm line 90
Cpanel::MysqlUtils::Unprivileged::get_version_from_host("localhost", undef) called at /usr/local/cpanel/Cpanel/MysqlUtils/Running.pm line 64
Cpanel::MysqlUtils::Running::__ANON__() called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 100
eval {...} called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 91
Try::Tiny::try(CODE(0x3c23df0), Try::Tiny::Catch=REF(0x3dc2688)) called at /usr/local/cpanel/Cpanel/MysqlUtils/Running.pm line 68
Cpanel::MysqlUtils::Running::is_mysql_running() called at whostmgr/bin/whostmgr.pl line 6734
main::mysqlupgrade("mysqlupgrade") called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 366
Whostmgr::Dispatch::_do_call("mysqlupgrade", HASH(0x317bc98), HASH(0x316dfa0)) called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 178
Whostmgr::Dispatch::dispatch("mysqlupgrade", 1, ARRAY(0x317bc08), HASH(0x316dfa0)) called at whostmgr/bin/whostmgr.pl line 441
All my sites on the server are down, and they threw an "unable to establish connection to database" error. I don't know where to go from here.
Please what can I do?
Related
Iam trying to use Octave 4.2.2 with Symbolic pkg v.2.9.0 but I get this error related to sympy package:
Your kit looks good for running the Symbolic package. Happy hacking!
>>
>> syms
Symbolic variables in current scope:
>> a = sym( "a" );
Symbolic pkg v2.9.0: /home/usuario/.local/lib/python3.6/site-packages/sympy/__init__.py:676: SymPyDeprecationWarning:
importing sympy.core.compatibility with 'from sympy import *' has been
deprecated since SymPy 1.6. Use import sympy.core.compatibility
instead. See https://github.com/sympy/sympy/issues/18245 for more
info.
deprecated_since_version="1.6").warn()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 12, in octoutput_drv
File "<stdin>", line 54, in octoutput
File "<stdin>", line 55, in octoutput
File "/home/usuario/.local/lib/python3.6/site-packages/sympy/__init__.py", line 677, in __getattr__
return getattr(self.mod, name)
AttributeError: module 'sympy.core.compatibility' has no attribute 'integer_types'
Waiting................warning: readblock: timeout of 30 exceeded, breaking out
warning: called from
readblock at line 101 column 7
python_ipc_popen2 at line 99 column 14
python_ipc_driver at line 62 column 13
pycall_sympy__ at line 163 column 9
sym at line 452 column 9
no output so far
error: ipc_popen2: something wrong? timed out starting python
error: called from
python_ipc_popen2 at line 101 column 7
python_ipc_driver at line 62 column 13
pycall_sympy__ at line 163 column 9
sym at line 452 column 9
>> a
error: 'a' undefined near line 1 column 1
>>
I dig into code and find this two references:
https://github.com/sympy/sympy/pull/18245
https://github.com/sympy/sympy/pull/19316
But Iam not a programmer so any idea is greatly appreciated.
I tried to uninstall sympy-1.6 and install sympy-1.5 but that doesn't work.
Thanks for your time.
Daniel
I have managed to found the answer.
The problem is on sympy version 1.6 so I downgraded it to version 1.5.1 with pip3.
I had a similar issue, the problem seems to be that you have to install sympy for python2 not for python3. Install it with pip and then try typing in octave
sympref diagnose
And it will tell you that the current interpreter is python3, you got to change this.
setenv PYTHON python2
sympref reset
Because apparently the symbolic package was developed for python2.
I hope I could help you.
I get an error message when I try to make use of symbolic package in Octave.
>> pkg load symbolic
>> syms x y
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named sympy
OctSymPy v2.6.0: this is free software without warranty, see source.
Initializing communication with SymPy using a popen2() pipe.
error: Python cannot import SymPy: have you installed SymPy?
error: called from
assert_have_python_and_sympy at line 37 column 5
python_ipc_popen2 at line 78 column 5
python_ipc_driver at line 59 column 13
python_cmd at line 164 column 9
valid_sym_assumptions at line 38 column 10
assumptions at line 82 column 7
syms at line 97 column 13
What am I doing wrong?
Followed the 2x options for commands at: https://www.mediawiki.org/wiki/Manual:Importing_XML_dumps#Using_importDump.php,_if_you_have_shell_access
In both instances, getting a 'failed to open stream' error.
I have chmod 777 for folder and file. (Thinking it may be permission error)
I have moved the file to import right into the maintenance folder (some postings suggesting PHP needs to be able to find the file, so think putting it there will help)...
on command:
"root#bitnami-mediawiki-___:/opt/bitnami/apps/mediawiki/htdocs/maintenance# php importDump.php --co
nf ../LocalSettings.php /FILENAME.xml"
I see error:
"PHP Warning: fopen(/FILENAME.xml): failed to open stream: No such file or directory in /opt/bitnam
i/apps/mediawiki/htdocs/maintenance/importDump.php on line 267
PHP Warning: feof() expects parameter 1 to be resource, boolean given in /opt/bitnami/apps/mediawiki/
htdocs/includes/import/ImportStreamSource.php on line 41
PHP Warning: fread() expects parameter 1 to be resource, boolean given in /opt/bitnami/apps/mediawiki
/htdocs/includes/import/ImportStreamSource.php on line 48
PHP Warning: feof() expects parameter 1 to be resource, boolean given in /opt/bitnami/apps/mediawiki/
htdocs/includes/import/ImportStreamSource.php on line 41
PHP Warning: XMLReader::read(): uploadsource://9115d0bbe5ae974e1fe2d411e035aeaa:1: parser error : Ext
ra content at the end of the document in /opt/bitnami/apps/mediawiki/htdocs/includes/import/WikiImport
er.php on line 551
PHP Warning: XMLReader::read(): in /opt/bitnami/apps/mediawiki/htdocs/includes/import/WikiImporter.p
hp on line 551
PHP Warning: XMLReader::read(): ^ in /opt/bitnami/apps/mediawiki/htdocs/includes/import/WikiImporter.
php on line 551
Set $wgShowExceptionDetails = true; in LocalSettings.php to show detailed debugging information."
I'm not clear what the error means and how to grant access to the file... Newb to BASH and servers. Any help would be greatly appreciated!
It looks to me that the path of the FILENAME.xml file is wrong. Note that you have a / at the beginning of FILENAME.xml, so it will look at the root of the filesystem. If the file is in the same folder, then use ./FILENAME.xml
I am using Google Compute engine and I got what is commonly known issue cannot connect via ssh or any means due to Disk is too full. I have resized disk multiple times and even x10 but changes are visible within compute engine but ssh still won't connect and logs still says disk is full.
Is there any other ways to solve this, I have important data/mongodb in that engine ?
resized incrementally few times, didn't help
added additional disks, didn't help
tried to delete some files via startup-script, didn't help
Some part of error messages...
Traceback (most recent call last):
File "/usr/bin/cloud-init", line 618, in <module>
sys.exit(main())
File "/usr/bin/cloud-init", line 614, in main
get_uptime=True, func=functor, args=(name, args))
File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 1900, in log_time
ret = func(*args, **kwargs)
File "/usr/bin/cloud-init", line 489, in status_wrapper
atomic_write_json(status_path, status)
File "/usr/bin/cloud-init", line 434, in atomic_write_json
raise e
IOError: [Errno 28] No space left on device
Aug 5 04:46:15 backend google: startup script found in metadata.
/usr/share/google/fetch_script: line 30: echo: write error: No space left on device
Aug 5 04:46:15 backend startupscript: Running startup script /var/run/google.startup.script
Aug 5 04:46:15 backend startupscript: Finished running startup script /var/run/google.startup.script
...
accounts-from-metadata: WARNING Could not update /home/ubuntu/.ssh/authorized_keys due to Disk is too full
After few different attempts I was able to fix issue by:
creating snapshot of the disk and creating new instance with increased persistent storage, data is there and size of disk is increased, all set.
I issue the nova manage db sync command and when i issue I'm facing the problem,
TRACE nova File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/url.py", line 56, in __init__
2015-01-11 00:31:29 TRACE nova self.port = int(port)
2015-01-11 00:31:29 TRACE nova ValueError: invalid literal for int() with base 10: ''
Can you suggest the solutions.
The probelm was because I din't give any port number followed by the colon in the nova.conf file for the sql connetion. I removed the colon and is working fine now.