SU: Module not found in osc

When trying to build any package locally, using osc, opening wallet and providing root password, everything seems to be correct, but it complains about unable to prepare topdir.


    4s] now finalizing build dir... 
    4s] su: cannot open session: Module is unknown 
    4s] Error: TOPDIR empty 
    4s]  
    4s] localhost.localdomain failed "build BonsoleRTA-client-gui-backend.spec" at Mon Jun 14 18:0
2:21 UTC 2021. 
    4s]  

The buildroot was: /var/tmp/build-root/openSUSE_Tumbleweed-x86_64


Hi
Is oscrc configured? I just use visudo and add /usr/bin/build with nopassword for my user. Likewise I point to my own location for building packages.

I think not, but I thought it is, because I use OSC and remember I configured it. :frowning:


ls ~/.osc*

 home/slawomir/.osc_cookiejar  /home/slawomir/.osc.projects

[FONT=monospace]

Edit:
Sorry, it was, but in ~/.config/osc/oscrc


[/FONT]
[FONT=monospace][FONT=monospace][https://api.opensuse.org] 
# set aliases for this apiurl 
# aliases = foo, bar 
# real name used in .changes, unless the one from osc meta prj <user> will be used 
# realname = 
# email used in .changes, unless the one from osc meta prj <user> will be used 
# email = 
# additional headers to pass to a request, e.g. for special authentication 
#http_headers = Host: foofoobar, 
#       User: mumblegack 
# Plain text password 
#pass = 
user=*
credentials_mgr_class=osc.credentials.KeyringCredentialsManager:keyring.backends.kwallet.DBusKeyring 
trusted_prj=openSUSE:Tumbleweed


But important is keyring (KWallet) is invoked and I allow to obtain authentication information.
[/FONT] [/FONT]

Hi
At the top of the file, I use;


# Downloaded packages are cached here. Must be writable by you.
packagecachedir = /data/repositories/osbuild-packagecache

# Wrapper to call build as root (sudo, su -, ...)
# Use visudo <username> ALL = NOPASSWD: /usr/bin/build
su-wrapper = sudo

# Note create build-root as root user...
# drwxr-xr-x 20 root     root   4096 Jun 13 21:25 build-root
build-root = /data/build-root

I removed /var/tmp/build-root/* type osc build and everything work.

Thanks!