{"action":"created","issue":{"url":"https://api.github.com/repos/Norconex/collector-http/issues/62","labels_url":"https://api.github.com/repos/Norconex/collector-http/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/Norconex/collector-http/issues/62/comments","events_url":"https://api.github.com/repos/Norconex/collector-http/issues/62/events","html_url":"https://github.com/Norconex/collector-http/issues/62","id":59589735,"number":62,"title":"Log manager misconfiguration","user":{"login":"AntonioAmore","id":7804074,"avatar_url":"https://avatars.githubusercontent.com/u/7804074?v=3","gravatar_id":"","url":"https://api.github.com/users/AntonioAmore","html_url":"https://github.com/AntonioAmore","followers_url":"https://api.github.com/users/AntonioAmore/followers","following_url":"https://api.github.com/users/AntonioAmore/following{/other_user}","gists_url":"https://api.github.com/users/AntonioAmore/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonioAmore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonioAmore/subscriptions","organizations_url":"https://api.github.com/users/AntonioAmore/orgs","repos_url":"https://api.github.com/users/AntonioAmore/repos","events_url":"https://api.github.com/users/AntonioAmore/events{/privacy}","received_events_url":"https://api.github.com/users/AntonioAmore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-03-03T03:25:12Z","updated_at":"2015-05-26T13:37:42Z","closed_at":null,"body":"I have a configuration with line\r\n```\r\n #set($workdir = \"/home/crawlers/www.somesite.com/workdir\")\r\n<logsDir>${workdir}/logs</logsDir>\r\n```\r\nWhen I launch the crawler first time it works perfectly (means no workdir created yet), but on the second launch (-a start) it delivers following error:\r\n\r\n```\r\ncom.norconex.commons.lang.config.ConfigurationException: This class could not be instantiated: \"com.norconex.jef4.log.FileLogManager\".\r\n\tat com.norconex.commons.lang.config.ConfigurationUtil.newInstance(ConfigurationUtil.java:177)\r\n\tat com.norconex.commons.lang.config.ConfigurationUtil.newInstance(ConfigurationUtil.java:321)\r\n\tat com.norconex.commons.lang.config.ConfigurationUtil.newInstance(ConfigurationUtil.java:223)\r\n\tat com.norconex.jef4.status.JobSuiteStatusSnapshot.newSnapshot(JobSuiteStatusSnapshot.java:179)\r\n\tat com.norconex.jef4.suite.JobSuite.getJobStatus(JobSuite.java:154)\r\n\tat com.norconex.jef4.suite.JobSuite.getJobStatus(JobSuite.java:146)\r\n\tat com.norconex.jef4.suite.JobSuite.getStatus(JobSuite.java:139)\r\n\tat com.norconex.collector.core.AbstractCollector.stop(AbstractCollector.java:131)\r\n\tat com.norconex.collector.core.AbstractCollectorLauncher.launch(AbstractCollectorLauncher.java:73)\r\n\tat com.norconex.collector.http.HttpCollector.main(HttpCollector.java:75)\r\nCaused by: com.norconex.jef4.JEFException: Cannot create log directory: /var/www/Norconex/jef/workdir/latest/logs\r\n\tat com.norconex.jef4.log.FileLogManager.resolveDirs(FileLogManager.java:114)\r\n\tat com.norconex.jef4.log.FileLogManager.<init>(FileLogManager.java:85)\r\n\tat com.norconex.jef4.log.FileLogManager.<init>(FileLogManager.java:74)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:408)\r\n\tat java.lang.Class.newInstance(Class.java:433)\r\n\tat com.norconex.commons.lang.config.ConfigurationUtil.newInstance(ConfigurationUtil.java:175)\r\n\t... 9 more\r\nCaused by: java.io.IOException: Unable to create directory /var/www/Norconex/jef/workdir/latest/logs\r\n\tat org.apache.commons.io.FileUtils.forceMkdir(FileUtils.java:2384)\r\n\tat com.norconex.jef4.log.FileLogManager.resolveDirs(FileLogManager.java:112)\r\n\t... 17 more\r\n```\r\n\r\nWhy it try create ```Norconex/jef``` directory?"},"comment":{"url":"https://api.github.com/repos/Norconex/collector-http/issues/comments/105526041","html_url":"https://github.com/Norconex/collector-http/issues/62#issuecomment-105526041","issue_url":"https://api.github.com/repos/Norconex/collector-http/issues/62","id":105526041,"user":{"login":"essiembre","id":2326274,"avatar_url":"https://avatars.githubusercontent.com/u/2326274?v=3","gravatar_id":"","url":"https://api.github.com/users/essiembre","html_url":"https://github.com/essiembre","followers_url":"https://api.github.com/users/essiembre/followers","following_url":"https://api.github.com/users/essiembre/following{/other_user}","gists_url":"https://api.github.com/users/essiembre/gists{/gist_id}","starred_url":"https://api.github.com/users/essiembre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/essiembre/subscriptions","organizations_url":"https://api.github.com/users/essiembre/orgs","repos_url":"https://api.github.com/users/essiembre/repos","events_url":"https://api.github.com/users/essiembre/events{/privacy}","received_events_url":"https://api.github.com/users/essiembre/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T13:37:42Z","updated_at":"2015-05-26T13:37:42Z","body":"When no working directory is specified, it uses the user home directory + Norconex.    In your case, since you have given it a working directory, it should not write there.  Please paste your entire config to help reproduce (or email it if sensitive)."}}