Results 1 to 5 of 5

Thread: SU: Module not found in osc

  1. #1

    Default 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.

    Code:
    [    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
    
    


  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    31,478
    Blog Entries
    15

    Default Re: SU: Module not found in osc

    Quote Originally Posted by Lachu View Post
    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.

    Code:
    [    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.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: SU: Module not found in osc

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

    Code:
    ls ~/.osc*
    Code:
     home/slawomir/.osc_cookiejar  /home/slawomir/.osc.projects


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

    Code:
    
    
    Code:
    [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.

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    31,478
    Blog Entries
    15

    Default Re: SU: Module not found in osc

    Hi
    At the top of the file, I use;

    Code:
    # 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
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5

    Default Re: SU: Module not found in osc

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

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •