I have the problem on my RB5009UG with version v7.17 that I can no longer correctly select the HTML directory in the hotspot.
Previously the directory was “hotspot”. That was also correct so far. Now, when I select a folder, “flash/” is automatically placed in front of it. And this folder does not exist under Files.
As a workaround, I have renamed the former only hotspot folder to “flash/hotspot”. This also works. However, if I change the HTML directory a second time and select “flash/hotspot”, a “flash” is put in front of it again and now I am already in the HTML directory “flash/flash/hotspot”. This is annoying.
Where does this flash directory come from? Is it a bug? I couldn’t find anything in the changelogs that indicates this.
I have to say that I set up the router board with v7.6 and then updated to v7.17.
Directory flash/ is present on devices with less than 64MB flash disk and more than 64MB RAM … where root of file storage is on RAM disk instead of flash. On those systems, the remaining portion of flash disk is mounted under flash directory (and is thus root of non-volatile storage).
Since RB5009 has more than 64MB flash, it’s mounted as root of storage … and seeing flash/ in hotspot config is clearly a bug. Does this bug appear also when you use CLI to configure device?
thanks for the explanation. I have already read that somewhere. Then it is a mistake. I have just tried to change it via terminal. Here, too, “flash” is always put in front of it.
From
/ip hotspot profile set hsprof1 html-directory=hotspot
What was factory ROS version on your hAP ax2? Itbcan’t ge downgraded below that.
Did you upload all the necessary package files? hAP ax2 needs at least routeros and wifi-qcom (and could be more if you installed any other optional packages) … if you don’t provide all package files, dowgrade will fail.
In any case, after device is rebooted (as part of up/downgrade), log will show something about it.
Looks like 7.17.2 was supposed to fix this, but did not. Does anybody know if Mikrotik is aware and whether/when a follow-up fix will resolve the situation?
I think I know how to fix it. First creat a folder on your desktop name it flash. Inside your folder put the hotspot folder for example flash/hotspotjax. Delete all files in the mikrotik file manager. Add the file hotspotjax to mikrotik file. Go to hotspot server profile select HTML directory the select hotspotjax and apply. Then it will bring the flash/hotspotjax error that doesn’t work. Go back to the mikrotik file manager and delete all files again. Then drag your flash folder on desktop that has the hotspotjax file inside to the mikrotik file manager. Check your hotspot will be working.
Could you clarify what is the problem at 7.17.2 with /flash?
As well for newer boards we suggest to upgrade to 7.18 to fix the issue with /flash directory.
7.18 does not solve the problem. If you select a directory in hotspot - profiles and save, then /flash/ is automatically added to the path. Each save gives +1 flash, the result is flash/flash/flash/hotspot. If you change it via the command line, /flash is still added. If you create a flash folder and put the hotspot files there, it does not solve the problem. Thus, the captive portal does not work, if I go manually to the http://routerIP-or-name/login, I get a 404 error