Perfect! i’t works!
Finally I applied both solutions.
First,
yum update --exclude=ufdbguard
Then I applied the command:
yum install https://www.urlfilterdb.com/files/downloads/ufdbGuard-1.34.5-CentOS7.x86_64.rpm nethserver-squidguard
and now I can install the Web Filter package.
Thanks a lot…
hello all !!
Everyone can help me ?
[root@NethServer ~]# echo ‘{“action”:“update”,“packages”:[]}’ | /usr/bin/setsid /usr/bin/sudo /usr/libexec/nethserver/api/system-packages/update | jq
{
“state”: “running”,
“steps”: -1,
“event”: “Initialization”
}
{
“state”: “running”,
“steps”: -1,
“event”: “Resolving RPM dependencies”
}
{
“state”: “running”,
“steps”: -1,
“event”: “Downloading Packages”
}
{
“state”: “running”,
“steps”: -1,
“event”: “Check Package Signatures”
}
{
“state”: “running”,
“steps”: -1,
“event”: “Running Test Transaction”
}
{
“status”: “failed”,
“message”: “[YumTestTransactionError] Test Transaction Errors: file /var/log/ufdbguard from install of ufdbGuard-1.34.5-2.el7.x86_64 conflicts with file from package nethserver-squidguard-1.9.2-1.ns7.noarch\n”,
“steps”: -1,
“event”: null
}
{
“id”: “1596785631”,
“type”: “EventFailed”,
“message”: “See /var/log/messages”
}
[root@NethServer ~]#
file ufdbguardd.log is empty
EPEL has a new ufdbGuard package ready to be tested.
I did test it, but I’d like some more independent tests.
The following command installs both the NethServer package and the EPEL package (on a clean machine):
yum --enablerepo=epel-testing,nethserver-testing install nethserver-squidguard
Substitute install with update
to test a machine where the URL filter is already installed.
Pay attention to ufdbGuard version: it should be 1.34.6-2.el7 (some EPEL mirrors are still serving 1.34.6-1.el7).
nethserver-squidguard version is 1.9.2-1.7.g186a20a.ns7.
Thank you.
Tested on a clean test-vm. Works perfectly.
Tested on an older test-vm with already installed packages. Works also perfectly.
Thank you for your great work Fillipo!!
Seems to have done the charm.
Thanks.
For me doesn’t work, after update with:
yum --enablerepo=epel-testing,nethserver-testing update nethserver-squidguard
in the services appear stopped ufdb process, and when I try to restart show these error:
2020-08-12 13:12:28 [3520] The directory ‘/var/run/ufdbguard’ where the pid file is stored, does not exist. creating it.
2020-08-12 13:12:28 [3520] ERROR: Cannot create directory /var/run/ufdbguard: Permission denied
2020-08-12 13:12:28 [3520] ERROR: make sure that /var/run/ufdbguard exists and has the correct permissions
2020-08-12 13:12:28 [3520]
2020-08-12 13:12:28 [3520] FATAL ERROR: cannot write my PID to the pidfile (see previous lines) *****
Now appear running in services, but filtering is not working
Please check your installed versions…
[root@testserver ~]# rpm -q nethserver-squidguard ufdbGuard
nethserver-squidguard-1.9.2-1.7.g186a20a.ns7.noarch
ufdbGuard-1.34.6-2.el7.x86_64
…and update again if necessary (maybe some mirrors were not synced when you updated):
yum update --enablerepo=nethserver-testing,epel-testing nethserver-squidguard ufdbGuard
Does the directory /var/run/ufdbguard
exist?
[root@testserver ~]# ls -ld /var/run/ufdbguard
drwxr-xr-x 2 ufdb ufdb 60 Aug 12 23:02 /var/run/ufdbguard
Thanks, the version seems isn’t updated:
ufdbGuard-1.34.5-2.el7.x86_64
When I try to update again shows me these error again:
file /etc/sysconfig/ufdbguard from install of ufdbGuard-1.34.6-2.el7.x86_64 conflicts with file from package ufdbGuard-1.34.5-2.el7.x86_64
And the directory doesn’t exist:
[root@datacenter ~]# ls -ld /var/run/ufdbguard
ls: cannot access /var/run/ufdbguard: No such file or directory
Remove and install should help:
yum remove ufdbGuard
Install again:
yum install --enablerepo=nethserver-testing,epel-testing nethserver-squidguard ufdbGuard
Fixed it for me…Thanks Filippo!
Jim
Hi,
I had installed an old version like @geofxgt and removed it. Removing hangs and I had to interrupt it. Now if I check the version of ufdbguard and nethserver-squidguard, both are not installed. But if I try to install with
yum --enablerepo=epel-testing,nethserver-testing install nethserver-squidguard
I get the following error message.
Transaction check error:
file /var/log/ufdbguard conflicts between attempted installs of nethserver-squidguard-1.9.2-1.ns7.noarch and ufdbGuard-1.34.6-2.el7.x86_64
Maybe there’s an unfinished yum transaction, check with yum-complete-transaction
Hi Markus,
thanks for your answer, but this command is not found.
It’s part of yum-utils:
yum install yum-utils
no unfinished transaction left
I did the update without ufdbguard, this works, but updating ufdbguard gives the error I’ve written before.
For me the error shows version 1.34.6-2.el7. It’s not the same version which was shown to the thread creator.
You may move away /var/log/ufdbguard
to check if it resolves the conflict.
Thanks for reply, I’ll try tomorrow if I’ll find any time.