Configuration file error. (ref. 5006)

Moderator: Lillian.W@AST

Post Reply
michpl
Posts: 10
youtube meble na wymiar Warszawa
Joined: Sat Jun 27, 2020 6:04 am

Configuration file error. (ref. 5006)

Post by michpl »

Hello,

on my AS1004t with 3.5.0.R5D3 when I get into services -> web server I got an error popup:
"Błąd pliku konfiguracyjnego. (Ref. 5006)" -> "Configuration file error. (ref. 5006)".
When I close the popup and try to change WWW and SSL port and save it I see:
" Nie zmieniono żadnych ustawień." -> which is "No changes were made".
Changes arent saved.

The same is with vhost tab, I get popup:
"Nie można odczytać pliku konfiguracyjnego. (Ref. 5006)" -> "Cant read configuration file"
I cant use my nas as WWW server anymore.

What should I do to be able to save changes in web server files?

BR,
Michal
User avatar
orion
Posts: 3485
Joined: Wed May 29, 2013 11:09 am

Re: Configuration file error. (ref. 5006)

Post by orion »

It looks like something wrong internally. I think you can use another browser to have another try (Chrome, Firefox...). If the problem remains, I think you should send a support request directly to asustor. https://support.asustor.com/
michpl
Posts: 10
Joined: Sat Jun 27, 2020 6:04 am

Re: Configuration file error. (ref. 5006)

Post by michpl »

I have the same issue on firefox, chrome, egde, so it is not browser related.
User avatar
Nazar78
Posts: 2065
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

Re: Configuration file error. (ref. 5006)

Post by Nazar78 »

I bet you see the same error on the WebDAV too. Anything you did to the web server recently that leads to this error? Just curious.

You can test if your web server is ok, enable SSH, "Services->Terminal->Enable SSH service" prior, leave the port default 22. Use putty for Windows or Terminal for Mac to SSH into the NAS root@your_nas_ip then run: "apache2 -t" to test if it's ok or if there's any misconfiguration, share it here so we can work it out.

The first file it reads when you click on one of these Services tabs is the /volume0/usr/builtin/etc/apache2/asustor.conf even if it doesn't exist it will create a new one. I suspect your whole path doesn't exist or corrupted.

What you can do is to backup this path if it exist:

Code: Select all

mv /volume0/usr/builtin/etc/apache2 /volume0/usr/builtin/etc/apache2.bak
Copy over from the default:

Code: Select all

cp -a /volume0/usr/builtin/etc.default/apache2 /volume0/usr/builtin/etc/
Check again those tabs, if everything ok you may remove the backup:

Code: Select all

rm -rf /volume0/usr/builtin/etc/apache2.bak
The above needs some experience with Linux, I can't remember if Asustor prevents updating to the same firmware, which you could also try before doing the above. Go to https://www.asustor.com/en/service/down ... duct_id=43 and download the current firmware you have, then update it from "Settings->ADM Update->Manual Update". Take note I see there's a V2 of your AS1004t ensure you get the correct one.
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
michpl
Posts: 10
Joined: Sat Jun 27, 2020 6:04 am

Re: Configuration file error. (ref. 5006)

Post by michpl »

Yes, I configured web and webdav server, but i did it only via GUI.

Nazar78 -> you are genius. You procedure solved my problem, no errors occures now!
Thank you.
Post Reply

Return to “[Official] For AS10XX Series”