Opened 10 years ago

Closed 19 months ago

#45461 closed defect (fixed)

privoxy: error: The given value 'privoxy' does not match group entry

Reported by: allamistakeo19@… Owned by: essandess (Steve Smith)
Priority: Normal Milestone:
Component: ports Version: 2.3.2
Keywords: Cc: sptrakesh, mascguy (Christopher Nielsen), jowens (John Owens), cooljeanius (Eric Gallager)
Port: privoxy

Description

Hi,

After installing Yosemite, I re-installed MacPorts, but now I get the following:

--->  Configuring privoxy
Error: Failed to configure privoxy, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_privoxy/privoxy/work/privoxy-3.0.21-stable/config.log
Error: org.macports.configure for port privoxy returned: configure failure: command execution failed
Please see the log file for port privoxy for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_privoxy/privoxy/main.log
Error: Unable to upgrade port: 1

See log attached.

Attachments (1)

config.log (9.6 KB) - added by allamistakeo19@… 10 years ago.

Download all attachments as: .zip

Change History (15)

Changed 10 years ago by allamistakeo19@…

Attachment: config.log added

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: privoxy fails to configure on Yosemite — fatal error: 'ac_nonexistent.h' file not foundprivoxy: error: The given value 'privoxy' does not match group entry

It looks like the error is:

configure:3890: checking for user
configure:3900: result: privoxy
configure:3928: checking for group
configure:3938: result: privoxy
configure:3945: error: The given value 'privoxy' does not match group entry

So, what is the group assigned to the provixy user on your system?

Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 in reply to:  1 Changed 10 years ago by allamistakeo19@…

$ id privoxy
uid=500(privoxy) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),405(com.apple.sharepoint.group.4),403(com.apple.sharepoint.group.2),402(com.apple.sharepoint.group.1),404(com.apple.sharepoint.group.3),100(_lpoperator)

comment:3 Changed 9 years ago by allamistakeo19@…

By the way, I have also just noticed that the group privoxy is now displayed in the Users and Groups section of the System Preferences. I don't remember it being the case in Mavericks.

comment:4 Changed 9 years ago by allamistakeo19@…

I solved it by resetting the main gid of the user privoxy using the command line I found there: http://apple.stackexchange.com/questions/81543/how-do-i-change-the-primary-group-for-an-existing-user

comment:5 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: sptrakesh added

Has duplicate #55864.

comment:6 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to essandess
Status: newassigned

comment:7 Changed 2 years ago by hadrabap (Petr Hadraba)

The problem is really in the primary group of user privoxy.

localhost:~ petr$ id privoxy
uid=504(privoxy) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),702(com.apple.sharepoint.group.2),100(_lpoperator),703(com.apple.sharepoint.group.3)

The group should be privoxy instead of staff.

The group privoxy exists on my system and has ID 504.

This solved the configure issue:

localhost:~ petr$ sudo dscl . -create /Users/privoxy PrimaryGroupID 504
localhost:~ petr$ id privoxy                                           
uid=504(privoxy) gid=504(privoxy) groups=504(privoxy),12(everyone),20(staff),61(localaccounts),702(com.apple.sharepoint.group.2),100(_lpoperator),703(com.apple.sharepoint.group.3)

What I don't understand is when the privoxy user and group is created and by whom. It must be dome by MacPorts even before running the configure script otherwise the privoxy could never be installed for the first time. Hmm…

comment:8 in reply to:  4 Changed 2 years ago by hadrabap (Petr Hadraba)

Thank you!

Replying to allamistakeo19@…:

I solved it by resetting the main gid of the user privoxy using the command line I found there: http://apple.stackexchange.com/questions/81543/how-do-i-change-the-primary-group-for-an-existing-user

comment:9 Changed 2 years ago by essandess (Steve Smith)

I’ve also seen this a couple times. I don’t have good solution except to delete the privoxy user and privoxy group using dscl or Directory Utility.app, rerun port install privoxy, which re-creates this user and group, and check permissions to make sure that the automatically re-created user and group have the same uid and gid. If not, apply chown and chgrp appropriately.

This shouldn’t happen.

comment:10 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:11 Changed 2 years ago by jowens (John Owens)

Cc: jowens added

comment:12 Changed 2 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:13 Changed 19 months ago by essandess (Steve Smith)

Please see https://github.com/macports/macports-ports/pull/16221

I still don't understand the MacPorts-based cause of the issue (I suspect it has something to do with the exec -ignorestderr $dscl flag in https://github.com/macports/macports-base/blob/master/src/port1.0/portutil.tcl), but at least this PR fixes the issue if it arises.

comment:14 Changed 19 months ago by Steve Smith <essandess@…>

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.