Jeff, We ran into the exact same problem after trying to install as a service on Ubuntu. Once the service is installed, all subsequent apt-based installs fail with the message you are seeing.
We worked around it by writing our own script to install the service in the correct way for Ubuntu. I've been meaning to file this as an issue with NiFi and to submit our workaround as a possible fix for the issue, but haven't gotten around to that. The following should give you an idea of how to do it though: 1) Create a nifi.service file. Ours looks like this: [Unit] ; General Service Metadata Description="Apache NiFi" Documentation=http://nifi.apache.org/docs.html ; Dependencies After=network.target [Service] Type=forking User=nifi Group=nifi ; Service runtime should use the nifi shell scripts ExecStart=%NIFI_BIN_DIR%/nifi.sh start ExecStop=%NIFI_BIN_DIR%/nifi.sh stop ; Service should restart whenever something fails Restart=on-abnormal [Install] WantedBy=multi-user.target 2) In our install script, we set templateFile to the location of the above file, and set nifiDir to the location where NiFi has been installed. Then we do this: sed -e "s;%NIFI_BIN_DIR%;${nifiDir}/bin;g" ${templateFile} > /etc/system/system/nifi.service systemctl daemon-reload systemctl enable nifi.service &> /dev/null systemctl start nifi.service I'm copying this a little bit out of context rather than sharing our entire system's install script, of which this is one small part. My apologies if I've missed anything when extracting these details from the larger script. On Fri, Jun 15, 2018 at 8:43 AM, Jeff Zemerick <[email protected]> wrote: > Hi all, > > Running NiFi 1.6.0 on Ubuntu 16.04 and I installed it as a service and it > worked great. On the same box, I then installed MongoDB (via apt-get). The > MongoDB installation failed because of errors indicating a loop in the > services: > > insserv: There is a loop between service nifi and mountdevsubfs if started > insserv: loop involving service mountdevsubfs at depth 2 > insserv: loop involving service udev at depth 1 > insserv: Starting nifi depends on plymouth and therefore on system > facility `$all' which can not be true! > > My knowledge around services is pretty limited. I removed the NiFi service > and the MongoDB install finished ok. Wondering if there is anything I > should do differently? If other information is needed please let me know. > > Thanks, > Jeff > >
