Planning Analytics

 View Only
Expand all | Collapse all

Error when trying to do a Rest API push to Git to copy Files form Applications Folder

  • 1.  Error when trying to do a Rest API push to Git to copy Files form Applications Folder

    Posted Wed May 26, 2021 09:29 AM
    HI,

    I am testing the Planning Analytics Github INtegration and it works like a charm beside one thing:
    When I am trying to push files from the Applications Folder from Tm1 to Git, by configuring the tm1project.json file  like this:
    {
        "Version": "1.0",
        "Name": "testdeployment",
        "Settings": {
            "Performance": {
                "MTQ": {
                    "MTFeedersAtStartup": false
                }
            }
        },
        "Files": [
            "/}applications/*"
        ],
        "Ignore": [],
        "Deployment": {},
        "PrePull": [],
        "PostPull": [],
        "PrePush": [],
        "PostPush": []
    }
    I am getting this error:

    TM1pyRestException: Text: '{"error":{"code":"291","message":"Failed to open file \"/TM1/tm1_64/projects/DEPLOYTEST/datafiles/}applications/tests/excelansicht.xlsx.blob\"."}}' - Status Code: 400 - Reason: 'Bad Request' - Headers: {'Content-Length': '148', 'Connection': 'keep-alive', 'Content-Encoding': 'gzip', 'Cache-Control': 'no-cache', 'Content-Type': 'application/json; charset=utf-8', 'OData-Version': '4.0'}

    This is happening for each file in the }applications Folder

    I changed the rights on that specific file to have rwx for all user, but this does not help.
    Are there any known issues with that or some other ideas to fix this

    Planning Analytics 207
    Linux Red Hat 7 

    Best Regards
    Michael




    ------------------------------
    Michael Ehrenberger
    ------------------------------

    #PlanningAnalyticswithWatson


  • 2.  RE: Error when trying to do a Rest API push to Git to copy Files form Applications Folder

    Posted Mon May 31, 2021 04:36 AM
    Hi Michael,

    It just so happens we ran into an issue that exposed the root cause for this one as well. It's related to the fact that on Linux the file system is case sensitive and we, TM1, being a bit too eager in making things lower case. A fix is slated for a future TM1 11.8.x (PA 2.0.9.x+1), at the earliest 11.8.8 (PA 2.0.9.9) if it can get into that one in time.

    In the meantime, as I kind of implied, a workaround could be to make sure the path to your data directory is all lower case, then you probably would no longer be running into this issue any longer either.

    ------------------------------
    Hubert Heijkers
    ------------------------------



  • 3.  RE: Error when trying to do a Rest API push to Git to copy Files form Applications Folder

    Posted Wed June 09, 2021 04:49 AM
    Hi Hubert,

    man thanks for your answer. I will try that by creating a new Path in Linux  and link this to the original one.
    Is there already an APAR for this logged or should I open a support ticket 

    Best Regards

    Michael

    ------------------------------
    Michael Ehrenberger
    ------------------------------