<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Errors &#8211; Deep Core Labs</title>
	<atom:link href="https://deepcorelabs.com/category/errors/feed/" rel="self" type="application/rss+xml" />
	<link>https://deepcorelabs.com</link>
	<description>Building Extraordinary Brands</description>
	<lastBuildDate>Tue, 06 Feb 2024 23:56:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://deepcorelabs.com/wp-content/uploads/2015/09/deep-core-labs-logo-small-50x50.png</url>
	<title>Errors &#8211; Deep Core Labs</title>
	<link>https://deepcorelabs.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Upgrade MariaDB on Plesk</title>
		<link>https://deepcorelabs.com/upgrade-mariadb-on-plesk/</link>
					<comments>https://deepcorelabs.com/upgrade-mariadb-on-plesk/#respond</comments>
		
		<dc:creator><![CDATA[Miro Hristov]]></dc:creator>
		<pubDate>Mon, 22 Jan 2024 03:22:01 +0000</pubDate>
				<category><![CDATA[database]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Plesk]]></category>
		<guid isPermaLink="false">https://deepcorelabs.com/?p=4319</guid>

					<description><![CDATA[The Problem: Unfortunately, Plesk doesn&#8217;t seem to have a way to upgrade MariaDB using the components in the control panel. Attempts to add this feature didn&#8217;t work for me either...]]></description>
										<content:encoded><![CDATA[<h2>The Problem:</h2>
<p>Unfortunately, Plesk doesn&#8217;t seem to have a way to upgrade MariaDB using the components in the control panel.</p>
<p><a href="https://docs.plesk.com/release-notes/obsidian/change-log/#plesk-18052">Attempts to add this feature</a> didn&#8217;t work for me either despite their claims <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f641.png" alt="🙁" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p><a href="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-220859.png" rel="prettyPhoto[gallery-Zsl8]"><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4321" src="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-220859.png" alt="" width="984" height="449" srcset="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-220859.png 984w, https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-220859-300x137.png 300w, https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-220859-768x350.png 768w" sizes="(max-width: 984px) 100vw, 984px" /></a></p>
<p><em>Hint: you can add an extension from the Plesk interface named Panel.ini Editor if you want to try your luck:</em></p>
<p><a href="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-221035.png" rel="prettyPhoto[gallery-Zsl8]"><img decoding="async" class="alignnone size-full wp-image-4322" src="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-221035.png" alt="" width="243" height="123" /></a></p>
<p>The following official article on Plesk doesn&#8217;t work either <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f641.png" alt="🙁" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p><a href="https://support.plesk.com/hc/en-us/articles/12388091703703">https://support.plesk.com/hc/en-us/articles/12388091703703</a></p>
<p>It results in an error like this:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="bash">The repository 'https://dlm.mariadb.com/repo/maxscale/latest/apt bionic Release' does not have a Release file.

Failed to add trusted package signing keys</pre>
<h2></h2>
<h2>The Solution:</h2>
<ol>
<li>First create backups of all databases as .sql dump:
<pre class="EnlighterJSRAW" data-enlighter-language="bash">MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump -u admin --verbose --all-databases --routines --triggers &gt; /tmp/all-databases.sql</pre>
</li>
<li>Create a backup of all MySQL/MariaDB data (this is different from the above &#8212; it copies the entire current mysql/mariadb version executables):
<pre class="EnlighterJSRAW" data-enlighter-language="bash">cp -v -a /var/lib/mysql/ /var/lib/mysql_backup</pre>
</li>
</ol>
<p>&nbsp;</p>
<p>Then, follow this instead: <a href="https://mariadb.org/download/?t=repo-config&amp;d=18.04+LTS+%22bionic%22&amp;v=11.2&amp;r_m=knownhost">https://mariadb.org/download/?t=repo-config&amp;d=18.04+LTS+%22bionic%22&amp;v=11.2&amp;r_m=knownhost</a></p>
<p>Make sure you select your right OS version, desired MariaDB version, and a mirror closer to you is preferable.</p>
<p><strong>Hints:</strong><br />
Use <strong>cat /etc/*-release</strong> to find out your current OS name and version.</p>
<p>Use<strong> sudo nano /etc/apt/sources.list.d/mariadb.sources</strong> to create a file and paste the contents from second box. Ctrl+X to exit nano and Y to save file.</p>
<p><a href="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-215700.jpg" rel="prettyPhoto[gallery-Zsl8]"><img decoding="async" class="alignnone wp-image-4338 size-large" src="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-215700-1024x847.jpg" alt="" width="1024" height="847" srcset="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-215700-1024x847.jpg 1024w, https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-215700-300x248.jpg 300w, https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-215700-768x635.jpg 768w, https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-215700.jpg 1283w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></p>
<p>&nbsp;</p>
<p>In the end I finished with some commands from the first article that didn&#8217;t work initially. It&#8217;s supposed to add the newly installed MariaDB version to Plesk.</p>
<ol start="6">
<li>Start the MariaDB service:
<pre class="EnlighterJSRAW" data-enlighter-language="generic">systemctl start mariadb</pre>
</li>
<li>Upgrade MySQL/MariaDB databases:
<pre class="EnlighterJSRAW" data-enlighter-language="generic">MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql_upgrade -uadmin</pre>
</li>
<li>Restart MySQL/MariaDB service:
<pre class="EnlighterJSRAW" data-enlighter-language="generic">systemctl restart mariadb</pre>
</li>
<li>Execute the following commands to update package version inside Plesk:
<pre class="EnlighterJSRAW" data-enlighter-language="generic">plesk bin service_node --update local
plesk sbin packagemng -sdf</pre>
<p>&nbsp;</li>
</ol>
<p>This finally worked&#8230;  after a few refreshes Plesk was showing MariaDB Version: 11.2 <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>Let me know how it goes. Good luck!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://deepcorelabs.com/upgrade-mariadb-on-plesk/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Moodle &#8211; Environment error &#8216;It is required that you store all your data in Unicode format&#8217; [SOLVED]</title>
		<link>https://deepcorelabs.com/moodle-environment-error-it-is-required-that-you-store-all-your-data-in-unicode-format-solved/</link>
					<comments>https://deepcorelabs.com/moodle-environment-error-it-is-required-that-you-store-all-your-data-in-unicode-format-solved/#respond</comments>
		
		<dc:creator><![CDATA[Miro Hristov]]></dc:creator>
		<pubDate>Mon, 22 Jan 2024 02:31:37 +0000</pubDate>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[Moodle]]></category>
		<guid isPermaLink="false">https://deepcorelabs.com/?p=4294</guid>

					<description><![CDATA[The Problem: It is required that you store all your data in Unicode format (UTF-8). New installations must be performed into databases that have their default character set as Unicode....]]></description>
										<content:encoded><![CDATA[<h2>The Problem:</h2>
<blockquote><p>It is required that you store all your data in Unicode format (UTF-8). New installations must be performed into databases that have their default character set as Unicode. If you are upgrading, you should perform the UTF-8 migration process (see the Admin page).</p>
<p>The current setup of MySQL or MariaDB is using &#8216;utf8&#8217;. This character set does not support four byte characters which include some emoji. Trying to use these characters will result in an error when updating a record, and any information being sent to the database will be lost Please consider changing your settings to &#8216;utf8mb4&#8217;. See the documentation for full details.</p></blockquote>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a href="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-194939.png" rel="prettyPhoto[gallery-QWOm]"><img loading="lazy" decoding="async" class="alignnone size-large wp-image-4295" src="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-194939-847x1024.png" alt="" width="847" height="1024" srcset="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-194939-847x1024.png 847w, https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-194939-248x300.png 248w, https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-194939-768x929.png 768w, https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-194939.png 1031w" sizes="auto, (max-width: 847px) 100vw, 847px" /></a></p>
<h2>The Solution:</h2>
<p>Login to mysql/mariadb via SSH using root user or the user associated with moodle db:</p>
<p><em>(All code snippets below are <strong>editable</strong>)</em></p>
<pre class="EnlighterJSRAW" data-enlighter-language="mariadb">mysql -u moodle_user -p 123456

use moodle;

SHOW LOCAL VARIABLES LIKE 'character_set_database';

--# In my case I got this:

+------------------------+---------+
| Variable_name          |  Value  |
+------------------------+---------+
| character_set_database | utf8mb3 |
+------------------------+---------+
1 row in set (0.001 sec)

--# Run the following to change to utf8mb4

ALTER DATABASE moodle CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

--# Verify again to make sure the change took effect

SHOW LOCAL VARIABLES LIKE 'character_set_database';

+------------------------+---------+
| Variable_name          |  Value  |
+------------------------+---------+
| character_set_database | utf8mb4 |
+------------------------+---------+
1 row in set (0.001 sec)
</pre>
<p>&nbsp;</p>
<p>Make sure in your <strong>./config.php </strong><em>&#8216;dbcollation&#8217;</em> is set to<em> &#8216;utf8mb4_unicode_ci&#8217;</em></p>
<pre class="EnlighterJSRAW" data-enlighter-language="php">//...

$CFG-&gt;dboptions = array (
  'dbpersist' =&gt; 0,
  'dbport' =&gt; '',
  'dbsocket' =&gt; '',
  'dbcollation' =&gt; 'utf8mb4_unicode_ci',  // 'utf8_general_ci' doesn't work
);

//...</pre>
<p>&nbsp;</p>
<div>
<p>If the above doesn&#8217;t work or errors, you may need to add the following to my.cnf and/or mariadb.cnf</p>
</div>
<div>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">sudo nano /etc/mysql/my.cnf

#... append to the bottom

#Moodle required
[ client]
default-character-set = utf8mb4

[mysqld]
innodb_file_format = Barracuda
innodb_file_per_table = 1
innodb_large_prefix = true

character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
skip-character-set-client-handshake

[mysql]
default-character-set = utf8mb4</pre>
<p>&nbsp;</p>
<p>Restart mariadb:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">systemctl restart mariadb</pre>
<p>&nbsp;</p>
<p>Refresh the page and you should now be able to proceed with the installation:</p>
<p><a href="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-194916.png" rel="prettyPhoto[gallery-QWOm]"><img loading="lazy" decoding="async" class="alignnone size-large wp-image-4297" src="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-194916-899x1024.png" alt="" width="899" height="1024" srcset="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-194916-899x1024.png 899w, https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-194916-263x300.png 263w, https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-194916-768x875.png 768w, https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-194916.png 1079w" sizes="auto, (max-width: 899px) 100vw, 899px" /></a></p>
</div>
<p>Let me know how it goes or if you have other solutions. Good luck!</p>
<p>&nbsp;</p>
<p>P.S. Also, check my <a href="//deepcorelabs.com/upgrade-mariadb-on-plesk/">article on updating MariaDB since Moodle requires 10.5.6 or greater</a> I think. Ignore the part that is about Plesk if you&#8217;re not using it &#8212; the process is exactly the same except the last step 9. is not necessary on vanilla Ubuntu or CentOS.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://deepcorelabs.com/moodle-environment-error-it-is-required-that-you-store-all-your-data-in-unicode-format-solved/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>DigitalOcean: &#8220;Server sent command exit status 1&#8221; in WinSCP</title>
		<link>https://deepcorelabs.com/digitalocean-server-sent-command-exit-status-1-in-winscp/</link>
					<comments>https://deepcorelabs.com/digitalocean-server-sent-command-exit-status-1-in-winscp/#respond</comments>
		
		<dc:creator><![CDATA[Miro Hristov]]></dc:creator>
		<pubDate>Sat, 21 Mar 2020 08:27:47 +0000</pubDate>
				<category><![CDATA[Errors]]></category>
		<guid isPermaLink="false">http://deepcorelabs.com/?p=876</guid>

					<description><![CDATA[Solution: TLDR: Login using the built-in console to change the default password. Use the new password to SSH. The reason you&#8217;re getting this error is because you&#8217;re trying to SSH...]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Solution:</h2>



<p><strong>TLDR: Login using the built-in console to change the default password. Use the new password to SSH.</strong></p>



<p>The reason you&#8217;re getting this error is because you&#8217;re trying to SSH into DigitalOcean using the default root password.</p>



<p>Open the Droplet back-end and find the Console button:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="800" height="453" class="wp-image-878" src="https://deepcorelabs.com/wp-content/uploads/2020/03/15-digitalocean-click-console-1.png" alt="" srcset="https://deepcorelabs.com/wp-content/uploads/2020/03/15-digitalocean-click-console-1.png 800w, https://deepcorelabs.com/wp-content/uploads/2020/03/15-digitalocean-click-console-1-300x170.png 300w, https://deepcorelabs.com/wp-content/uploads/2020/03/15-digitalocean-click-console-1-768x435.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<p>Now login from here with root and your default password (Paste it with Ctrl+V). It will ask you to change the password immediately. You&#8217;ll have to paste in the default password one more time. Now type in a new password twice. That&#8217;s it. You should be able to SSH with WinSCP or PuTTy without issues now using the new password. Enjoy!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://deepcorelabs.com/digitalocean-server-sent-command-exit-status-1-in-winscp/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
