Failed to get properties: No such interface '' in Ubuntu 16.04.3 LTS












3















I Created this Unit file tdk-api.service in the /etc/systemd/system folder with this permissions: -rwxr-xr-x



with this content:



[Unit]
Description = tdk API daemon

[Service]
Type = simple
ExecStart = /usr/local/bin/start-tdk-api.sh
ExecStop = /usr/local/bin/stop-tdk-api.sh
ExecReload = /usr/local/bin/reload-tdk-api.sh

[Install]
WantedBy = multi-user.target


But I have an error when starting:



root@localhost:/etc/systemd/system# sudo systemctl start tdk-api
Failed to start tdk-api.service: Unknown unit: tdk-api.service
See system logs and 'systemctl status tdk-api.service' for details.
root@localhost:/etc/systemd/system# systemctl status tdk-api.service
Failed to get properties: No such interface ''
root@localhost:/etc/systemd/system#


I also tried to reload systemd daemon, as suggested



systemctl daemon-reload


I also tried:



root@localhost:/etc/systemd/system# systemctl enable tdk-api.service
Configuration file /etc/systemd/system/tdk-api.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Created symlink /etc/systemd/system/multi-user.target.wants/tdk-api.service, pointing to /etc/systemd/system/tdk-api.service.
root@localhost:/etc/systemd/system# sudo systemctl start tdk-api
Failed to start tdk-api.service: Unknown unit: tdk-api.service
See system logs and 'systemctl status tdk-api.service' for details.
root@localhost:/etc/systemd/system# systemctl status tdk-api.service
Failed to get properties: No such interface ''









share|improve this question


















  • 1





    the systemctl file works, the error is in to the sh scripts. I try out the same systemctl file with some script just perform an echo and it works.

    – AtomiX84
    Jan 9 at 12:36
















3















I Created this Unit file tdk-api.service in the /etc/systemd/system folder with this permissions: -rwxr-xr-x



with this content:



[Unit]
Description = tdk API daemon

[Service]
Type = simple
ExecStart = /usr/local/bin/start-tdk-api.sh
ExecStop = /usr/local/bin/stop-tdk-api.sh
ExecReload = /usr/local/bin/reload-tdk-api.sh

[Install]
WantedBy = multi-user.target


But I have an error when starting:



root@localhost:/etc/systemd/system# sudo systemctl start tdk-api
Failed to start tdk-api.service: Unknown unit: tdk-api.service
See system logs and 'systemctl status tdk-api.service' for details.
root@localhost:/etc/systemd/system# systemctl status tdk-api.service
Failed to get properties: No such interface ''
root@localhost:/etc/systemd/system#


I also tried to reload systemd daemon, as suggested



systemctl daemon-reload


I also tried:



root@localhost:/etc/systemd/system# systemctl enable tdk-api.service
Configuration file /etc/systemd/system/tdk-api.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Created symlink /etc/systemd/system/multi-user.target.wants/tdk-api.service, pointing to /etc/systemd/system/tdk-api.service.
root@localhost:/etc/systemd/system# sudo systemctl start tdk-api
Failed to start tdk-api.service: Unknown unit: tdk-api.service
See system logs and 'systemctl status tdk-api.service' for details.
root@localhost:/etc/systemd/system# systemctl status tdk-api.service
Failed to get properties: No such interface ''









share|improve this question


















  • 1





    the systemctl file works, the error is in to the sh scripts. I try out the same systemctl file with some script just perform an echo and it works.

    – AtomiX84
    Jan 9 at 12:36














3












3








3


2






I Created this Unit file tdk-api.service in the /etc/systemd/system folder with this permissions: -rwxr-xr-x



with this content:



[Unit]
Description = tdk API daemon

[Service]
Type = simple
ExecStart = /usr/local/bin/start-tdk-api.sh
ExecStop = /usr/local/bin/stop-tdk-api.sh
ExecReload = /usr/local/bin/reload-tdk-api.sh

[Install]
WantedBy = multi-user.target


But I have an error when starting:



root@localhost:/etc/systemd/system# sudo systemctl start tdk-api
Failed to start tdk-api.service: Unknown unit: tdk-api.service
See system logs and 'systemctl status tdk-api.service' for details.
root@localhost:/etc/systemd/system# systemctl status tdk-api.service
Failed to get properties: No such interface ''
root@localhost:/etc/systemd/system#


I also tried to reload systemd daemon, as suggested



systemctl daemon-reload


I also tried:



root@localhost:/etc/systemd/system# systemctl enable tdk-api.service
Configuration file /etc/systemd/system/tdk-api.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Created symlink /etc/systemd/system/multi-user.target.wants/tdk-api.service, pointing to /etc/systemd/system/tdk-api.service.
root@localhost:/etc/systemd/system# sudo systemctl start tdk-api
Failed to start tdk-api.service: Unknown unit: tdk-api.service
See system logs and 'systemctl status tdk-api.service' for details.
root@localhost:/etc/systemd/system# systemctl status tdk-api.service
Failed to get properties: No such interface ''









share|improve this question














I Created this Unit file tdk-api.service in the /etc/systemd/system folder with this permissions: -rwxr-xr-x



with this content:



[Unit]
Description = tdk API daemon

[Service]
Type = simple
ExecStart = /usr/local/bin/start-tdk-api.sh
ExecStop = /usr/local/bin/stop-tdk-api.sh
ExecReload = /usr/local/bin/reload-tdk-api.sh

[Install]
WantedBy = multi-user.target


But I have an error when starting:



root@localhost:/etc/systemd/system# sudo systemctl start tdk-api
Failed to start tdk-api.service: Unknown unit: tdk-api.service
See system logs and 'systemctl status tdk-api.service' for details.
root@localhost:/etc/systemd/system# systemctl status tdk-api.service
Failed to get properties: No such interface ''
root@localhost:/etc/systemd/system#


I also tried to reload systemd daemon, as suggested



systemctl daemon-reload


I also tried:



root@localhost:/etc/systemd/system# systemctl enable tdk-api.service
Configuration file /etc/systemd/system/tdk-api.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Created symlink /etc/systemd/system/multi-user.target.wants/tdk-api.service, pointing to /etc/systemd/system/tdk-api.service.
root@localhost:/etc/systemd/system# sudo systemctl start tdk-api
Failed to start tdk-api.service: Unknown unit: tdk-api.service
See system logs and 'systemctl status tdk-api.service' for details.
root@localhost:/etc/systemd/system# systemctl status tdk-api.service
Failed to get properties: No such interface ''






16.04 services






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 5 at 17:24









Nuñito de la CalzadaNuñito de la Calzada

687




687








  • 1





    the systemctl file works, the error is in to the sh scripts. I try out the same systemctl file with some script just perform an echo and it works.

    – AtomiX84
    Jan 9 at 12:36














  • 1





    the systemctl file works, the error is in to the sh scripts. I try out the same systemctl file with some script just perform an echo and it works.

    – AtomiX84
    Jan 9 at 12:36








1




1





the systemctl file works, the error is in to the sh scripts. I try out the same systemctl file with some script just perform an echo and it works.

– AtomiX84
Jan 9 at 12:36





the systemctl file works, the error is in to the sh scripts. I try out the same systemctl file with some script just perform an echo and it works.

– AtomiX84
Jan 9 at 12:36










1 Answer
1






active

oldest

votes


















0





+50









The error is in start-tdk-api.sh. I'm guessing either an environment variable is not set (like PATH) or you're not executing in the directory you think you're in.



You can set environment variables in the service file or update the PATH variable in the script (probably the easiest).



You can also set the working directory for the script in the service file:



[Service]
WorkingDirectory=/directory/to/run/from





share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107227%2ffailed-to-get-properties-no-such-interface-in-ubuntu-16-04-3-lts%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0





    +50









    The error is in start-tdk-api.sh. I'm guessing either an environment variable is not set (like PATH) or you're not executing in the directory you think you're in.



    You can set environment variables in the service file or update the PATH variable in the script (probably the easiest).



    You can also set the working directory for the script in the service file:



    [Service]
    WorkingDirectory=/directory/to/run/from





    share|improve this answer




























      0





      +50









      The error is in start-tdk-api.sh. I'm guessing either an environment variable is not set (like PATH) or you're not executing in the directory you think you're in.



      You can set environment variables in the service file or update the PATH variable in the script (probably the easiest).



      You can also set the working directory for the script in the service file:



      [Service]
      WorkingDirectory=/directory/to/run/from





      share|improve this answer


























        0





        +50







        0





        +50



        0




        +50





        The error is in start-tdk-api.sh. I'm guessing either an environment variable is not set (like PATH) or you're not executing in the directory you think you're in.



        You can set environment variables in the service file or update the PATH variable in the script (probably the easiest).



        You can also set the working directory for the script in the service file:



        [Service]
        WorkingDirectory=/directory/to/run/from





        share|improve this answer













        The error is in start-tdk-api.sh. I'm guessing either an environment variable is not set (like PATH) or you're not executing in the directory you think you're in.



        You can set environment variables in the service file or update the PATH variable in the script (probably the easiest).



        You can also set the working directory for the script in the service file:



        [Service]
        WorkingDirectory=/directory/to/run/from






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 11 at 15:28









        Ed KingEd King

        1861




        1861






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107227%2ffailed-to-get-properties-no-such-interface-in-ubuntu-16-04-3-lts%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

             ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕