Today, I restartet tried to shutdown my AS5402T to connect a UPS.
As always, the NAS does not shut down but stays running and blinking until I use the power button to turn in off.
Actually, why is that? Another thing I do not like about it. ADM will not be accessible, while docker e.g. containers are still running.
But now, in contrast to prior restarts, Nextcloud is not working anymore. After some troubleshooting, I am beginning to think that the problem is connected to mariadb
When I use phpadmin to login the database, I receive the following error:
mysqli::real_connect(): (HY000/2002): Connection refused
I tried changing and resetting the password of the database in ADM which also results in errors.
Does anyone have an idea?
It's really frustrating, the NAS is not running without errors for more than a few month. I never experienced something like this with my Synology before.
No access after restart
-
- Posts: 21
- youtube meble na wymiar Warszawa
- Joined: Sun Dec 17, 2023 4:07 pm
- Nazar78
- Posts: 2235
- Joined: Wed Jul 17, 2019 10:21 pm
- Location: Singapore
- Contact:
Re: No access after restart
Try disabling then enable it back. If that doesn't work probably the db crashed. Try to repair the db or last resort initialize then restore hopefully you had scheduled some backup dumps. It's all about db administration and it can happen on any system, if you're unsure do look for online guides.
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps
When posting, consider checking the box "Notify me when a reply is posted" to get faster response
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps
When posting, consider checking the box "Notify me when a reply is posted" to get faster response
-
- Posts: 21
- Joined: Sun Dec 17, 2023 4:07 pm
Re: No access after restart
Thanks for the reply. Deactivating and activating did not help, unfortunately.
The only mariadb related command I can use in the CLI is mariadb_config which does not help.
mariadb_check (https://mariadb.com/kb/en/mariadb-check/) is not available. How would you repair the db?
The only mariadb related command I can use in the CLI is mariadb_config which does not help.
mariadb_check (https://mariadb.com/kb/en/mariadb-check/) is not available. How would you repair the db?
- Nazar78
- Posts: 2235
- Joined: Wed Jul 17, 2019 10:21 pm
- Location: Singapore
- Contact:
Re: No access after restart
First you'll need to figure out what's wrong before attempting to repair. It could also be other issues like permission. Take a look at the log, /usr/local/AppCentral/mariadb/data/error.log.
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps
When posting, consider checking the box "Notify me when a reply is posted" to get faster response
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps
When posting, consider checking the box "Notify me when a reply is posted" to get faster response
-
- Posts: 21
- Joined: Sun Dec 17, 2023 4:07 pm
Re: No access after restart
Thanks for guiding me to the error log!
This error is occuring again and again:
And in addition there is this warning:
This error is occuring again and again:
Code: Select all
[ERROR] InnoDB: Missing FILE_CREATE, FILE_DELETE or FILE_MODIFY before FILE_CHECKPOINT for tablespace 5
[ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption
[ERROR] Plugin 'InnoDB' init function returned error.
[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
[ERROR] Unknown/unsupported storage engine: InnoDB
[ERROR] Aborting
Code: Select all
[Warning] 'innodb-file-format' was removed. It does nothing now and exists only for compatibility with old my.cnf files.
[Warning] 'innodb-large-prefix' was removed. It does nothing now and exists only for compatibility with old my.cnf files.
- Nazar78
- Posts: 2235
- Joined: Wed Jul 17, 2019 10:21 pm
- Location: Singapore
- Contact:
Re: No access after restart
Append innodb_force_recovery=6 to [mysqld] in your my.cnf, disable then enable back the mariadb from the app central. If everything ok undo the previous step then restart again. Start doing backups for your db.
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps
When posting, consider checking the box "Notify me when a reply is posted" to get faster response
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps
When posting, consider checking the box "Notify me when a reply is posted" to get faster response
-
- Posts: 21
- Joined: Sun Dec 17, 2023 4:07 pm
Re: No access after restart
Thanks, I was able to recover part of the database. But in the end I had to reinitialize MariaDB.
Is it possible to automate backups?
Is it possible to automate backups?