Uploaded image for project: 'Aurora'
  1. Aurora
  2. AURORA-1988

Report "[Errno 13] Permission denied" when run hello world when follow latest doc

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Cannot Reproduce
    • 0.20.0
    • None
    • Executor
    • Mesos Version: 1.6.0

      Aurora Version: 0.20.0

      Aurora RPM:

      aurora-scheduler-0.20.0-1.el7.centos.aurora.x86_64.rpm

      aurora-executor-0.20.0-1.el7.centos.aurora.x86_64.rpm

    • Important

    Description

      Hi 

      I am new user for aurora. When I follow latest hello world doc (http://aurora.apache.org/documentation/latest/getting-started/tutorial/) to run first hello world aurora job, I meet below issues:

      D0605 16:17:01.721896 8320 process.py:155] [process: 8320=hello_world]: Error trying to execute hello_world: [Errno 13] Permission denied

      How to solve this issue?

       

      The below is "thermos_runner.DEBUG" log in Mesos Agent: 

      D0605 16:17:01.721050 8320 process.py:445] Wrapped cmdline: ['/bin/bash', '-c', u'echo "----gang---hello aurora-------";']
      D0605 16:17:01.721333 8320 process.py:455] ENV is: {'HOME': '/var/lib/mesos/slaves/65c1f16f-4292-464f-954c-3471fafdc988-S0/frameworks/b6da6477-5047-4d02-a323-101dd2e6d8b6-0000/executors/thermos-www-data-devel-hello_world-0-1d35ab50-a8eb-42da-a4f0-1de0bfbcd8fe/runs/b1d09fc1-ff87-4ec3-9341-85b21040f304/sandbox', 'LOGNAME': 'www-data', 'USER': 'www-data', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'}
      D0605 16:17:01.721896 8320 process.py:155] [process: 8320=hello_world]: Error trying to execute hello_world: [Errno 13] Permission denied: '/var/lib/mesos/slaves/65c1f16f-4292-464f-954c-3471fafdc988-S0/frameworks/b6da6477-5047-4d02-a323-101dd2e6d8b6-0000/executors/thermos-www-data-devel-hello_world-0-1d35ab50-a8eb-42da-a4f0-1de0bfbcd8fe/runs/b1d09fc1-ff87-4ec3-9341-85b21040f304/sandbox'
      D0605 16:17:01.722104 8320 process.py:155] [process: 8320=hello_world]: Coordinator exiting.

       

       

      The below is /etc/aurora/clusters.json:

      [root@cloudpoc3 ~]# more /etc/aurora/clusters.json
      [

      { "auth_mechanism": "UNAUTHENTICATED", "name": "devcluster", "scheduler_zk_path": "/aurora/scheduler", "slave_root": "/var/lib/mesos", "slave_run_directory": "latest", "zk": "127.0.0.1" }

      ]

      +_*The below is hello_world.aurora file:*_+

      pkg_path = '/opt/aurora_test/hello_world.py'

      1. we use a trick here to make the configuration change with
      2. the contents of the file, for simplicity. in a normal setting, packages would be
      3. versioned, and the version number would be changed in the configuration.
        import hashlib
        with open(pkg_path, 'rb') as f:
        pkg_checksum = hashlib.md5(f.read()).hexdigest()
      1. copy hello_world.py into the local sandbox
        install = Process(
        name = 'fetch_package',
        cmdline = 'cp %s . && echo %s && chmod +x hello_world.py' % (pkg_path, pkg_checksum))
      1. run the script
      2. cmdline = 'python -u hello_world.py'
        hello_world = Process(
        name = 'hello_world',
        cmdline = 'echo "---gang-hello aurora------";')
      1. describe the task
        hello_world_task = SequentialTask(
        processes = [hello_world],
        resources = Resources(cpu = 2, ram = 4096*MB, disk=4096*MB))

      jobs = [
      Service(cluster = 'devcluster',
      environment = 'devel',
      role = 'www-data',
      name = 'hello_world',
      task = hello_world_task)
      ]

      From Mesos WebUI, it seems normal:

      Please see attached screen1.jpg

       

       

      Attachments

        1. screen1.jpg
          438 kB
          Geng Gang

        Activity

          People

            Unassigned Unassigned
            ggeng1 Geng Gang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: