Certbot / Python problem

Mark Lucas mllists at arc.co.uk
Fri Feb 21 15:14:14 UTC 2025


Sorry, at the moment I can't find a way of whitelisting yr mail server IP at easymail.

> On 21 Feb 2025, at 13:02, Bjarne D Mathiesen via macports-users <macports-users at lists.macports.org> wrote:
> 
> I've tried including you directly in "To", but my mail-server gets
> blocked, because it's sitting on a private IP-address
> 
> Final-Recipient: rfc822; mllists at arc.co.uk
> Original-Recipient: rfc822;mllists at arc.co.uk
> Action: failed
> Status: 5.7.1
> Remote-MTA: dns; mx.easymail.ca
> Diagnostic-Code: smtp; 554 5.7.1 Service Unavailable; Client host
>    [45.134.167.28] blocked by Abusix (https://abusix.ai) ;
>    https://lookup.abusix.com/search?q=45.134.167.28
> 
> On 21/02/2025 12.42, Mark Lucas wrote:
>> Bjarne
>> 
>> For some unknown reason I did not receive your last post to the list and
>> only found it on the list archives site.
>> 
>> I have run your script and everything seemed to work ok 
> ...
>> DEBUG: dropping privileges: euid changed to 502, egid changed to 501.
>> 
>> Error: Unable to execute port certbot: Could not open file: /Users/
>> ******/ports/certbot/security/certbot/Portfile
>> 
>> Any idea what went wrong?
> 


chmod 755 /Users/*****
sudo find ./ports -type d -exec chmod 755 '{}' \;
sudo find ./ports -type f -exec chmod 644 '{}' \;

Seemed to fix the permissions. However when I now try…

sudo port -cuNn -sd install certbot +docs +python313

It fails with…

:info:build adding 'certbot-3.2.0.dist-info/LICENSE.txt'
:info:build adding 'certbot-3.2.0.dist-info/METADATA'
:info:build adding 'certbot-3.2.0.dist-info/WHEEL'
:info:build adding 'certbot-3.2.0.dist-info/entry_points.txt'
:info:build adding 'certbot-3.2.0.dist-info/top_level.txt'
:info:build adding 'certbot-3.2.0.dist-info/RECORD'
:info:build removing build/bdist.macosx-15.0-arm64/wheel
:info:build Successfully built certbot-3.2.0-py3-none-any.whl
:debug:build Executing proc-post-org.macports.build-build-0
:error:build Failed to build certbot: sh: line 0: cd: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_certbot/certbot/work/certbot-3.2.0/certbot/docs: No such file or directory
:debug:build Error code: NONE
:debug:build Backtrace: sh: line 0: cd: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_certbot/certbot/work/certbot-3.2.0/certbot/docs: No such file or directory
:debug:build     while executing
:debug:build "$post $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_certbot/certbot/main.log for details.

I've attached the main.log



Thanks

Mark Lucas






> File permissions.
> Even though you -correctly- are using sudo, the privileges get dropped
> 
> Try :
> sudo find ./ports -type d -exec chmod 755 \;
> sudo find ./ports -type f -exec chmod 644 \;
> You might also have to look at the permissions for the /****/ part of
> the file path. As a minimun, there need to be x on !ALL! the directories
> for both owner, group & all. So, if you start w/:
>    cd /Users ; ls -l
> then check your homedir permissions. If they are in-correct, do:
>    chmod +x <dirname>
> 
> -- 
> Bjarne D Mathiesen
> Slagelse ; Danmark ; Europa
> -----------------------------------------------------------------------
> denne besked er skrevet i et totalt M$-frit miljø
> MacPro 2010 5.1 ; OpenCore + macOS 14.7.3 Sonoma
> 2 x 3,46 GHz 6-Core Intel Xeon ; 192 GB 1333 MHz DDR3 ECC RDIMM
> ATI Radeon RX 590 8 GB
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20250221/8592d172/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.log
Type: application/octet-stream
Size: 64718 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20250221/8592d172/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20250221/8592d172/attachment-0001.htm>


More information about the macports-users mailing list