Category: Blogpost

  • Are the NAS Systems from UniFi appropriate NAS-Backup solutions?

    Are the NAS Systems from UniFi appropriate NAS-Backup solutions?

    As an MSP I am always looking for improvements for our clients and as well as for our company. Therefore testing new devices and technologies is a daily part of my work.

    Since nearly a decade I have been using Synology (or former QNAP) NAS systems as primary backup storage at my clients, as well as inside the company. They have nearly replaced all tape libraries (in fact I have only two remaining customers who are using a tape library).
    I am are also very happy with our Synolgy NAS, they are typically no brainers, set and forget devices until a hard disc has to be replaced, very reliable and solid.

    But however times moves on and Synology on the one hand did some things in the last years that gained my attention, e.g. vendor lock in for HDD, and on the other hand, the newer Synology NAS are very often over capable for the intended use to provide space for backups and replicate it to another site. For backup tasks I do not need additional software like Synology Drive, or Synology Photo which requires better hardware. On the other hand as an MSP, a central overview about the state of each backup NAS is a must have and even Synology insight exists, I never became really warm with it, some important information are missing, others which are less important for the workload a displayed very prominent. Therefore I am very interested in testing alternatives.

    Since the beginning of my company we heavily used Ubiquiti devices, at the beginning mainly the Access Points, then continuing with the switches and since 3 to 4 years we have been using UniFi Protect and UniFi Access. I like the products, the quality and also the central management for MSPs which is one of the best currently available, in my opinion. Therefore I was very excited when they announced their NAS lineup. Even at the beginning it already looked as a good alternative for our current solution. But I decided to wait a little bit until some features are handed in later, which are quite important for the workload I want to test. With version 4 of the UNAS OS it was time to test it.

    Therefor I purchased one UNAS2 for testing, my requirements are very clear and very common for a MSP:

    • Easy and simple deployment even in large scale.
    • Central Management which really gives me a compact overview over the most important data.
    • Replication of the NAS to another site (in my case to an S3 storage).
    • Integration into LDAP, AD or Azure.
    • Support of NFS and Samba.
    • Encryption for certain customers.

    Deployment in large scale

    Like all other UniFi products, this is something Ubiquiti knows how to handle, like nearly none of their competitors.

    You plug in the device (you only need one network cable, the NAS is also powered by PoE) and after a short booting time the small display tells you the IP-Adress for further configuration.

    Even better, if you have a UniFi-Network, then you have only to open the site manager and the NAS is shown and ready to adopt. Simply press the adopt button and after two or three minutes the device is ready to serve.

    The device is shown as own site in the UniFi-Cloud and as a device in your UniFi-Network, like your Switches, AP and telephones.

    The way the NAS is integrated into the UniFi ecosystem is very handy and clearly arranged.

    Central Management

    As already mentioned the UNAS can be managed using the UniFi-Cloud where ist is shown as an own site which can be a little bit confusing, especially if you are also using a UniFi-Gateway which is also managed using the cloud because it is not shown hierarchically.
    On the other hand, the UNAS is running independently from any other UniFi device it can only be added to the whole ecosystem If the user wants it. Therefore this might be the right decision. The NAS also supports fabrics which helps to organize a large scale of UniFi devices and gateways.

    The UniFi NAS series have an own tab in the Unifi-Cloud, called „Data Protection“ where you get the most important information about all of your UniFi NAS systems:

    • State of each NAS
    • Health Monitor of each NAS
    • Backup Task

    Especially the last bullet point makes the UNAS series already better for an MSP than a lot of the other manufacturers. There you have a unified view for all backup tasks which are configured and about their state. You can switch between the backup of your NAS and the backup state of any cloud backups of this NAS, even for M365.

    Summarized, the UNAS series already has a better „Single Pane of Glass“ than Synology, or QNAP. Especially in combination with the other components of the UniFi ecosystem it’s something an MSP wants and is searching for.

    Replication/Backup features

    I would say this is currently the most weak discipline of the UNAS series.

    Currently it only supports three backup methods:

    Off-Site Backup allows the user to backup the complete NAS or parts of the NAS to a Remote NAS, to a CIFS/SMB-Server or to a cloud service. In the first glance this sounds solid, but in detail it shows a lack of important features:

    1. Currently you can only recover a whole backup, from scratch. You have to reset the NAS, during the installation assistant you can choose from a backup. There is no possibility in the current UI to select e.g. a certain file to restore. I know that the UNAS supports snapshots, but recovering certain files from a backup without a complete reset of the UNAS is a basic need.
    2. As a destination for a cloud backup you currently have only the options to backup to Google Drive, OneDrive, Dropbox, Amazon S3, Wasabi and Backblaze B2. There is no possibility to define a custom s3 provider. For me as an MSP this is simple not enough, we use European S3 providers because of legal terms and therefore we would need to define custom S3 providers.
    3. There is no possibility to encrypt the data locally before sending it to the external backup destination.
    4. It is also not possible to set a max data rate for uploading to the cloud. This must be done on the firewall/router.

    Local backup supports backup to an external NAS using Rsync to the UNAS2, or creating a copy of the local console to another Ubiquiti NAS in the network. As already mentioned in the Offsite-Backup, the UI currently does not support any kind of restore tasks.

    Cloud-Backup: Using the Cloud-Backup you can backup your M365 One Drive to the NAS, the support for Exchange, Teams and Sharepoint should follow soon. If this feature arrives, I probably will make my own test.

    Generell spoken, the current backup feature of the UNAS series is very, very rudimentary, nor comparable with the features of Synology, QNAP or UNAS. I hope the next releases will improve this functionality.

    Integration into LDAP, AD or Azure

    The integration of the UNAS into an Active Directory works quite well, in the first try I had certain problems but all of them were solved with an update in August 2026. The integration is very easy, the device is added as a domain member and then synchronizes the AD users. Now you can directly access the NAS from any computer in the network. If the computer is a member of the domain and you have enough rights you can directly access the storage, otherwise you have to enter your domain credentials.
    It also works fabulously with Apple, or Linux devices. There I have nothing to complain.

    You can also use your credentials to access the web file browser of the UNAS and it works seamlessly with your Ubiquiti identity app and access your files on the NAS. There is also a possibility to use the NAS as a backup destination for your iOs (!) photo library. I did not test this.

    Support of NFS and Samba

    The UNAS series supports NFS and Samba and both protocols work really well and the whole NAS is very fast with its 2.5 Gbit port. Especially for this stock price the speed is really great!

    I did three test:
    First I added it using Samba to my Windows PC and put a copy of an old Windows Server VM on the NAS and started it from there, using VmWare Workspace.

    In a second test I used the UNAS as a SR destination for VM on my XPC-NG cluster and ran two virtual machines, one windows server and one Ubuntu server parallel. It worked quite well, even though I did not use SSD drives. I would not run any heavy vm load on this NAS, but as already mentioned for this price the performance is more than well.

    As a third test I used it as a backup destination, again for my XPC-NG cluster, and also in this role the UNAS2 made a really good job. On backup and restore operations the NAS always used nearly the maximum of its 2.5 Gbit connection to transfer data. There were only a few and small drops in the read and write statistics, even when backing up big VMs.

    Conclusion

    The UNAS2 is a very solid and good value NAS for anyone who is focused on a device which is very good in one thing: To store and provide files in a network. It has no advanced features like Docker, VMs, or applications like Synology Drive oder Synology Photo. It is a quite basic NAS with a fast network connection (a lot of more expensive NAS still have only a 1 Gbit network interface), with a really good value.

    For an MSP who is already using Ubiquiti devices the UniFi NAS series is a good choice if they need a device which can be centralized accessed and managed and its main task is to store and provide data.
    In the current state I will use the UNAS2 as a backup NAS for small clients which have virtualized environments and no problems with storing their external backup on AWS S3.

    But I hope that Ubiquiti will soon improve and extends the features of the UniFi NAS series, especially a restore assistant in the UI for partly restore operations is a must have!

  • Configuring Ubiquiti U5G Max on a different WAN Port

    Configuring Ubiquiti U5G Max on a different WAN Port

    In this blog entry I will describe how to configure the U5G Max on a different WAN-Port than the default one, considering advanced feature like port forwarding.

    I am using the following setup:

    • One UDR7 as my home router.
    • One U5G-Max Outdoor, with inserted sim card.
    • I want to use Port 1 on my UDR7 for the U5G-Max because this port supports PoE.
    • The U5G-Max Outdoor is already connected to Port 1 but not adopted.
    • I have local access to the cloud gateway.

    Changing the default WAN interface to Port 1

    In the first step we need to change the default port for WAN1 to Port 1 of the UDR7 (this is also the most important step):

    1. Go to “Settings” -> “Internet”, you will see the following settings:

    2. Assign “Port 1” to “WAN1” and change “Port 4”, which is the default port for WAN to “Unassigned”:

    3. Press “Apply changes” to store the changes.

    In the next step we will adopt the U5G-Max.

    Adopt the U5G-Max

    To adopt the U5G-Max we go to “UniFi-Devices” and press “Click to Adopt” on the U5G-Max which should be shown:

    After a certain time the small dot in front of the device switches to green and now we can check if the port forwarding rules are configured correctly.

    Checking the port forwarding rules

    1. We go to “Settings” and select the small icon to display the “Policy Table”.
    2. Next we select “Port Forwarding” as Policy Type and select the policy rule.
    3. The configuration will open, and there we need to check if the right WAN Interface is selected.
    4. In our case this must be WAN1.
    5. Finally we can check if the right ports are selcted and press “Apply” if we made any changes.

    Now the port forwarding from the Internet using the U5G-Max should work.

    Optional: Change the APN settings to static IP (A1):

    Finally I will change the APN settings to a static IP-Address. This step refers to any customers of the Austrian provider A1 Telekom Austria like me, if you have a business tarif for your 5G Internet and therefore a static IP-address.

    1. We go again to “UniFi Devices” and select the “U5G-Max”.
    2. We go to “Settings” and scroll down until we can select “Use custom APN”.
    3. Then we change the “APN Address” to fixip.a1.net
    4. As “Authentication Type” we select “NONE”. All other settings remain as default.
    5. With “Apply Changes” we submit the changes and after a short time the small dot in front of the devices switches again from orange to green.
    6. As last step we need to restart the U5G-Max that the fix IP-address is applied. We switch to “Ports”, select “Port 1” and than we press “Power Cycle” which disables for a short time the power supply of the network port. Afterwards the U5G will restart and apply the fix IP-address.

    I hope this step by step guide is helpful and feel free to comment.

  • Network configuration for Thread/Matter

    Network configuration for Thread/Matter

    During my integration of Thread into my home network I got confronted with two problems:

    • The pairing process startet succesfully, the device was found but when reached the configuration mode it took endless time and ended with the result, that the paring process was not successfully.
    • The pairing process and integration was susccessfully but the device lost the connection after a certain time and I was not able to reconnect it.

    After some tries and researches I found the reason in my network configuration which was per default not optimized for a Thread network. There are two important things to know about Thread/Matter:

    • During the pairing process the device connects, using bluetooth. If the bluetooth connection is established the keys of the Thread network are exchanged and then the device connects to the Thread network. If this is sucessfully the configuration and integration is done. But if this connection fails the mobile device stucks in the configuration mode until a timeout is reached.
    • Thread lies heavily on IPv6 and the network behind the border router must fulfill some requirements. Esspecially in business networks these requirements are not fullfilled per default.

    In the following, I will show what must be changed in the UniFi network to get a stable Thread network even with multiple border routers. Finally I will also describe some settings on my Watchgurad UTM for Thread, representing the situation if you have a “business grade network”.

    UniFi Settings for Thread

    On your UniFi system it is important that you check your VLAN settings where the Thread devices should live. In my situation all IoT devices including my Thread devices, have an own VLAN called VLAN6. To adjust the settings in your UniFi controller webinterface go to Settings -> Network -> Select your IoT VLAN or the default one, if you do not have separated into multiple VLANS. After selecting the network a dialog is opened. There, please check if “IGMP-Snooping” is enabled, if not, enable it:

    IGMP stands for Internet Group Management Protocol, an IPv4 technology for multicast. IPv6 uses MLD (Multicast Listener Discovery) to achive the same result. However a lot of devices disable multicast even for IPv6 if IGMP is not enabled.

    After enabling “IGMP-Snooping” on UniFi the pairing process should successfully finish and the Thread network will be stable.

    If you have a business enviroment as described above, the following chapter might be helpful if you have any problems with your Thread/Matter network:

    Configuring Watchguard for Thread/Matters

    As written above, I need to made some changes on my Watchguard, that Thread/Matter works without problems. Some settings are not suggested but if you have problems try if it helps.

    Enable IPv6 support for the VLAN of your IoT/Thread devices:

    These settings should be enough, that your Watchguard works with IPv6 devices:

    • Enable “Send Advertisment”.
    • Be sure that you have “Disable DHCP” for IPv6, otherwise you can get problems with your border routers.

    After storing this settings, test, if the paring process is now working and the Thread network is stable. If not try the follwing additional settings. Disable this setting is not suggested because it weaks your network security:

    In your Watchguard web interface go to Firewall → “Default Packet Handling” and disable “Drop Spoofing Attacks”.

    Again this is not suggested by watchguard, but probably it will solve your problem!

    Now your Thread/Matter pairing should work without any problems and the thread network should be reliable.

    Please feel free to leave any comment.

  • Integrating Aquara M3 as Thread/Border Router into Home Assistant

    Integrating Aquara M3 as Thread/Border Router into Home Assistant

    In this blog entry I will describe the way how to integrate and use the Aquara M3 Hub as Thread/Border Router for Home Assistant. It can be used to integrate third party matter devices like Eve Weather or Ikea TIMMERFLOTTE into HA.

    Disclaimer: I am an IT-professional but not an Home Assistant expert therefore there might be better ways to do this, so please be free to comment it.

    Requirements

    I am using HA 2025.12.5 installed as virtual machine on TrueNAS. Installation was done using this community post.

    I installed the following add ons and integrations in HA which are required:

    • Matter Server (Add-On)
    • Matter (Integration)
    • Thread (Integration)

    Add-Ons does not exist in the docker version of HA!

    All the following steps should/must be made on the HA app on the smartphone:

    Step 1: Configure Aquare Hub

    First step is to configure the Aquara Hub using the Aquara app:

    1. Power on the Aquara Hub (it will talk to you)
    2. Download/Open the Aquaria App and click on “+” and “Add device”.
    3. Now the app searches for devices using bluetooth, ensure that the app has the right to use bluetooth.
    4. After a short time, the aquaria hub should be found.
    5. Just press on the symbol and configure, there are no special steps you need to do.
    6. Finally you should see your Aquara Hub and also get the details when pressing on the symbol:

    Now, the first step ist done and the hub is ready to add it to HA.

    Step 2: Integrating Aquara M3 Hub into the Matter server of HA

    1. As already mentioned in the requirements, you must have installed the matter server in HA. Now go into the Matter-Server and click on “+ Commission Node” to add a new node and then select “Commission existing device”:
    2. Now you have to enter the share code of the node:
    3. To get the share code open, the aquara app, select the hub, press the three dots in the top right corner, scroll down and select matter:
    4. Select Matter Paring-Code:
    5. Copy the shown code into the field of step 2 in HA.
    6. Finally press commission, and after a short time the Aquara M3 Hub is added as node to the matter server:

      As you can see in the screenshot, later on every matter device will be displayed in this view as node, when pressing on the node you can get more details.

    In the next step we have to add the Thread network, created by the Aquara App and select as preferred network for HA.

    Step 3: Adding the Thread network to HA preferred network

    1. Go to Settings -> Devices & Services -> Select the Thread add-in and press the gear:
    2. Now you should see the following view, showing the Aquara Hub:
    3. Mark the Aquara Hub and then press the button “Make preferred network”.
    4. After a short time the selected network become the preferred network for HomeAssistant:
    5. In the next step we need to say HA that it should use the login data of this thread network for any pairings.
    6. To do this press the three dots next to the Aquara hub and then select “Für Android & IOS Zugangsdaten nutzen“.
    7. If this was successfully you see the “door/exit” symbol next to the hub in the above screenshot.

    That was it, now the Aquara hub and its thread network is integrated into HA.

    In the final step I will give a short description how to add Matter devices using this hub into HA.

    Step 4: Integrating matter devices into HA

    Currently the suggested way is to integrate the device using the Aquara app and then integrating the device into HA. To do this the following steps are required:

    1. Ensure that the Aquara hub and the matter device you want to pair are in the same room.
    2. Set the matter device into pairing mode.
    3. Open the Aquara app and press the “+” symbol an select “Add Device”
    4. Now the app is searching for pairable devices in reach of the smartphone.
    5. If the device is in pairing mode it should be shown and you can select it.
    6. Follow the instructions in the Aquara app, until the device is connected to the aquara hub. Now we want to integrate it into HA.
    7. Go to “Devices” in the Aquara app and select the device you want to integrate into HA:
    8. Press the three dots in the right corner of the selected device:
    9. Select Matter:
    10. Select Matter-Pairing Code:
    11. Note or copy the pairing code.
    12. Go into the HA app. Go to Settings -> Devices & Services -> Devices -> Add Device -> Select “Add Matter-Device” -> Select “Yes, it is already in use” -> Select “Different Controller” -> Paste or enter the pairing code.
    13. Press “Add Device”

    After a short time the new device should successfully added to HA and can be used.

    Links

    The following links helped me to write this entry and are interesting to dive more into it.

  • Improving my security at home by installing a video surveillance

    Improving my security at home by installing a video surveillance

    After the change to winter time there were several burglaries in my area, therefore I decided, it is time to install a video surveillance.

    This blog will lead you through my process and its integration into my ecosystem at home. It’s more a detailed plan how to realize it and not a step by step guide how to e.g integrate the camera feed into Homekit.

    About the place:

    I am living very close to the forrest with a small garden which cannot be seen very good from the other apparamtents. Because the garden and my terrace is long but narrow and can only be accessed when walking a narrow path.

    For monitoring my garden I decided to use the Ubiquiti G4 Instance . Even the camera is very small and also cheap, it is a very good camera, with a good night view and AI regognization of persons, animals and movements. The camera connects via WiFi with my system an is powered using USB-C.

    I do not want to waste space in my apartment with a lot of IT-stuff, for this I have my company. Therefore my whole IT/Network equipment at home consists of a Synology NAS, a UniFi Dream Machine for network and WLAN and a Hue Bridge for some of my lights in the apartment. All this equipment is located in a small shelve which does not need a lot of space. Therefore I want a single machine which provides Internet access, WiFI and as additional feature a recorder for my camera feed and should be accessible on my smartphone from everywhere. Until today this task is fulfilled by the Dream Machine (UDM). Unfortunatley the Dream Maschine does not support cameras, therefore I replaced it by the successor the Dream Router 7. This device looks like a white hat and supports Internet Access, WLAN and the different UniFi Apps like Network, Protect and Access. It has a slot to expand the internal storage. As additional feature this device has one PoE port which is very nice to use it, as power for my Hue bridge which does not support PoE natively, but there are a lot of adapters available. After making a backup of my UDM I switched it off and replace it by the Dream Router. After importing the backup I additionally installed Unifi Protect and plugged in my G4. The camera is immediately detected by the protect app and few minutes later the whole system is online and everything is ready. It’s really as simple as this!

    With these two components I will do the following security deployment:

    1. The camera will be mounted on the terrace at a position where it is nearly impossible to destroy it before the person can be recognized.
    2. The Dream Router 7 will record the camera feed for a specifique time.
    3. AI recognization is enabled and will detect a person if he/she enters the garden.
    4. Unifi Protect is connected using Homebridge (which is installed on my Synology NAS) with Apple Homekit. See this video which explains how easy it is.
    5. Now I directly integrate the camera feed into the dashboard of Apple Homekit.
    6. Apple Homekit is already configured to notice if someone is at home.
    7. Next I switch into the settings of my home and select camera & doors.
    8. Inside I select the camera on the terrace an enable notifications with the following settings:
      • Time: Any
      • Persons: If no-one is at home
      • A certain movements is detected
      • A person is detected
      • Enable snapshots in the notification.

    Now I will get a notification with a snapshot if a person enters the garden & terrace and no-one is at home.

    With using automations you can configure additional actions for different situations which can be helpful to secure your home.

    This is my basic security setup which works quite well.

  • How to integrate a third party camera into UniFi Protect

    How to integrate a third party camera into UniFi Protect

    With UniFi Protect 5.0 Ubiquiti integrated the support of cameras from third party manufactures. In this blog entry we will integrate a Reolink PTZ camera into UniFi Protect.

    Requirements:

    • Ubiquiti console with installed Protect with at least version 5, in my case I already have 5.1.87.
    • A third party camera in the same subnet as the UniFi console.

    Preparation:

    Connect the camera with your network switch and be ensure that the camera has a valid IP-address and is in the same subnet as the console. If this is not possible, it does not really matters if you know the IP-address.

    When using a Reolink it is necessary to enable RTSP on the camera, otherwise it will not work. To do this, access your camera using the IP-address and your username and password. After reset the reolink uses admin as username without any password.

    After you have login, first change the password, Ubiquiti does not work with an empty password. To do this, login into the webinterface of your Reolink Camera go to “Device Settings” -> “System” -> “User Management” and press the “Change Password” button on the admin account.

    Enter the current password and then two times the new password:

    After you have entered a valid password, we now enable the ONVIF support on the Reolink device, because per default this is disabled.

    Switch on the “Device Settings” page to “Network Settings” and open the “Advanced” tabsheet:

    Now select “Set Up” under “Port Settings”. A dialog window is opened where you need to scroll down to the button until you find the toogles for RTSP and ONVIF, enable both:

    You do not need to change the default ports. Press “Save” and now you are ready to adopt the camera into UniFi Protect.

    Adopting into UniFi Protect:

    1. Login to your UniFi Protect web application and go to “Settings” and enable the discovery support for Third-Party Cameras:

    Press “Apply Changes” to store.

    2. Now switch to “Unifi Devices”. If the Reolink camera is in the same subnet the camera will already be shown and is ready to get adopted:

    2a. If the camera is in a different subnet or not shown press the question mark button right on the top. A window is opened where you press “try advanced adoption”:

    Now enter the IP-Address, Username and Password of the camera and press “Confirm”:

    2b. In this case this is not necessary, we can directly press “Click to Adopt”:

    3. Enter the “Username” and “Password” and press “Confirm”:

    After a short time the camera is adopted and ready to use:

    As you can see in the following screenshot, Protect also supports “native” features of the camera, like the integrated PTZ or zoom function of this Reolink camera:

    Removing the camera:

    Removing the camera is as simple as with other Unifi devices:

    1. Select the camera go to settings and press “Remove”:

    2. When pressing “Remove” you have to choose what should happen with the recorded videos of the camera. In this case I decide that they should be deleted:

    After pressing remove it will take a short time before the camera is successfully removed:

  • Wie ich Nextcloud nutze um ein papierloses Büro zu realisieren

    Wie ich Nextcloud nutze um ein papierloses Büro zu realisieren

    Eine meiner Hauptaufgaben besteht darin, Unternehmen und Selbstständige bei der digitalen Transformation Ihrer Betriebe zu beraten und Sie zu unterstützen. Dabei taucht immer die Frage auf, wie man ein “papierloses Büro” realisiert, was ein wesentlicher Bestandteil der digitalen Transformation bei Dienstleistungsunternehmen ist. In diesem Blog möchte ich kurz darauf eingehen, was man unter einem papierlosen Büro versteht und wie ich dieses für mich ungesetzt habe.

    Laut Wikipedia versteht man unter einem papierlosen Büro folgendes:

    Ein papierloses Büro verzichtet zwecks Arbeitseinsparung, Effizienzsteigerung und Umweltschutz u. a. auf papiergebundene Dokumente und nutzt dafür nur EDV-gestützte Verfahren.

    wikipedia.de

    Wie schaut dies nun in der Praxis aus?

    Ich nutze innerhalb meiner Firma für die Verwaltung von Dokumenten, das Erstellen von Projektplänen, den Austausch von Daten mit Kollegen und Partnern, sowie der internen Kommunikation Nextcloud, ein webbasiertes Dokumentenmanagementsystem (DMS) welches um viele Funktionen (Apps) erweitert werden kann. Durch die Integration von verschiedenen Office-Lösungen ist ein rein webbasiertes Arbeiten mit Office-Dateien möglich, auch ohne lokale Officeinstallation.

    Durch diese Lösung sind alle Daten an einem zentralen Ort, Dokumente, Pläne, E-Mails oder Chatnachrichten sind jederzeit und überall abrufbar. Ich kann mit Kollegen und Partnern z.B. an einem Dokument, oder einer Präsentation arbeiten, oder über eine Datei diskutieren. Ich muss mir keine Gedanken über versehentlich gelöschte Dateien machen, da jede Änderung nachvollziehbar ist und rückgängig gemacht werden kann.

    Dank der Indexierung kann ich nach Begriffen suchen. Suche ich z.B. nach Herrn Müller werden wir alle Dateien, E-Mails, Chatnachrichten, Termine angezeigt, in denen er vorkommt. Dank einer integrierten Texterkennung funktioniert dies auch mit eingescannten Dokumenten.

    Auch unterwegs habe ich jederzeit vollen Zugriff auf alle Daten. Apps für Smartphones und Tablets ermöglichen den direkten Zugriff auf die Kamera, oder Mikrophone. So kann ich Vorort Fotos erstellen, oder Protokolle schreiben die sofort am Server gespeichert werden. Auch das Erstellen von Sprachnachrichten ist möglich. Zeitraubende Nacharbeiten, nach Rückkehr in das Büro, entfallen.

    Mit Talk verfügt Nextcloud über eine eigene Messenger Lösung, die eine DSGVO konforme Kommunikation innerhalb der Firma, aber auch mit Partnern ermöglicht. Talk wird dabei direkt am eigenen Server betrieben.

    Kurznotizen ersetzen bei mir im Büro die Post-Its und dank der Integration von OpenProject, welches ich für das Projektmanagement nutze gibt es auch hier eine Symbiose.

    Aus meiner Sicht erleichtert Nextcloud den gesamten Büroalltag, wobei für mich das integrierte Office, die Kurznotizen sowie die Erweiterbarkeit durch Apps die Highlights dieser Lösung gegenüber anderen sind.

    Sollte dieser Artikel Ihr Interesse geweckt haben, oder möchten Sie Ihre Erfahrungen zum papierlosen Büro kundtun, dann kontaktieren Sie mich, oder hinterlassen Sie einen Kommentar. Ich freue mich.

  • NGINX Main process exited, code=killed, status=11/SEGV on Ubuntu 20.04.x LTS

    During setting up a virtual host with Ubutnu 20.04.5 LTS for a customer for Nextcloud, Only Office and Zammad I came across the following problem:

    After installing nginx-extras (nginx-extras is required by only office) with PHP-8.1. on Ubtuntu 20.04.5 LTS the nginx server always crashed after a certain time, without any comprehensible reason. After a more detailed analysis I found out that the main process exited more or less exactly after 24 hours (sometimes 48 hours) after systemd reloaded nginx:

    systemd[1]: Reloading A high performance web server and a reverse proxy server.
    systemd[1]: Reloaded A high performance web server and a reverse proxy server.
    systemd[1]: nginx.service: Main process exited, code=killed, status=11/SEGV 
    systemd[1]: nginx.service: Killing process 462641 (nginx) with signal SIGKILL.
    systemd[1]: nginx.service: Killing process 462641 (nginx) with signal SIGKILL.
    systemd[1]: nginx.service: Failed with result 'signal'.
    
    nginx.service - A high performance web server and a reverse proxy server
         Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
         Active: failed (Result: signal) since Mon 2022-09-12 02:24:57 CEST; 6h ago
           Docs: man:nginx(8)
        Process: 700608 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
        Process: 700609 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
        Process: 815231 ExecReload=/usr/sbin/nginx -g daemon on; master_process on; -s reload (code=exited, status=0/SUCCESS)
       Main PID: 700610 (code=killed, signal=SEGV)
          Tasks: 0 (limit: 1843)
         Memory: 8.2M
         CGroup: /system.slice/nginx.service

    After some research I found out that when installing nginx-extras the perl module who allows to execute perl scripts directly in nginx is also installed. However there is a bug in perl shipped with Ubuntu 20.04.x LTS which results in a nginx crash after nginx is reloaded after three or four times.

    To solve this bug I decided to unlink the mod-http-perl module and restart nginx using the following command:

    unlink /etc/nginx/modules-enabled/50-mod-http-perl.conf
    sudo systemctl restart nginx

    Since that nginx is running completely fine. I do not need to execute perl directly in nginx, therefore there are no side effects I have to consider.

    Links:

  • True-NAS jail: Update NextCloud using command line

    In my opinion the best way to update NextCloud is using the command line, with the web installer I had some problems, especially if the internet connection is not really fast. Therefore I always use the command line to update NextCloud.

    In this blog entry I will give a short tutorial how to update NextCloud to the latest version, using the command line of the jail. For this tutorial I will use the Shell of the TrueNAS web interface.

    As first step I would suggest that you update your jail to the latest version. This is quite simple, you can directly do this in the web interface of TrueNAS. Login, go to “Jails” -> select the NextCloud jail -> Press the “>” icon in the right and select “Update”. A dialog will open where you need to confirm, and then the update is executed.

    After this, select the shell of the jail.

    To remember the default NextCloud jail of TrueNas is using the following installation/configuration settings/paths:

    • Webserver: NGINX
    • PHP: php-fpm
    • Path to NextCloud: /usr/local/www/nextcloud
    • User who is running nginx and PHP: www

    With this information we will simply call the command line updater of NextCloud using the following command:

    sudo -u www php /usr/local/www/nextcloud/updater/updater.phar

    If the command is working and no error is thrown you should get the following output (I already pressed Y that I want to update NextCloud):

    If you have a problem with the information that stopping the update using Ctrl-C is not possible, you can install the PCNTL extension using snap.

    The Updater is now creating a backup, then its downloading the latest NextCloud release, after that it checks the integrity and certain other things. Dependent on the internet connection and the performance of your TrueNAS instance this can take a while.

    When the update is successfully the systems asks the user if the occ upgrade command should be executed. This is necessary to finish the update. During this step changes in the database and the file data structure of NextCloud are executed and new versions of the plugins are installed.

    Press “Y” to execute the occ upgrade. After a while everything should be finished and NextCloud asks you if the maintenance mode should stay active. Enter “N” and NextCloud should again be online.

    The update is only executed from the running version to the next one and not to the latest! If there are several versions in between it can be necessary to execute the update command more than one time.

  • Warum DMS-Lösungen auch für KMU und Selbstständige interessant sind

    Warum DMS-Lösungen auch für KMU und Selbstständige interessant sind

    In meinem Beruf als IT-Consultant für KMU und Selbstständige werde ich oft mit der Frage konfrontiert, wie man Dokumente, E-Mail Konversationen, Notizen, Bilder möglichst sicher, effizient und wiederauffindbar speichert.

    Ich rate meinen Kunden dann immer, dass Sie einerseits interne Richtlinien aufstellen sollen, die festlegen welchen Dateien es wirklich wert sind dauerhaft gesichert zu werden und andererseits den Einsatz eines Dokumentenmanagement System (DMS), als Ersatz für ihre(n) Dateiserver.

    Ein DMS ist eine datenbankunterstützte Lösung, um Dateien und Daten zu speichern und einfach auffindbar zu machen. Auf den ersten Blick wirkt ein DMS, wie ein “normaler” Dateiserver, im Hintergrund läuft aber viel mehr ab und bietet große Mehrwerte für den Berufsalltag wie:

    • Zugriff von überall aus: Jedes DMS hat ein webbasiertes Interface, mit dem man von jedem Ort der Welt (wenn man die Berechtigung hat) auf das System zugreifen kann. So kann z.B. ein Mitarbeiter beim Kunden die aktuellste Version eines Planes zeigen, obwohl letzte Änderungen erst vor 5 Minuten erfolgten. Neben dem Webinterface kann auch per WebDAV oder bei einigen sogar per SMB zugegriffen werden. Damit ist der bequeme Zugriff per Netzlaufwerk möglich und man kann zentral am DMS die Dokumente bearbeiten und speichern.
    • Zentraler Ort, um alle Daten zu sichern: Das ist der relevanteste Punkt für den Großteil der Kunden, endlich eine Lösung zu haben, in der man alle Arten von projektbezogenen Daten zentral speichern kann, egal ob Pläne, Officedokumente, PDFs oder E-Mails.
    • Indexierung aller Dokumente und Dateien: DMS habe leistungsfähige Suchmaschinen integriert, die sobald eine Datei in das DMS hochgeladen wird, sofort mit der Indexierung dieser beginnt. In der Praxis heißt das, dass der Inhalt der Datei untersucht wird und der Nutzer Dateien nach Inhalten durchsuchen kann.
    • Versionierung: Ein DMS erlaubt die “Entwicklung” eine Datei lückenlos rückzuverfolgen. Damit ist es auch möglich frühere Dateistände wieder herzustellen. Gerade im Hinblick auf Datensicherung ist das ein wichtiger Aspekt.
    • “Automatischer” Schutz vor versehentliches Löschen von Dateien. Ein DMS hat einen zentralen Papierkorb in dem zunächst alle Dateien, Daten und Ordner landen bevor sie nach einer vordefinierten Zeit, die individuell festlegbar ist, endgültig gelöscht werden.
    • “Automatische” Archivierung. Mit einem DMS kann man Daten automatisch nach einer vorbestimmten Zeitspanne, versionssicher und unveränderbar archivieren. Bei fortschrittlichen Systemen kann man sogar festlegen, auf welchem Datenträger die Archivierung erfolgen soll. So kann man für aktuelle Dokumente schnelle SSD Festplatten nutzen, während man ältere und nicht mehr so oft benötigte Dokumente auf langsamere HDDs auslagert.
    • Ein DMS unterstützt die Erstellung von Regeln in denen man definiert, wie welche Datei gespeichert werden soll. Dadurch kann man das Risiko, dass Daten an einem falschen Ort gespeichert werden, minimieren.

    Wie man anhand der oben angeführten Punkte leicht erkennen kann, löst ein DMS viele alltäglich auftretende Probleme.

    Im Betrieb sind DMS-Lösungen gleich teuer wie klassische Dateiserver und stellen keinen Grund dar, sie deswegen nicht zu nutzen.

    In der Anschaffung sind Dokumentenmangementsystem geringfügig teuer, da sie höhere Hardwarevoraussetzungen haben als ein klassischer Dateiserver.

    Fast alle größeren DMS Entwickler bieten mittlerweile auch Open Source Varianten ihrer Systeme an, die sich oft nur im Funktionsumfang von ihren kostenpflichtigen Lösungen unterscheiden. Daher fallen oft keine Lizenzkosten an, was die Anschaffung teilweise günstiger macht, da man etwa keine Lizenz für einen Windows Server benötigt.

    Wo viel Licht, da kein Schatten, haben DMS Lösungen keine Nachteile?

    Das ist eine berechtigte Frage, grundsätzlich sind DMS komplexe Systeme, das war auch der Hauptgrund wieso bis vor wenigen Jahren derartige Lösungen primär bei großen Betrieben, mit dementsprechenden IT-Abteilungen eingesetzt wurden. Hier hat sich mittlerweile viel getan und aus meiner Erfahrung sind die heutigen DMS Lösungen sehr wartungsarm und zuverlässig, wenn einige Dinge im Vorfeld beachtet werden. Bei unseren internen Statistiken weisen alle DMS System eine höhere jährliche Verfügbarkeit auf, als etwa Mailserver oder auch ein Windows Dateiserver.

    Der einzige wirkliche Nachteil den DMS Lösungen aufgrund ihrer Komplexität haben, sind höherer Hardwarevoraussetzungen, um ein flüssiges und schnelles Arbeiten zu garantieren. Hier muss man aber auch anmerken, dass leistungsfähige Serverlösungen mittlerweile deutlich günstiger geworden sind.