Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Linuxserver.io - Unifi

Featured Replies

Guys, this latest version, plus the AP firmware they just release, are broken for me. Intermittent wifi access, iPad Air not connecting at all, crippling DNS resolution, slow speed...

 

Is there a feasible roll-back option and would that flash older firmware on my AP?

  • Replies 905
  • Views 185.6k
  • Created
  • Last Reply

You can manually download older firmware, probably would want 4.15 and install it. Thats if youre talking about the gateway. You can do the same for the AP's but don't know the right version number

I had the same problem with this Docker as a few other people have had, but that I've not seen a definitive solution for, and I thought I'd document the best solution I've come up with.  I was having an issue where the Docker would start, but the web UI would fail to become accessible.  Looking at the log files, the issue was with MongoDB, which was giving the error:

 

Fri Aug 12 18:22:34.017 [initandlisten] LogFile::synchronousAppend failed with 8192 bytes unwritten out of 8192 bytes;  b=0x35d4000 errno:22 Invalid argument
Fri Aug 12 18:22:34.017 [initandlisten]   Fatal Assertion 13515

 

This also resulted in the following errors appearing in the unRAID system log:

 

Aug 12 18:22:34 fileserver shfs/user: shfs_write: write: (22) Invalid argument

 

As best as I can tell, the issue is that the MongoDB service is trying to write data to the mapped folder, but the operation it's trying to perform is unsupported by the unRAID file system.  (This may be a completely incorrect analysis!)

 

I believe some people have mitigated this by having the docker data stored on an SSD instead of on the main array, but I haven't yet added an SSD to my setup, so I can only store the data on the main array.  However, by changing the config path mapping from /mnt/user/appdata/unifi to /mnt/disk1/appdata/unifi, I was able to successfully start the docker.  I guess that because MongoDB is now directly accessing the ext4 filesystem on the drive, it can perform whatever operation it's trying to do successfully.

 

This might be worth documenting for others who don't have an SSD and map the config path directly to the main array.  I've seen a few reports of this error in this thread and in some of the other Unifi docker support threads (it doesn't appear to be specific to the LinuxServer image, but to any Docker image that runs MongoDB and maps its folders).

 

 

 

I was having this exact issue still however your solution of mapping app data direct to a disk  e.g.  /mnt/disk1/appdata/unifi  instead of /user/ did work for me...

 

I would add however that simply remapping the user share and restarting the docker didnt fix it, I had to fully delete the docker image AND delete all traces of the old /appdata/unifi folders from my /user/ share, then reinstall it mapped to /disk1/ before it would work

I had the same problem with this Docker as a few other people have had, but that I've not seen a definitive solution for, and I thought I'd document the best solution I've come up with.  I was having an issue where the Docker would start, but the web UI would fail to become accessible.  Looking at the log files, the issue was with MongoDB, which was giving the error:

 

Fri Aug 12 18:22:34.017 [initandlisten] LogFile::synchronousAppend failed with 8192 bytes unwritten out of 8192 bytes;  b=0x35d4000 errno:22 Invalid argument
Fri Aug 12 18:22:34.017 [initandlisten]   Fatal Assertion 13515

 

This also resulted in the following errors appearing in the unRAID system log:

 

Aug 12 18:22:34 fileserver shfs/user: shfs_write: write: (22) Invalid argument

 

As best as I can tell, the issue is that the MongoDB service is trying to write data to the mapped folder, but the operation it's trying to perform is unsupported by the unRAID file system.  (This may be a completely incorrect analysis!)

 

I believe some people have mitigated this by having the docker data stored on an SSD instead of on the main array, but I haven't yet added an SSD to my setup, so I can only store the data on the main array.  However, by changing the config path mapping from /mnt/user/appdata/unifi to /mnt/disk1/appdata/unifi, I was able to successfully start the docker.  I guess that because MongoDB is now directly accessing the ext4 filesystem on the drive, it can perform whatever operation it's trying to do successfully.

 

This might be worth documenting for others who don't have an SSD and map the config path directly to the main array.  I've seen a few reports of this error in this thread and in some of the other Unifi docker support threads (it doesn't appear to be specific to the LinuxServer image, but to any Docker image that runs MongoDB and maps its folders).

 

 

 

I was having this exact issue still however your solution of mapping app data direct to a disk  e.g.  /mnt/disk1/appdata/unifi  instead of /user/ did work for me...

 

I would add however that simply remapping the user share and restarting the docker didnt fix it, I had to fully delete the docker image AND delete all traces of the old /appdata/unifi folders from my /user/ share, then reinstall it mapped to /disk1/ before it would work

Just FYI that 6.2 would odds on fix this issue

 

Sent from my SM-T560NU using Tapatalk

 

 

Thats what I thought too updating to 6.2 is what prompted me to give this docker another go

 

however it still didnt work until I tried the above

Thats what I thought too updating to 6.2 is what prompted me to give this docker another go

 

however it still didnt work until I tried the above

If deleting the appdata at the same time as switching to /mnt/user/... didn't work then there's still a function that user shares do not support but disk shares do.  If you ever get bored, you can always try again and post the diagnostics, and any logs from unifi / mongoDB so that Tom can get this fixed up.

Downgrading the firmware on my AP To the previous stable release has resolved my issues with connectivity. Here's to ubiquiti resolving this buggy FW in the next release.

  • 2 weeks later...

I know you need to wait till their apt repository is updated but version 5.2.9 is out now.

 

I am not sure if it updates your side updates automatically or not when their repository does or if you get notified on updates. If it's an automatic thing, I won't bother letting you know there is an update in the future.

 

Thanks!

I know you need to wait till their apt repository is updated but version 5.2.9 is out now.

 

I am not sure if it updates your side updates automatically or not when their repository does or if you get notified on updates. If it's an automatic thing, I won't bother letting you know there is an update in the future.

 

Thanks!

 

5.29 is in the unifi apt repository, our images are now set by a cron job in jenkins to refresh on fridays on or abouts 11pm uk time.

the update will be picked up then.

Ok good to know.

 

Thanks!

  • 2 weeks later...

Any chance of adding a script for let's encrypt to get an SSL cert for the controller?  I saw this on reddit, might be helpful:

 

 

 

I don't want to edit the docker container myself as it'll probably be overwritten whenever it upgrades.  Just thought this would be pretty neat for those allowing access to the inet for multiple-site setups

Any chance of adding a script for let's encrypt to get an SSL cert for the controller?  I saw this on reddit, might be helpful:

 

https://www.reddit.com/r/Ubiquiti/comments/43v23u/using_letsencrypt_with_the_unifi_controller/

 

 

I don't want to edit the docker container myself as it'll probably be overwritten whenever it upgrades.  Just thought this would be pretty neat for those allowing access to the inet for multiple-site setups

You can use reverse proxy with Nginx Let's Encrypt

I don't think you can use a path like "domain.com/unifi" as the address advertised to the devices from the controller, which means reverse proxy wont work.

I don't think you can use a path like "domain.com/unifi" as the address advertised to the devices from the controller, which means reverse proxy wont work.

You can use unifi.domain.com with reverse proxy also

You can use unifi.domain.com with reverse proxy also

 

using a url redirect?  not exactly sure how to accomplish it.

 

**edit**

Figured it out, took a couple tries to get the websocket errors to go away:

 

server {
listen 443 ssl;
server_name unifi.domain.com;
access_log /var/log/nginx/unifi.log;
ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem;
location / {
	proxy_pass https://10.81.0.13:8443/;
                proxy_http_version 1.1;
                proxy_buffering off;
	proxy_set_header Upgrade $http_upgrade;
	proxy_set_header Connection "Upgrade";
	proxy_set_header Host $host;
	proxy_set_header X-Real-IP $remote_addr;
	proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
}
}

  • 1 month later...

can some one help me

the web ui won't open

002.JPG.ae530156c77bf4f5f60e720308dbdcd8.JPG

001.JPG.3c889d04099311bd4d98582b46faacb1.JPG

003.JPG.627fcc9492dc69f601ef0fbfe17ac555.JPG

can some one help me

the web ui won't open

Would be nice to have the error message in understandable language....

But did you use https:// in front?

i use dashboard - unifi - webUI  (https://192.168.1.202:8443/)

the error is can't connect to

I don't use this but just pulled it, couldn't access the webui for a minute or so then it worked.

 

BVuBOb8.png

The container uses a few commonly used ports, you should check if there is a conflict. It's also quite slow to start, could take a few minutes.

removed all files for unifi

and try to re add the docker

same problem

 

logs from unraid says

Nov 22 10:22:31 Tower shfs/user: err: shfs_write: write: (22) Invalid argument

 

are there more settings i have to fill in

or settings i have not fill in correct?

001.JPG.2420428cb357f70db1405698d552b93e.JPG

removed all files for unifi

and try to re add the docker

same problem

 

logs from unraid says

Nov 22 10:22:31 Tower shfs/user: err: shfs_write: write: (22) Invalid argument

 

are there more settings i have to fill in

or settings i have not fill in correct?

 

What's in the advanced section?  And what version of unraid are you on?

it's working now

 

unraid version 6.2.4

 

AppData Config Path:/mnt/disk1/appdata/unifi/  <------ that was my problem

it's working now

 

unraid version 6.2.4

 

AppData Config Path:/mnt/disk1/appdata/unifi/  <------ that was my problem

 

What was the problem?  What was it set to / what have you changed it to?

/mnt/disk1/appdata/unifi/

 

was

/mnt/user/appdata/unifi/

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.