Not able to push code on App service via local Git : source: filename argument required

Sharma, Vivek 26 Reputation points
2020-09-16T09:36:57.21+00:00

I am pushing codes to an APP Service via local Git. There was no problem till date but now I am not able to push codes anymore. When I run pushing code the Deployment center show the following messages below

2:23:55 AM Updating branch 'master'.
12:24:18 AM Updating submodules.
12:24:18 AM Preparing deployment for commit id '41abe6259a'.
12:24:18 AM Repository path is /home/site/repository

What I have tried

1) I tried to reset git profile.
2) I tried deleting the remote from Visual Studio code and adding back.
3) I tried restarting the App Service.
4) I have checked the log stream during deploying but no errors detected.
5) I tried creating new environment and trying pushing the code back again.
6 I have tried pushing code multiple times but I failed.

Below is the full log message.

Command: oryx build /home/site/repository -o /home/site/wwwroot --platform python --platform-version 3.7 -i /tmp/8d859a8c046b366 -p compress_virtualenv=tar-gz -p virtualenv_name=antenv --log-file /tmp/build-debug.log 
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version: 0.2.20200805.1, Commit: e7c39ede513143e9d80fd553f106f04268d770d4, ReleaseTagName: 20200805.1

Build Operation ID: |ENoF91/iahw=.86b9e326_
Repository Commit : 41abe6259a8984bae70ced2174b9b430f4df525a

Detecting platforms...
Detected following platforms:
  python: 3.7.7

Using intermediate directory '/tmp/8d859a8c046b366'.

Copying files to the intermediate directory...
Done in 63 sec(s).

Source directory     : /tmp/8d859a8c046b366
Destination directory: /home/site/wwwroot

/tmp/BuildScriptGenerator/e2c17654bfb749e9ae840eee6d109d19/build.sh: line 97: source: filename argument required
source: usage: source filename [arguments]
/tmp/BuildScriptGenerator/e2c17654bfb749e9ae840eee6d109d19/build.sh: line 97: source: filename argument required\nsource: usage: source filename [arguments]\n/opt/Kudu/KuduConsole/Scripts/starter.sh oryx build /home/site/repository -o /home/site/wwwroot --platform python --platform-version 3.7 -i /tmp/8d859a8c046b366 -p compress_virtualenv=tar-gz -p virtualenv_name=antenv --log-file /tmp/build-debug.log 
Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,337 questions
No comments
1 vote

3 answers

Sort by: Most helpful
  1. Glen 11 Reputation points
    2020-11-03T16:02:17.507+00:00

    God, if anyone finds this. The solution i eventually found was this

    https://github.com/microsoft/Oryx/issues/795

    Something has happened in the last month or 2 that ORYX is trying to build .IPYNB files if they exist in your project. 1 server ended up needing a full rebuild but the others updated fine eventually.


  2. brtrach-MSFT 6,486 Reputation points Microsoft Employee
    2020-09-17T06:32:30.35+00:00

    @Sharma, Vivek Can you verify if you are seeing your new site files in KUDU?

    I'm wondering if the files are making it to your app since you did not encounter any deployment errors in the usual places. If your files are successfully making it into /home/site/repository folder, then there is a chance that there are errors occurring within KUDU. To configure the deployment logs and where to access the KUDU deployment logs, please check out this link.

    Once you have configured the deployment logs and attempted a deployment, review the logs for any errors.

    If there are no errors in the KUDU logs then:

    1. Create a clean copy of your repository and verify that this repository works as expected locally. More info here.
    2. If you are using a custom deployment script, verify that the script works when run directly from the Kudu console. You can check whether there is a .deployment file in the root of your directory, and provide this file if present, along with the deploy.___ file if present (deploy.cmd, deploy.sh, deploy.ps1).
    3. Check the quota blade for your web app to ensure you are not hitting a quota such as CPU or storage.

    We hope that this helps to resolve the issues. If not, please let us know so we can continue assisting you.

    No comments

  3. Glen 11 Reputation points
    2020-11-02T04:50:59.607+00:00

    Having the same issue.

    Have retried on a new web app instance with the same errors.
    I want to avoid creating a new repository if all possible as i don't think that gets to the root of the problem. This webapp has not been updated for 50 days and i have mad minor code changes and on deployment changes (using kudu deployments directly from azure)

    No files are copied to Siteroot, i cannot find the tmp directory for deployment Nor the 'build-debug.log'

    Command: oryx build /home/site/repository -o /home/site/wwwroot --platform python --platform-version 3.7 -i /tmp/8d87ee46fcfd858 -p compress_virtualenv=tar-gz -p virtualenv_name=antenv --log-file /tmp/build-debug.log 
    Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
    You can report issues at https://github.com/Microsoft/Oryx/issues
    
    Oryx Version: 0.2.20200917.1, Commit: 59deb778658a124cb74ea8e2c8f39fa87abcc9d9, ReleaseTagName: 20200917.1
    
    Build Operation ID: |S6nbrLzUJF0=.f9dd240d_
    Repository Commit : 0ee5b8316a5ad6fd2a6982b6e7b24475d3c3fe83
    
    Detecting platforms...
    Detected following platforms:
      python: 3.7.9
    
    Using intermediate directory '/tmp/8d87ee46fcfd858'.
    
    Copying files to the intermediate directory...
    Done in 1 sec(s).
    
    Source directory     : /tmp/8d87ee46fcfd858
    Destination directory: /home/site/wwwroot
    
    /tmp/BuildScriptGenerator/c9ada941d4c0461d909d92f3b0945cad/build.sh: line 97: source: filename argument required
    source: usage: source filename [arguments]
    /tmp/BuildScriptGenerator/c9ada941d4c0461d909d92f3b0945cad/build.sh: line 97: source: filename argument required\nsource: usage: source filename [arguments]\n/opt/Kudu/Scripts/starter.sh oryx build /home/site/repository -o /home/site/wwwroot --platform python --platform-version 3.7 -i /tmp/8d87ee46fcfd858 -p compress_virtualenv=tar-gz -p virtualenv_name=antenv --log-file /tmp/build-debug.log 
    

    More details logs here with Timestamps, shows it happens in a matter of 10 seconds. Like it cannot find the source.

    [
    {
    log_time: "2020-11-02T04:04:46.8123103Z",
    id: "",
    message: "Command: oryx build /home/site/repository -o /home/site/wwwroot --platform python --platform-version 3.7 -i /tmp/8d87ee46fcfd858 -p compress_virtualenv=tar-gz -p virtualenv_name=antenv --log-file /tmp/build-debug.log ",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:50.5935987Z",
    id: "",
    message: "Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:50.621232Z",
    id: "",
    message: "You can report issues at https://github.com/Microsoft/Oryx/issues",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:50.630477Z",
    id: "",
    message: "",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:50.6427038Z",
    id: "",
    message: "Oryx Version: 0.2.20200917.1, Commit: 59deb778658a124cb74ea8e2c8f39fa87abcc9d9, ReleaseTagName: 20200917.1",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:50.6478351Z",
    id: "",
    message: "",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:50.6578282Z",
    id: "",
    message: "Build Operation ID: |S6nbrLzUJF0=.f9dd240d_",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:50.6679445Z",
    id: "",
    message: "Repository Commit : 0ee5b8316a5ad6fd2a6982b6e7b24475d3c3fe83",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:50.6881335Z",
    id: "",
    message: "",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:50.707785Z",
    id: "",
    message: "Detecting platforms...",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:51.75804Z",
    id: "",
    message: "Detected following platforms:",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:51.7791379Z",
    id: "",
    message: " python: 3.7.9",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:52.1736572Z",
    id: "",
    message: "",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:52.2605519Z",
    id: "",
    message: "Using intermediate directory '/tmp/8d87ee46fcfd858'.",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:53.2392082Z",
    id: "",
    message: "",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:53.2449848Z",
    id: "",
    message: "Copying files to the intermediate directory...",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:53.2490464Z",
    id: "",
    message: "Done in 1 sec(s).",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:53.2529299Z",
    id: "",
    message: "",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:53.2570392Z",
    id: "",
    message: "Source directory : /tmp/8d87ee46fcfd858",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:53.2673598Z",
    id: "",
    message: "Destination directory: /home/site/wwwroot",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:53.2768312Z",
    id: "",
    message: "",
    type: 0,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:53.5940515Z",
    id: "",
    message: "/tmp/BuildScriptGenerator/c9ada941d4c0461d909d92f3b0945cad/build.sh: line 97: source: filename argument required",
    type: 1,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:53.604972Z",
    id: "",
    message: "source: usage: source filename [arguments]",
    type: 1,
    details_url: null
    },
    {
    log_time: "2020-11-02T04:04:57.0769617Z",
    id: "",
    message: "/tmp/BuildScriptGenerator/c9ada941d4c0461d909d92f3b0945cad/build.sh: line 97: source: filename argument required\nsource: usage: source filename [arguments]\n/opt/Kudu/Scripts/starter.sh oryx build /home/site/repository -o /home/site/wwwroot --platform python --platform-version 3.7 -i /tmp/8d87ee46fcfd858 -p compress_virtualenv=tar-gz -p virtualenv_name=antenv --log-file /tmp/build-debug.log ",
    type: 2,
    details_url: null
    }
    ]
    
    No comments