• Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login
  • Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login

start.sh command fail

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 3 Posters 1.1k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    heyjay
    last edited by 7 Nov 2017, 22:01

    Hi all,
    I decided to make a new installation of mycontroller with a fresh rpi. So I followed instructions step by step from : https://forum.mycontroller.org/topic/219/how-to-install-mycontroller-on-the-raspberrypi-or-any-other-linux-unix-system

    I went to the end with no problem, but when I enter the final command
    pi@raspberrypi:/opt/mycontroller/bin $ ./start.sh
    I get the answer -bash: ./start.sh: Permission denied
    If I remove "./" at front with or without sudo then the answer is sudo: start.sh: command not found
    I really don't understand where is the problem...
    I made apt-get update and upgrade in case but not better...
    Thanks to anyone can help!

    J T 2 Replies Last reply 8 Nov 2017, 01:36 Reply Quote 0
    • J Offline
      jkandasa @heyjay
      last edited by 8 Nov 2017, 01:36

      @heyjay I guess you might extracted mycontroller*.zip as a root user. delete mycontroller directory as root user or sudo. and extract as normal user.

      1 Reply Last reply Reply Quote 0
      • T Offline
        Tag MOD @heyjay
        last edited by 8 Nov 2017, 07:06

        @heyjay

        Hi!,
        Can you check if the start.sh file is executable?

        # ls -l start.sh
        -rwxrwxr-- 1 user group 2612 Oct 28 18:39 start.sh
        

        what does the output of the command look at your system?

        If it is not the same try:

        chmod 775 ./start.sh
        
        H 1 Reply Last reply 8 Nov 2017, 17:29 Reply Quote 0
        • H Offline
          heyjay @Tag
          last edited by 8 Nov 2017, 17:29

          @tag
          Hi,
          I tried this :

          pi@raspberrypi:/opt/mycontroller/bin $ ls -l start.sh
          -rwxrwxr-x 1 pi pi 2061 Nov  7 21:21 start.sh
          

          then I did chmod as you proposed but I still have the same output and same problem...

          @jkandasa
          Then I followed your advice... Actually, I had transferred my zip file (that I have on my computer) with filezilla, so I guess rights are differents with filezilla even though I connected also with default user pi. Maybe someone has an explanation.

          So after following ALL exact instructions of the guide it works nicely!

          Thank you both so much!

          T 1 Reply Last reply 8 Nov 2017, 19:41 Reply Quote 0
          • T Offline
            Tag MOD @heyjay
            last edited by 8 Nov 2017, 19:41

            @heyjay 👍 good!

            1 Reply Last reply Reply Quote 0
            3 out of 5
            • First post
              3/5
              Last post

            0

            Online

            587

            Users

            529

            Topics

            3.4k

            Posts
            Copyright © 2015-2025 MyController.org | Contributors | Localization