{"action":"created","issue":{"url":"https://api.github.com/repos/nextflow-io/nextflow/issues/161","repository_url":"https://api.github.com/repos/nextflow-io/nextflow","labels_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/161/comments","events_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/161/events","html_url":"https://github.com/nextflow-io/nextflow/issues/161","id":155964429,"number":161,"title":"Module load problem","user":{"login":"fredericlemoine","id":16349382,"avatar_url":"https://avatars.githubusercontent.com/u/16349382?v=3","gravatar_id":"","url":"https://api.github.com/users/fredericlemoine","html_url":"https://github.com/fredericlemoine","followers_url":"https://api.github.com/users/fredericlemoine/followers","following_url":"https://api.github.com/users/fredericlemoine/following{/other_user}","gists_url":"https://api.github.com/users/fredericlemoine/gists{/gist_id}","starred_url":"https://api.github.com/users/fredericlemoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredericlemoine/subscriptions","organizations_url":"https://api.github.com/users/fredericlemoine/orgs","repos_url":"https://api.github.com/users/fredericlemoine/repos","events_url":"https://api.github.com/users/fredericlemoine/events{/privacy}","received_events_url":"https://api.github.com/users/fredericlemoine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2016-05-20T13:34:41Z","updated_at":"2016-05-25T14:04:06Z","closed_at":null,"body":"Dear Paolo,\r\n\r\nOn our cluster, we have version 3.3 of environment modules, (https://sourceforge.net/p/modules/git/ci/master/tree/). \r\nIt appears that with this version, when a module is already loaded, `module load ...` returns 1 as an exit status (0 otherwise).\r\n\r\nThe nextflow job initialization script `.command.run` then stops just at the line `&& source .../.command.env` with the error: `COUT: unbound variable`, I guess because `on_exit` function is called before `$COUT` and `$CERR` have been initialized. \r\n\r\nThen the workflow stops with several error messages such as `cannot dump error file, file not found, etc...`.\r\n\r\nSo far I solved the problem by adding `module purge` in my `~/.bashrc`, but I thought is may interest you to know.\r\n\r\nBest"},"comment":{"url":"https://api.github.com/repos/nextflow-io/nextflow/issues/comments/221586219","html_url":"https://github.com/nextflow-io/nextflow/issues/161#issuecomment-221586219","issue_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/161","id":221586219,"user":{"login":"fredericlemoine","id":16349382,"avatar_url":"https://avatars.githubusercontent.com/u/16349382?v=3","gravatar_id":"","url":"https://api.github.com/users/fredericlemoine","html_url":"https://github.com/fredericlemoine","followers_url":"https://api.github.com/users/fredericlemoine/followers","following_url":"https://api.github.com/users/fredericlemoine/following{/other_user}","gists_url":"https://api.github.com/users/fredericlemoine/gists{/gist_id}","starred_url":"https://api.github.com/users/fredericlemoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredericlemoine/subscriptions","organizations_url":"https://api.github.com/users/fredericlemoine/orgs","repos_url":"https://api.github.com/users/fredericlemoine/repos","events_url":"https://api.github.com/users/fredericlemoine/events{/privacy}","received_events_url":"https://api.github.com/users/fredericlemoine/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T14:04:06Z","updated_at":"2016-05-25T14:04:06Z","body":"It should work!"}}
{"actor":{"display_login":"fredericlemoine"}}