IBM i Global

 View Only
Expand all | Collapse all

ACS Open Source Package management

  • 1.  ACS Open Source Package management

    Posted 24 days ago

    Hi, 

    I'm trying to install Node.js on my iBM i without an internet connection. 

    First, some partitions give me an error "you do not have sufficient authority" right after clicking yes to the key fingerprint. 

    Then some partitions go further but when I try to install node.js from the list of available packages the ftp to the site 

    ftp://public.dhe.ibm.com/software/ibmi/productdions/pase/rpms/repo/repodata/repomd.xml FTP error 550 access denied. 



    ------------------------------
    Michael Cramer
    ------------------------------


  • 2.  RE: ACS Open Source Package management

    IBM Champion
    Posted 24 days ago

    You seem to have some old instructions. FTP is no longer supported.
    Possibly backlevel Access Client Solutions?
    What instructions are you following?



    ------------------------------
    Jack Woehr
    ------------------------------



  • 3.  RE: ACS Open Source Package management

    IBM Champion
    Posted 24 days ago

    See https://www.seidengroup.com/php-documentation/offline-installation-of-communityplus-php/



    ------------------------------
    Jack Woehr
    ------------------------------



  • 4.  RE: ACS Open Source Package management

    Posted 17 days ago

    Hi Jack, 

    I was able to create an offline repo on one of my systems but where does it drop these script files for starting nginx

    /QOpenSys/QIBM/UserData/rpm_repos/ibm

    also, it should have rewrote a repo file to point to the IFS listed above but it's not in there /QOpenSys/etc/yum/repos.d

    what's the syntax of one of these files to point to an IFS repo?  I'm guessing I can also put the whole containt of my offline repo to a savf and restore it on a different system if I didn't want to serve it thru 



    ------------------------------
    Michael Cramer
    ------------------------------



  • 5.  RE: ACS Open Source Package management

    IBM Champion
    Posted 17 days ago

    Michael, things I don't understand in your message:

    • a repo file to point to the IFS 
    • where does it drop these script files for starting nginx



    ------------------------------
    Jack Woehr
    ------------------------------



  • 6.  RE: ACS Open Source Package management

    Posted 17 days ago

    1-instead of having an ftp site or an http path in repo file in /QOpenSys/etc/yum/repos.d , can't one of these file point to a local IFS path where the clone of the repo has been downloaded? 

    2-on the cloning screen, there's an option I checked to "create nginx configuration files for serving this cloned repository to other IBM i systems". Where are those files created? 

    on the link you sent me there's only: 

    To summarize, the process of creating your own repository and hosting it for all your systems involves:

    1. Run the ACS Clone Repo Tool, checking the "Create nginx configuration file" box

    2. Start the nginx server by running the startServer/startServerBatch script

    3. Configure endpoint systems

    4. (optional) automate



    ------------------------------
    Michael Cramer
    ------------------------------



  • 7.  RE: ACS Open Source Package management

    IBM Champion
    Posted 17 days ago

    baseurl=repository_url

    where repository_url is a URL to the directory where the repodata directory of a repository is located:
    • If the repository is available over HTTP, use: http://path/to/repo
    • If the repository is available over FTP, use: ftp://path/to/repo
    • If the repository is local to the machine, use: file:///path/to/local/repo

    That's from here

    So I'd say just copy over the whole repository and point to its base directory as a file.



    ------------------------------
    Jack Woehr
    ------------------------------



  • 8.  RE: ACS Open Source Package management

    Posted 17 days ago

    I tried also this: 

    /QOpenSys/pkgs/bin/yum                                                                                             
                      install /QOpenSys/QIBM/UserData/rpm_repos/ibm/ppc64/nodejs14-14.19.1-1.ibmi7.2.ppc64.rpm         



    ------------------------------
    Michael Cramer
    ------------------------------



  • 9.  RE: ACS Open Source Package management

    IBM Champion
    Posted 17 days ago

    Just copy over the whole repo to your machine.

    Create a repo file under repos.d where the baseurl is a pointer to a file as described in my previous message.

    Then yum install the packages you want.



    ------------------------------
    Jack Woehr
    ------------------------------



  • 10.  RE: ACS Open Source Package management

    Posted 17 days ago

    ok, i did that. I think the ACS tool when I issued the creation of the clone was supposed to update the repos.d to include my new IFS path. 

    I updated that manually to 

    baseurl=file:///...my ifs path.....they really don't make this easy by putting fragmented pieces of information scattered on different sites. 

    but the node js install failed because it wanted python, so I installed python 3 first then came back to the nodes js install but still getting: 

     /QOpenSys/pkgs/bin/yum                                                                                                           
                      install /QOpenSys/QIBM/UserData/rpm_repos/ibm/ppc64/nodejs14-14.19.1-1.ibmi7.2.ppc64.rpm                       
    https://public.dhe.ibm.com/software/ibmi/products/pase/rpms/repo-7.5/repodata/repomd.xml: [Errno 14] curl#6 - "getaddrinfo() thre
    ad failed to start"                                                                                                              
    Trying other mirror.                                                                                                             
    Setting up Install Process                                                                                                       
    Examining /QOpenSys/QIBM/UserData/rpm_repos/ibm/ppc64/nodejs14-14.19.1-1.ibmi7.2.ppc64.rpm: nodejs14-14.19.1-1.ppc64             
    Marking /QOpenSys/QIBM/UserData/rpm_repos/ibm/ppc64/nodejs14-14.19.1-1.ibmi7.2.ppc64.rpm to be installed                         
    Resolving Dependencies                                                                                                           

    --> Running transaction check                                                                
    ---> Package nodejs14.ppc64 0:14.19.1-1 will be installed                                    
    --> Processing Dependency: /QOpenSys/pkgs/bin/python3 for package: nodejs14-14.19.1-1.ppc64  
    --> Processing Dependency: python3 for package: nodejs14-14.19.1-1.ppc64                     
    --> Running transaction check                                                                
    ---> Package python3.ppc64 0:3.6.15-1 will be installed                                      
    --> Finished Dependency Resolution                                                           
                                                                                                 
    Dependencies Resolved                                                                        
                                                                                                 
    ================================================================================             
     Package     Arch     Version        Repository                            Size              
    ================================================================================             
    Installing:                                                                                  
     nodejs14    ppc64    14.19.1-1      /nodejs14-14.19.1-1.ibmi7.2.ppc64    134 M              
    Installing for dependencies:                                                                 
     python3     ppc64    3.6.15-1       ibmi-base                             36 M              

    Transaction Summary                                                                                                            
    ================================================================================                                               
    Install       2 Packages                                                                                                       
                                                                                                                                   
    Total size: 170 M                                                                                                              
    Total download size: 36 M                                                                                                      
    Installed size: 273 M                                                                                                          
    Is this ok [y/N]:                                                                                                              
    y                                                                                                                              
    Downloading Packages:                                                                                                          
                                                                                                                                   
                                                                                                                                   
    Error Downloading Packages:                                                                                                    
      python3-3.6.15-1.ppc64: failure: ppc64/python3-3.6.15-1.ibmi7.2.ppc64.rpm from ibmi-base: [Errno 256] No more mirrors to try.
                                                                                                                                   
    $                                                                                                                              



    ------------------------------
    Michael Cramer
    ------------------------------



  • 11.  RE: ACS Open Source Package management

    IBM Champion
    Posted 17 days ago

    Change all the other repo files (the ones that point to other than file:/// ) in repo.d to enabled=0



    ------------------------------
    Jack Woehr
    ------------------------------



  • 12.  RE: ACS Open Source Package management

    Posted 17 days ago

    same error. Why it is looking to download python3-3.6.15-1.ppc64 when I just installed it? 



    ------------------------------
    Michael Cramer
    ------------------------------



  • 13.  RE: ACS Open Source Package management

    IBM Champion
    Posted 17 days ago

    Hmm, not sure my messge got posted. This could be a duplicate

    Anyway, looks like things are out of sync.

    Try rpm --rebuilddb and then try again.



    ------------------------------
    Jack Woehr
    ------------------------------



  • 14.  RE: ACS Open Source Package management

    Posted 16 days ago

    same error: 

    > y                                                                                                                              
      Downloading Packages:                                                                                                          
                                                                                                                                     
                                                                                                                                     
      Error Downloading Packages:                                                                                                    
        python3-3.6.15-1.ppc64: failure: ppc64/python3-3.6.15-1.ibmi7.2.ppc64.rpm from ibmi-base: [Errno 256] No more mirrors to try.
                                                                                                                                     
      $                                                                                                                              

    only the first repos.d file has enabled = 0 btw where my filepath is specified. 



    ------------------------------
    Michael Cramer
    ------------------------------



  • 15.  RE: ACS Open Source Package management

    IBM Champion
    Posted 16 days ago
    Do a yum clean all

    On Thu, Apr 25, 2024, at 17:16, Michael Cramer via IBM TechXchange Community wrote:
    same error: > y ...
    IBM TechXchange Community

    IBM i Global

    Post New Message
    Re: ACS Open Source Package management
    Reply to Group
    Reply to Sender
    Michael Cramer
    Apr 25, 2024 7:14 PM
    Michael Cramer

    same error: 

    > y                                                                                                                              
      Downloading Packages:                                                                                                          
                                                                                                                                     
                                                                                                                                     
      Error Downloading Packages:                                                                                                    
        python3-3.6.15-1.ppc64: failure: ppc64/python3-3.6.15-1.ibmi7.2.ppc64.rpm from ibmi-base: [Errno 256] No more mirrors to try.
                                                                                                                                     
      $                                                                                                                              

    only the first repos.d file has enabled = 0 btw where my filepath is specified. 



    ------------------------------
    Michael Cramer
    ------------------------------
      Reply to Group Online   View Thread   Recommend   Forward   Flag as Inappropriate  
    -------------------------------------------
    Original Message:
    Sent: Thu April 25, 2024 06:22 PM



     
    You are receiving this notification because you followed the 'ACS Open Source Package management' message thread. If you do not wish to follow this, please click here.

    Update your email preferences to choose the types of email you receive







  • 16.  RE: ACS Open Source Package management

    Posted 16 days ago

    looks better but still wanting python

    /QOpenSys/pkgs/bin/yum clean all
    Cleaning repos: ibmi-base       
    Cleaning up Everything          

    /QOpenSys/pkgs/bin/yum                                                                                                           
                      install /QOpenSys/QIBM/UserData/rpm_repos/ibm/ppc64/nodejs14-14.19.1-1.ibmi7.2.ppc64.rpm                       
    ibmi-base                                                   | 3.6 kB  00:00                                                      
    ibmi-base/primary_db                                        | 446 kB  00:00                                                      
    file:///QOpenSys/QIBM/UserData/rpm_repos/ibm/repodata/27eb7c072c92c15c30cc9d38d69f8780db003fb7116eddbaa1fb44516db25ffa-primary.sq
    lite.bz2: [Errno -1] Metadata file does not match checksum                                                                       
    Trying other mirror.                                                                                                             
    file:///QOpenSys/QIBM/UserData/rpm_repos/ibm/repodata/27eb7c072c92c15c30cc9d38d69f8780db003fb7116eddbaa1fb44516db25ffa-primary.sq
    lite.bz2: [Errno -1] Metadata file does not match checksum                                                                       
    Trying other mirror.            

    Setting up Install Process                                                                                           
    Examining /QOpenSys/QIBM/UserData/rpm_repos/ibm/ppc64/nodejs14-14.19.1-1.ibmi7.2.ppc64.rpm: nodejs14-14.19.1-1.ppc64 
    Marking /QOpenSys/QIBM/UserData/rpm_repos/ibm/ppc64/nodejs14-14.19.1-1.ibmi7.2.ppc64.rpm to be installed             
    Resolving Dependencies                                                                                               
    --> Running transaction check                                                                                        
    ---> Package nodejs14.ppc64 0:14.19.1-1 will be installed                                                            
    --> Processing Dependency: /QOpenSys/pkgs/bin/python3 for package: nodejs14-14.19.1-1.ppc64                          
    --> Processing Dependency: python3 for package: nodejs14-14.19.1-1.ppc64                                             
    --> Processing Dependency: /QOpenSys/pkgs/bin/python3 for package: nodejs14-14.19.1-1.ppc64                          
    --> Finished Dependency Resolution                                                                                   
    Error: Package: nodejs14-14.19.1-1.ppc64 (/nodejs14-14.19.1-1.ibmi7.2.ppc64)                                         
               Requires: python3                                                                                         
    Error: Package: nodejs14-14.19.1-1.ppc64 (/nodejs14-14.19.1-1.ibmi7.2.ppc64)                                         
               Requires: /QOpenSys/pkgs/bin/python3                                                                      
     You could try using --skip-broken to work around the problem                                                        
     You could try running: rpm -Va --nofiles --nodigest                                                                                                                                                                  



    ------------------------------
    Michael Cramer
    ------------------------------



  • 17.  RE: ACS Open Source Package management

    IBM Champion
    Posted 16 days ago
    Edited by Jack Woehr 16 days ago

    Looks like you didn't set the ibmi-base.repo to enabled=0 and it's still being pulled in with its network url

    >>> Never mind, I see you've edited ibmi-base.repo to point to your file spec.

    ------------------------------
    Jack Woehr
    ------------------------------



  • 18.  RE: ACS Open Source Package management

    IBM Champion
    Posted 16 days ago
    Edited by Jack Woehr 16 days ago

    This is wrong:

    /QOpenSys/pkgs/bin/yum install /QOpenSys/QIBM/UserData/rpm_repos/ibm/ppc64/nodejs14-14.19.1-1.ibmi7.2.ppc64.rpm        

    Just /QOpenSys/pkgs/bin/yum install nodejs14       



    ------------------------------
    Jack Woehr
    ------------------------------



  • 19.  RE: ACS Open Source Package management

    Posted 16 days ago
    Edited by Michael Cramer 16 days ago

                                                          QSH Command Entry                                                            
    Tried also : 

    /QOpenSys/pkgs/bin/yum clean metadata
    Cleaning repos: ibmi-base            
    2 metadata files removed             
    1 sqlite file removed                
    0 metadata files removed             

                                                                                                                                      
    $                                                                                                                                 >
    /QOpenSys/pkgs/bin/yum install nodejs14                                                                                            
    ibmi-base                                                   | 3.6 kB  00:00                                                        
    file:///QOpenSys/QIBM/UserData/rpm_repos/ibm/repodata/27eb7c072c92c15c30cc9d38d69f8780db003fb7116eddbaa1fb44516db25ffa-primary.sq  
    lite.bz2: [Errno -1] Metadata file does not match checksum                                                                         
    Trying other mirror.                                                                                                               
    file:///QOpenSys/QIBM/UserData/rpm_repos/ibm/repodata/27eb7c072c92c15c30cc9d38d69f8780db003fb7116eddbaa1fb44516db25ffa-primary.sq  
    lite.bz2: [Errno -1] Metadata file does not match checksum                                                                         
    Trying other mirror.                                                                                                               
    Setting up Install Process                                                                                                         
    No package nodejs14 available.                                                                                                     
    Error: Nothing to do                                                                                                               
    $                                                                                                                                  



    ------------------------------
    Michael Cramer
    ------------------------------



  • 20.  RE: ACS Open Source Package management

    IBM Champion
    Posted 14 days ago
    Edited by Jack Woehr 14 days ago

    Try executing createrepo -v directory_of_your_baseurl_declaration

    Then do a yum clean all and try again.

    ** note that directory_of_your_baseurl_declaration should be just the absolute directory path, not including the file:/// protocol declaration.

    ------------------------------
    Jack Woehr
    ------------------------------



  • 21.  RE: ACS Open Source Package management

    Posted 13 days ago

    Although the ACS interface shows "yum-utils" 1.1.31-9, I can't find the createrepo cmd. I scanned the whole root IFS directory also for it. 



    ------------------------------
    Michael Cramer
    ------------------------------



  • 22.  RE: ACS Open Source Package management

    IBM Champion
    Posted 13 days ago

    createrepo-0.10.4-4.noarch : Creates a common metadata repository
    Repo        : ibmi-base

    $ which createrepo
    /QOpenSys/pkgs/bin/createrepo

    This is beyond my ability to diagnose by telepathy. I'd have to go into your system. 
    How did we get here? Why can't you install from https on the internet?



    ------------------------------
    Jack Woehr
    ------------------------------



  • 23.  RE: ACS Open Source Package management

    Posted 12 days ago

    I had installed the open source component from ACS, then issued the clone repo for offline use because certain of my partitions don't have internet access. I went back to another system and issued again the close repo for offline use with the default settings. All the rpms downloaded but then I get a dialog box saying MSGGEN005 - Internal Error.

    java.lang.illegalstateexception: channel id=15 not registered because session is being closed. 

    It hasn't been smooth on any partitions I've tried to connect to via acs to install this tool. Various errors from this one to authority issues not logged in the audit journals and I can't trace.  



    ------------------------------
    Michael Cramer
    ------------------------------



  • 24.  RE: ACS Open Source Package management

    IBM Champion
    Posted 12 days ago

    Michael, there may be multiple inconsistencies on your LPAR(s).
    Some serious thought is required.

    • What's your Java version.
    • What OS level are you at?
    • How are your PTFs?

    ... etc.


    You've reached the limit, as I noted, that I can help you debug "via telepathy".
    You may have to bring someone into your system to look around and see what's wrong.



    ------------------------------
    Jack Woehr
    ------------------------------



  • 25.  RE: ACS Open Source Package management

    Posted 12 days ago

    ok, I'll open up a case, thanks for your help Jack. 



    ------------------------------
    Michael Cramer
    ------------------------------



  • 26.  RE: ACS Open Source Package management

    Posted 11 days ago

    ok, Wayne gave me this solution that worked: 

    clear out the currently installed Open Source elements off of the IBM i to start with a clean install delete the following directories and all of their contents if they exist:

    /QOpenSys/var/cache/yum/

    /QOpenSys/var/lib/yum

    /QOpenSys/var/lib/rpm

    /QOpenSys/etc/yum

    /QOpenSys/pkgs

    In the /tmp directory delete any "bootstrap.*" and "gtar" files if they exist.

    Once that has been done, I would recommend following these instructions to install the latest support:

    https://ibmi-oss-docs.readthedocs.io/en/latest/yum/README.html#offline-install-instructions-without-acs

    Then, connection IBM i ACS 1.1.9.5 Open Source Package Management with the "SSH Tunnel..." option selected and do you see NodeJs 14 under Available packages



    ------------------------------
    Michael Cramer
    ------------------------------



  • 27.  RE: ACS Open Source Package management

    IBM Champion
    Posted 11 days ago

    Excellent @Michael Cramer ... thanks for posting back a solution! Onwards with Open Source on IBM i!



    ------------------------------
    Jack Woehr
    ------------------------------