[
https://issues.apache.org/jira/browse/MESOS-2586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14395435#comment-14395435
]
Rolando Manrique commented on MESOS-2586:
-----------------------------------------
I also got permission denied error when testing on 0.22. This happened writing
any file not necessarily downloading files using URI field.
In our case, the problem is that the sandbox dir is owned by root and we run
chronos as some other user. On version 0.21.1 this same set up works and
sandbox is owned by the user running the task.
> Mesos 0.22 now respects executable flag (or lack of) on URIs
> ------------------------------------------------------------
>
> Key: MESOS-2586
> URL: https://issues.apache.org/jira/browse/MESOS-2586
> Project: Mesos
> Issue Type: Bug
> Components: fetcher
> Affects Versions: 0.22.0
> Reporter: Sunil Shah
> Priority: Minor
> Labels: fetcher, mesosphere
>
> I'm unsure if this problem is because of a bug or because a bug has now been
> fixed.
> A number of our Chronos jobs started failing when we upgraded to Mesos 0.22.
> These worked prior to the upgrade. They specify a URI to a Python script and
> execute the Python script within a minimal Docker container.
> Note that Chronos does not setExecutable on the URI when building the Mesos
> task and has never done so on URIs
> (https://github.com/mesos/chronos/blob/36a294d4714e545de91fcda920429faff15a1746/src/main/scala/org/apache/mesos/chronos/scheduler/mesos/MesosTaskBuilder.scala#L101).
> stderr output complains about lacking permission:
> {code}
> /bin/sh: 1: ./integration_test.py: Permission denied
> {code}
> I suspect this is intended behaviour and was just wondering if this was a
> known bug in the fetcher that was fixed in the 0.22 release of Mesos.
> Example job configuration:
> {code}
> {
> "schedule": "R/2015-03-13T00:00:00Z/PT1H",
> "name": "Integration Test",
> "container": {
> "type": "DOCKER",
> "image": "mesosphere/python-monitoring"
> },
> "cpus": "1.0",
> "mem": "512",
> "owner": "[email protected]",
> "uris": [
> "https://path/to/integration_test.py"
> ],
> "command": "cd $MESOS_SANDBOX && ./integration_test.py"
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)