#66542 closed defect (fixed)

sshuttle: can't read "env(USER)": no such variable

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: ventura Cc: kencu (Ken)
Port: sshuttle

Description

https://build.macports.org/builders/ports-13_x86_64-builder/builds/5801/steps/install-port/logs/stdio

DEBUG: Executing proc-pre-org.macports.destroot-destroot-1
DEBUG: Executing proc-pre-org.macports.destroot-destroot-2
Error: Failed to destroot sshuttle: can't read "env(USER)": no such variable
DEBUG: Error code: NONE
DEBUG: Backtrace: can't read "env(USER)": no such variable

Change History (6)

comment:1 Changed 16 months ago by jmroot (Joshua Root)

I expect this is not Ventura-specific, but is likely rare outside of the buildbot environment, though anyone could have USER unset. It should probably be using either ${macportsuser} or ${install.user} depending on what it's trying to accomplish. (And should presumably only be attempted when running as root.) What user do the files belong to to begin with, anyway?

comment:2 Changed 16 months ago by kencu (Ken)

that bit of code was added to fix this issue 65331

comment:3 Changed 14 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

In 056d7f570c7c0215d04ee4e10a439b429dbc1cce/macports-ports (master):

sshuttle: only change ownership if USER exists

closes: #66542

comment:4 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: kencu added
Resolution: fixed
Status: closedreopened

That didn't fix it. You wrote in the commit message that you're checking if USER exists, but you're actually checking whether it's not empty, which is different.

comment:5 Changed 14 months ago by kencu (Ken)

Ah, darn -- it's hard for me to test the buildbot setup.

Thanks for following it up.

comment:6 Changed 11 months ago by jmroot (Joshua Root)

Resolution: fixed
Status: reopenedclosed

In c6ba3c0f6a9ba48d5370921933edb69fd10852d5/macports-ports (master):

sshuttle: don't rely on env(USER) existing

Fixes: #66542

Note: See TracTickets for help on using tickets.