Community discussions

MUM Europe 2020
 
ilja
newbie
Topic Author
Posts: 49
Joined: Thu Feb 22, 2018 1:15 pm

Hotspot umfiles stored in RAM - bug

Wed Mar 21, 2018 9:42 am

Hey all.

I might be wrong, but i think i have came across a bug.

Follow up story:
I need to make hotspot signup only show one specific profile, not all of them. I found on https://wiki.mikrotik.com/wiki/User_Man ... ser_Signup that i can do that by custom sign up page.
When i navigate to the root of router i see two directories: "umfiles" and "flash".
Under umfiles directory are all default templates for sign up page. I can easily change all the template as custom as i need them and everything works nicely. But the problem is that after router reboot umfiles folder is gone. It just get's automatically deleted. And when i request signup page the umfiles folder gets created again, but it's back to default.

Bug:
MikroTik wiki https://wiki.mikrotik.com/wiki/Manual:System/File says that everything, but "flash" folder is stored in RAM folder. Which explains why "umfiles" folder get's deleted.

How can i keep umfiles folder on my mikrotik, so after reboot hotspot would still use my custom pages?


Help:
I know it's a shitty solution, but i can probably store my modifies umfiles folder in "flash" directory and make a script which will copy /flash/umfiles directory to /umfiles on mirkotik startup. Can anyone please help to make a script to achieve that? :/
 
ilja
newbie
Topic Author
Posts: 49
Joined: Thu Feb 22, 2018 1:15 pm

Re: Hotspot umfiles stored in RAM - bug

Sat Mar 24, 2018 10:18 am

any help?
 
2frogs
Long time Member
Long time Member
Posts: 542
Joined: Fri Dec 03, 2010 1:38 am

Re: Hotspot umfiles stored in RAM - bug

Sat Mar 24, 2018 3:08 pm

Under Hotspot Server Profiles, you can select the location for your files. In winbox, you should be able to drag & drop the hotspot folder to flash storage.

You didn’t mention which device you are using, but if it one that didn’t have much flash space I suspect that this was intended and not a bug.
 
ilja
newbie
Topic Author
Posts: 49
Joined: Thu Feb 22, 2018 1:15 pm

Re: Hotspot umfiles stored in RAM - bug

Mon Mar 26, 2018 12:33 pm

Under Hotspot Server Profiles, you can select the location for your files. In winbox, you should be able to drag & drop the hotspot folder to flash storage.

You didn’t mention which device you are using, but if it one that didn’t have much flash space I suspect that this was intended and not a bug.
Thank you, 2frogs, for your reply.

But you are talking about HTML_directory. That one you can specify custom path and it will work, but there is no setting to setup umfiles(the ones which are showing hotspot signup page). The folder "umfiles" gets automatically created in / (root) when u first access signup portal. And it gets deleted after each reboot, deleting all changed files.

I am using MikroTik hEX PoE Lite.
 
ilja
newbie
Topic Author
Posts: 49
Joined: Thu Feb 22, 2018 1:15 pm

Re: Hotspot umfiles stored in RAM - bug

Tue Apr 03, 2018 10:28 am

Anyone please? :? :(
 
2frogs
Long time Member
Long time Member
Posts: 542
Joined: Fri Dec 03, 2010 1:38 am

Re: Hotspot umfiles stored in RAM - bug

Tue Apr 03, 2018 1:49 pm

Sorry, I read “Hotspot umfiles” and the Hotspot HTML Directory is where my mind went.

I suspect what you are seeing is do to the limited storage on the HEX POE lite. There simply is not enough room in flash for the UserManager files so it is put into RAM where it has little more room. A different device with more storage and RAM would have been a better choice.
 
ilja
newbie
Topic Author
Posts: 49
Joined: Thu Feb 22, 2018 1:15 pm

Re: Hotspot umfiles stored in RAM - bug

Tue Apr 03, 2018 2:50 pm

Thank you, 2frogs.

It's unfortunately too late for me to change the devices. Do you think there are any alternative solutions? I was thinking of making a script which could just copy umfiles directory from flash(where i can safely store it) to "/" directory. I am not good at scripting and am stuck half-way. Trying to get some help from forum, but it's very inactive :/
If you can take a look, it's there - viewtopic.php?f=9&t=132218&p=652007#p652007
 
2frogs
Long time Member
Long time Member
Posts: 542
Joined: Fri Dec 03, 2010 1:38 am

Re: Hotspot umfiles stored in RAM - bug

Tue Apr 03, 2018 3:20 pm

To my knowledge, there is no way to change the location of the umfiles. Even if you copy them to another location, it will never look there for the files.

If you have a computer to run a CHR instance on, you might try the free version and see if it will run UserManager. I have not tried it so I am un-sure. Or use the Radius built in to HotSpot, I know it is PITA maintain this way.
 
ilja
newbie
Topic Author
Posts: 49
Joined: Thu Feb 22, 2018 1:15 pm

Re: Hotspot umfiles stored in RAM - bug

Tue Apr 03, 2018 3:54 pm

To my knowledge, there is no way to change the location of the umfiles. Even if you copy them to another location, it will never look there for the files.

If you have a computer to run a CHR instance on, you might try the free version and see if it will run UserManager. I have not tried it so I am un-sure. Or use the Radius built in to HotSpot, I know it is PITA maintain this way.
No no, I meant having a MikroTik script which will be automatically executed after the router is reset. The script would just copy the whole directory .../flash/umfiles to /umfiles.
 
2frogs
Long time Member
Long time Member
Posts: 542
Joined: Fri Dec 03, 2010 1:38 am

Re: Hotspot umfiles stored in RAM - bug

Tue Apr 03, 2018 6:17 pm

viewtopic.php?p=295171#p295171

You might start here...

Who is online

Users browsing this forum: akosikazim and 121 guests