pkg: Cannot get an advisory lock on a database, it is locked by another process

HI,

I receive this error when trying to install nginx and systemctl

pkg: Cannot get an advisory lock on a database, it is locked by another process
 
 

I installed nginx and its messed everything up
 
Clean your pkg cache and do a force update:

# pkg clean
# pkg update -f

(If) that doesn't worked do a force reinstallation of pkg:

# pkg-static bootstrap -f
 
Clean your pkg cache and do a force update:

# pkg clean
# pkg update -f

(If) that doesn't worked do a force reinstallation of pkg:

# pkg-static bootstrap -f


I got it installed, but its messed up all my other apache24 connections
 
These commands do not break anything. You just cleared the pkg cache and reinstalled it.

I was following the pkg notes for Zoneminder and nginx is a requirement. I already have Apache24 configured for rancid access via viewvc. nginx has messed it up so I reverted back to pre zoneminder install.

Do you know how to configure zoneminder in Apache24? I am a novice with it.

Its all configured on a FreeBSD guest on a vmware workstation host. I got Rancid and OpenVPN working and want to add zoneminder without breaking anything.

I think i need to segment everything into virtual host on apache one for rancid/viewvc, and then another for zoneminder. Not sure though because I initially tried to configure viewvc as a virtual host but was told not to and given the code I applied that works.
 
Back
Top