{"action":"created","issue":{"url":"https://api.github.com/repos/voxgen/pentaho4-pdi-buildpack/issues/1","labels_url":"https://api.github.com/repos/voxgen/pentaho4-pdi-buildpack/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/voxgen/pentaho4-pdi-buildpack/issues/1/comments","events_url":"https://api.github.com/repos/voxgen/pentaho4-pdi-buildpack/issues/1/events","html_url":"https://github.com/voxgen/pentaho4-pdi-buildpack/issues/1","id":110658390,"number":1,"title":"forwarding of loadIncremental.log to stackato does not seem to work","user":{"login":"cgroeschel","id":12048749,"avatar_url":"https://avatars.githubusercontent.com/u/12048749?v=3","gravatar_id":"","url":"https://api.github.com/users/cgroeschel","html_url":"https://github.com/cgroeschel","followers_url":"https://api.github.com/users/cgroeschel/followers","following_url":"https://api.github.com/users/cgroeschel/following{/other_user}","gists_url":"https://api.github.com/users/cgroeschel/gists{/gist_id}","starred_url":"https://api.github.com/users/cgroeschel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgroeschel/subscriptions","organizations_url":"https://api.github.com/users/cgroeschel/orgs","repos_url":"https://api.github.com/users/cgroeschel/repos","events_url":"https://api.github.com/users/cgroeschel/events{/privacy}","received_events_url":"https://api.github.com/users/cgroeschel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-09T13:23:02Z","updated_at":"2015-10-12T13:11:15Z","closed_at":"2015-10-12T13:11:15Z","body":"the logging within container works ok and can be tail'ed normally but is not forwarded to stackato.\r\n\r\nmanifest.yml used:\r\n\r\napplications:\r\n- name: dpd-ng-pdi\r\n  buildpack: https://github.com/voxgen/pentaho4-pdi-buildpack.git\r\n  memory: 1G\r\n  disk: 1G\r\n  url: []\r\n  stackato:\r\n    hooks:\r\n      post-staging:\r\n      - touch $HOME/log/loadIncremental.log \r\n    env:\r\n      STACKATO_LOG_FILES: loadincremental=$HOME/log/loadIncremental.log:$STACKATO_LOG_FILES\r\n    cron:\r\n      - \"*/1 * * * * $HOME/scripts/loadIncremental.sh >> $HOME/log/loadIncremental.log\"   \r\n\r\nStraight after staging this message pops up:\r\n2015-10-09T14:59:07+0200 stackato[apptail.0]: WARN -- Ignoring missing/inaccessible path /home/stackato/log/loadIncremental.log\r\n\r\nThe PDI app is RUNNING ok otherwise."},"comment":{"url":"https://api.github.com/repos/voxgen/pentaho4-pdi-buildpack/issues/comments/147394774","html_url":"https://github.com/voxgen/pentaho4-pdi-buildpack/issues/1#issuecomment-147394774","issue_url":"https://api.github.com/repos/voxgen/pentaho4-pdi-buildpack/issues/1","id":147394774,"user":{"login":"mabeveridge","id":8126949,"avatar_url":"https://avatars.githubusercontent.com/u/8126949?v=3","gravatar_id":"","url":"https://api.github.com/users/mabeveridge","html_url":"https://github.com/mabeveridge","followers_url":"https://api.github.com/users/mabeveridge/followers","following_url":"https://api.github.com/users/mabeveridge/following{/other_user}","gists_url":"https://api.github.com/users/mabeveridge/gists{/gist_id}","starred_url":"https://api.github.com/users/mabeveridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mabeveridge/subscriptions","organizations_url":"https://api.github.com/users/mabeveridge/orgs","repos_url":"https://api.github.com/users/mabeveridge/repos","events_url":"https://api.github.com/users/mabeveridge/events{/privacy}","received_events_url":"https://api.github.com/users/mabeveridge/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T13:11:15Z","updated_at":"2015-10-12T13:11:15Z","body":"The STACKATO_LOG_FILES  environment variable is not set correctly in the manifest.yml. Looking at the error message you can see that the value '$HOME/log/loadIncremental.log' is resolving to '/home/stackato/log/loadIncremental.log' but the log file is actually '/home/stackato/app/log/loadIncremental.log' - i.e. under the 'app' directory.\r\n\r\nI'm not sure why the $HOME variable is interpreted this way when used in STACKATO_LOG_FILES, especially as it seems to resolve correctly to the app root when used in post-staging hooks. The Stackato documentation on logging refers to a STACKATO_APP_ROOT variable which should perhaps be used instead for this purpose. Alternatively, you can use the path given in the 'Example Manifest File' section of the README.md for this buildpack - namely:\r\n\r\nSTACKATO_LOG_FILES: incremental=app/log/loadIncremental.log:$STACKATO_LOG_FILES\r\n\r\nI've found that this works correctly."}}