QTC MAR Error: Could not find the file /tmp/slug.tgz



  • I am trying to get my simple hello world application running on the MAR and I am getting the following error:

    git push qtc master
    tar: Unexpected EOF in archive
    tar: Unexpected EOF in archive
    tar: Error is not recoverable: exiting now
    2014/07/15 12:48:52 Error response from daemon: Could not find the file /tmp/slug.tgz in container 13d72b1f0ec86e48759330cb4e44c30c0dade52a0e98142c2fcbd3e9c0508b83
    -----> Deploying app
    mar-eu-1-fibyo5lt deployed to http://mar-eu-1-fibyo5lt.qtcloudapp.com
    Everything up-to-date

    The application runs fine on my development machine (Ubuntu 13.10 x64) but does not run in the MAR. Any help would be appreciated.



  • Unfortunately I have the same problem an d didn't find a solution yet.

    Anyone could help (maybe some of those who have successfully uploaded their app)?


  • cid:52:privileges:purge

    I have deployed successfully "Qt MAR sample":https://github.com/qtcloudservices/mar-sample-qt to MAR (http://mar-eu-1-tnm7px51.qtcloudapp.com/)

    MAR recognizes application as a Qt application if .pro file is found. You have to also define a start command in Procfile. See "example":https://github.com/qtcloudservices/mar-sample-qt/blob/master/Procfile

    In application you have to listen to a port that MAR binds to your application. The port is defined in PORT environment variable. MAR redirects traffic to 80 (and 443) port to that given port.

    Here is example how to get port from environment variables:
    @if(qEnvironmentVariableIsSet("PORT") && !qEnvironmentVariableIsEmpty("PORT")) {
    server->listen(QHostAddress::Any, qgetenv("PORT").toInt());
    } else {
    server->listen(QHostAddress::Any, 8080);
    }@

    I deployed the application with these steps:

    1. "uploaded my SSH Keys":https://developer.qtcloudservices.com/mar/key-concepts/personal-ssh-keys
    2. cloned "project":https://github.com/qtcloudservices/mar-sample-qt from Github to my local machine
    3. created new MAR instance in the "console":https://console.qtcloudservices.com
    4. added git remote to qtc (git remote add qtc <Git Remote>)
    5. deployed the application (git push qtc master)


  • When I try to push the example app the following error occurs:
    @Counting objects: 141, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (125/125), done.
    Writing objects: 100% (141/141), 1.15 MiB | 0 bytes/s, done.
    Total 141 (delta 48), reused 0 (delta 0)
    -----> Qt app detected
    -----> Setting up Qt 5.3.0
    -----> Configuring with qmake
    -----> Compiling with make
    cd qhttpserver/ && ( test -e Makefile || /opt/Qt5.3.0/5.3/gcc_64/bin/qmake /tmp/build/qhttpserver/qhttpserver.pro -o Makefile ) && make -f Makefile
    make[1]: Entering directory /tmp/build/qhttpserver' /Users/User/Qt5.3.1/5.3/clang_64/bin/qmake -spec macx-clang CONFIG+=debug CONFIG+=x86_64 -o Makefile qhttpserver.pro make[1]: /Users/User/Qt5.3.1/5.3/clang_64/bin/qmake: Command not found make[1]: *** [Makefile] Error 127 make[1]: Leaving directory/tmp/build/qhttpserver'
    make: *** [sub-qhttpserver-make_first] Error 2
    2014/07/23 08:56:41 Error response from daemon: Could not find the file /tmp/slug.tgz in container 20a96f35512f00046dd5d2e119c4b6ba72175e42a6620b2609aca90f3473152e
    -----> Deploying app
    mar-eu-1-xfq60hm8 deployed to http://mar-eu-1-xfq60hm8.qtcloudapp.com
    To git@git-mar-eu-1.qtc.io:mar-eu-1-xfq60hm8

    • [new branch] master -> master@
      qmake file is in the directory!

    When I try my own app it says:
    @-----> Unable to select a buildpack
    2014/07/23 07:24:55 Error response from daemon: Could not find the file /tmp/slug.tgz in container 5a908bdbe84d20862d8b5c849d31f23c297cc76ad4d9e392f9095837ade26f33
    -----> Deploying app
    mar-eu-1-4pzyml2k deployed to http://mar-eu-1-4pzyml2k.qtcloudapp.com
    Everything up-to-date@
    Unfortunately I didn't find any information concerning this error.

    I have compared the two directories and they look alike. I have a Procfile which points to my App and there's a .pro file in the directory as well. I have a subfolder "qhttpserver" as in the example. Do I need the "src" subfolder? I haven't this one.


  • cid:52:privileges:purge

    As far as I know, you don't need to have "src" subfolder.

    There are mentions about Qt 5.3.1 in your output

    @/Users/User/Qt5.3.1/5.3/clang_64/bin/qmake -spec macx-clang CONFIG+=debug CONFIG+=x86_64 -o Makefile qhttpserver.pro
    make[1]: /Users/User/Qt5.3.1/5.3/clang_64/bin/qmake: Command not found@

    Do you have any idea where is that from?



  • No, I don't have an idea.

    I tried to pus on another PC. I downloaded the "example":https://github.com/qtcloudservices/mar-sample-qt , created a git repo (git init), added the folder, committed it and then did the steps as in the video. But there was the same output.


  • cid:52:privileges:purge

    [quote author="kreios4004" date="1405428978"]
    git push qtc master

    tar: Unexpected EOF in archive

    tar: Unexpected EOF in archive

    tar: Error is not recoverable: exiting now[/quote]

    This bug should be now fixed. Bug affected only few unfortunate applications and was pretty hard to catch... please try git push again and report if it works now.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.