OneCD wrote:And that was only trying to go back to the first 4.2.0 build.
Haha, so much for downgrading reliability then
Anyway, the IT guy got pretty inspired about the opportunity to update the QNAP now that we got talking about it, so he left me in charge (apparently I know too much about these things) and promptly went off for the weekend... Yay... Sure, the extra hours is a nice extra income, but I hadn't really planned for this. The significant other at home was even less amused, but I bought her Horizon Zero Dawn for our PS4, that'll keep her busy for a while
Regardless, here I am now, at work on a saturday.
I've let the update run its course, and most things seem to work as it should. Of course the thing that is needed most is the file serving capabilities, and that seems to have gone over flawlessly.
So, the NAS updated from 3.5.2 to 4.2.2 now.
This has presented a few minor glitches so far (haven't been able to test everything yet):
- Started off by turning off all the stuff we don't want (I so wish this would default to off) like the video station, photo station and so on.
- The previously attached USB disk, formatted as NTFS by the NAS is no longer recognized as NTFS. This is not dealbreaker, most likely we'll either reformat it or buy a new one. This is the third leg of the backup strategy, good to have but not a major issue to resolve. Curious though as to why it no longer recognizes the NTFS drive, it says "Unknown". Haven't yet hooked it up to a Windows machine, but as far as I know it should be working.
- The phpMyAdmin installation, or possibly the MariaDB installation, or a combo thereof, is not working. This is a more major issue, but not an urgent issue to resolve. Logging in to phpMyAdmin gives me a "mysqli_real_connect(): (HY000/2002): No such file or directory". Logging in to /mnt/ext/opt/mariadb/bin/mysql -p works fine though, I can see all the old MySQL databases and such, I just can't connect to it using phpMyAdmin. Neither can I connect to port 3306 using Sequel Pro on my Mac, which worked fine before the upgrade.
Checking around a bit, I found the topic here:
viewtopic.php?t=118447
And running the suggested commands from there yields:
Code: Select all
[~] # ps -ef | grep sql
4034 admin 1220 S /bin/sh /usr/local/mariadb/bin/mysqld_safe --defaults
4378 admin 41856 S /usr/local/mariadb/bin/mysqld --defaults-file=/usr/lo
22866 admin 1240 S /bin/sh /usr/local/mysql/bin/mysqld_safe --defaults-f
23166 admin 44616 S /usr/local/mysql/bin/mysqld --defaults-file=/etc/conf
28803 admin 532 S grep sql
Code: Select all
[~] # ls /tmp/mysql*.sock
/tmp/mysql.sock= /tmp/mysql_mediadb.sock=
Code: Select all
[~] # cat /proc/4034/cmdline
/bin/sh/usr/local/mariadb/bin/mysqld_safe--defaults-file=/usr/local/mariadb/my-mariadb.cnf--basedir=/usr/local/mariadb--datadir=/share/MD0_DATA/.system/data--user=root--default-storage-engine=MyISAM--wait_timeout=2628000--pid-file=/var/lock/mariadb.pid--tmpdir=/share/MD0_DATA/.system/tmp
I note that it says port 3310 here (below), but in the UI it still says 3306 in the "SQL Server" section.
Code: Select all
[~] # cat /proc/4378/cmdline
/usr/local/mariadb/bin/mysqld--defaults-file=/usr/local/mariadb/my-mariadb.cnf--basedir=/usr/local/mariadb--datadir=/share/MD0_DATA/.system/data--plugin-dir=/usr/local/mariadb/lib/plugin--user=root--default-storage-engine=MyISAM--wait-timeout=2628000--tmpdir=/share/MD0_DATA/.system/tmp--log-error=/share/MD0_DATA/.system/data/ANSNAS01.err--pid-file=/var/lock/mariadb.pid--socket=/tmp/mysql_mediadb.sock--port=3310
Code: Select all
[~] # cat /proc/22866/cmdline
/bin/sh/usr/local/mysql/bin/mysqld_safe--defaults-file=/etc/config/my.cnf--datadir=/usr/local/mysql/var--tmpdir=/usr/local/mysql/tmp--pid-file=/var/lock/qmysql.pid--user=admin
...and as opposed to the above, it seems the mysql daemon is still using 3306.
Code: Select all
[~] # cat /proc/23166/cmdline
/usr/local/mysql/bin/mysqld--defaults-file=/etc/config/my.cnf--basedir=/usr/local/mysql--datadir=/usr/local/mysql/var--plugin-dir=/usr/local/mysql/lib/plugin--user=admin--tmpdir=/usr/local/mysql/tmp--log-error=/usr/local/mysql/var/ANSNAS01.err--pid-file=/var/lock/qmysql.pid--socket=/tmp/mysql.sock--port=3306
***STOP PRESS***
Ok, since I hadn't tried 3310 as port in Sequel Pro, I did. No, didn't work, but I got an "Access denied" instead. Progress, I thought. For fun I changed it back to 3306 again and lo and behold, it connected! All the databases and everything.
Next I hopped over to phpMyAdmin and voila, it logged right in.
Thing is, the only thing I've done (besides typing this post) is running the above mentioned terminal commands. Nothing. Else.
I can't explain it. Sequel says "MySQL 5.5.44-MariaDB-log", so I assume I'm connected to the new MariaDB and not the old MySQL. Web pages using the MySQL databases seems to work fine as well, so all seems good. Still, why it didn't work from the get go I don't know. Something delayed and/or running in the background finished while I was typing? I may never know
I'm a bit worried though that it seems both MySQL and MariaDB is up and running at the same time. Will that in itself present any foreseeable problems?
One more thing, there is a shell script added to the crontab that is supposed to backup the MySQL data to a specific share. If anyone would be willing to take a look at that shell script to see if it can be adapted to MariaDB, please drop me a PM.
In any case, the NAS is updated and almost everything is up and running as far as I can tell. There are a few bits and bobs that may need a tweak or two, but hopefully nothing major.
Oh yeah, one last thing! Is there a way to disable the "homes" share? I've disabled the home folders for single users, but it still shows the "homes" share (but ofc it requires authentication).
Thanks for the support through this, a good forum and users is an invaluable asset!