Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Problem getting MAF development up and running

    Posted Fri August 02, 2024 09:28 AM

    I have logged into docker successfully, pulled the MAF tools 8.11.14. I have a directory structure like this C:/git/current where I am trying to get a backup of our development applications like techmobile, assetmobile etc.

    When I run docker run -it --privileged -p 3001:3001 -p 3006:3006 -v /git/current:/graphite/.workspace -it -e CHOKIDAR_USEPOLLING=true cp.icr.io/cp/manage/maf-tools:8.11.14, it starts the server. I am able to authenticate with my URL and APIKey. Then it has the error failed to fetch and does not list any applications. 

    When I look in the console it says:

    [Error: EACCES: permission denied, open '../../.workspace/credentials.json'] {
      errno: -13,
      code: 'EACCES',
      syscall: 'open',
      path: '../../.workspace/credentials.json'
    }

    I went to the "current" directory and created a credntials.json file which consists of this:

    {
            "apikey": "testapi",
            "domain": "main.manage.url.suite.maximo.com",
            "port": 443,
            "protocol": "https",
            "context": "maximo"
    }
    Any ideas on what I am doing wrong? Is there a different way to download a copy of our role based apps to back up?


    ------------------------------
    Christopher Stewart
    ------------------------------


  • 2.  RE: Problem getting MAF development up and running

    Posted Mon August 05, 2024 02:08 AM

    Hi Christopher,

    You should bind the folder using your Windows path if you're using Windows.

    Try changing the -v /git/current:/graphite/.workspace to -v C:\git\current:/graphite/.workspace. If your folder has space, you can use double quotes. "C:\git\My folder".

    I hope this can help solve your problem.

    Cheers.



    ------------------------------
    If this post helps, please consider accepting it as a solution to help other members find it more quickly.

    Maycon Belfort
    Consultant
    BPD Zenith
    Melbourne
    ------------------------------



  • 3.  RE: Problem getting MAF development up and running

    Posted Mon August 05, 2024 08:36 AM

    Thank you! After making the changes to the path I was able to build the list of applications!



    ------------------------------
    Christopher Stewart
    ------------------------------



  • 4.  RE: Problem getting MAF development up and running

    Posted Mon August 05, 2024 04:47 AM

    Hi Christopher,

    You need to grant permission to resolve the issue.

    First, start the Docker container.

    1. Go to Docker Container.
    2. Select the EXEC tab and execute the following command:
    // go to the root directory
    cd /
    
    // make the source code folder editable 
    sudo chmod -R 7777 graphite/

    Reload the site to see if the issue is resolved.



    ------------------------------
    Thi Minh Man Nguyen
    ------------------------------



  • 5.  RE: Problem getting MAF development up and running

    Posted Mon August 05, 2024 08:37 AM

    Thank you!  After I was able to see the list of applications they were still erroring out. This permission update fixed the issue. 



    ------------------------------
    Christopher Stewart
    ------------------------------