{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-intellij/issues/1025","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-intellij","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-intellij/issues/1025/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-intellij/issues/1025/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-intellij/issues/1025/events","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-intellij/issues/1025","id":182898713,"number":1025,"title":"Allow running two modules/services at the same time","user":{"login":"zugaldia","id":6964,"avatar_url":"https://avatars.githubusercontent.com/u/6964?v=3","gravatar_id":"","url":"https://api.github.com/users/zugaldia","html_url":"https://github.com/zugaldia","followers_url":"https://api.github.com/users/zugaldia/followers","following_url":"https://api.github.com/users/zugaldia/following{/other_user}","gists_url":"https://api.github.com/users/zugaldia/gists{/gist_id}","starred_url":"https://api.github.com/users/zugaldia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zugaldia/subscriptions","organizations_url":"https://api.github.com/users/zugaldia/orgs","repos_url":"https://api.github.com/users/zugaldia/repos","events_url":"https://api.github.com/users/zugaldia/events{/privacy}","received_events_url":"https://api.github.com/users/zugaldia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-intellij/labels/App%20Engine","name":"App Engine","color":"fef2c0"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-intellij/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-10-13T20:56:00Z","updated_at":"2016-10-14T17:47:20Z","closed_at":null,"body":"I've created a new project that uses the new Gradle plugin to manage two different modules/services in one AppEngine app.\r\n\r\nWhen I launch either independently they run fine. When I try both at the same time, even if neither is still using the datastore, I get the following error in the second module that has been launched:\r\n\r\n```\r\nOperationalError: database is locked\r\n```\r\n\r\nI'm using v16.10.4 of the Intellij plugin, v1.0.0 of the Gradle plugin, and gcloud components is up to date. I've tried setting a separate datastore path for each project with `-Ddatastore.backing_store=/tmp/gae_<modulename>.db` without success.\r\n\r\nPossibly related to https://github.com/GoogleCloudPlatform/google-cloud-intellij/issues/941.\r\n"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-intellij/issues/comments/253871891","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-intellij/issues/1025#issuecomment-253871891","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-intellij/issues/1025","id":253871891,"user":{"login":"zugaldia","id":6964,"avatar_url":"https://avatars.githubusercontent.com/u/6964?v=3","gravatar_id":"","url":"https://api.github.com/users/zugaldia","html_url":"https://github.com/zugaldia","followers_url":"https://api.github.com/users/zugaldia/followers","following_url":"https://api.github.com/users/zugaldia/following{/other_user}","gists_url":"https://api.github.com/users/zugaldia/gists{/gist_id}","starred_url":"https://api.github.com/users/zugaldia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zugaldia/subscriptions","organizations_url":"https://api.github.com/users/zugaldia/orgs","repos_url":"https://api.github.com/users/zugaldia/repos","events_url":"https://api.github.com/users/zugaldia/events{/privacy}","received_events_url":"https://api.github.com/users/zugaldia/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T17:47:20Z","updated_at":"2016-10-14T17:47:20Z","body":"> Are you OK with the two services using different storage?\r\n\r\nThis isn't a deal-breaker for this particular project (for now) because of the way it's archictected, however if I were given the option, I'd prefer seeing the plugin letting me launch several artifacts at once (sharing the datastore) rather than having to specify different storage paths.\r\n\r\n> also do you have a full stacktrace from that gradle error?\r\n\r\nHere you go, re-ran Gradle with the `--debug option`, I'm afraid it doesn't seem very useful:\r\n\r\n```\r\n10:36:28.271 [DEBUG] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Determining if task ':modulename:war' is up-to-date\r\n10:36:28.279 [INFO] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Skipping task ':modulename:war' as it is up-to-date (took 0.007 secs).\r\n10:36:28.279 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':modulename:war'\r\n10:36:28.279 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :modulename:war UP-TO-DATE\r\n10:36:28.279 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :modulename:war (Thread[Daemon worker,5,main]) completed. Took 0.025 secs.\r\n10:36:28.279 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :modulename:explodeWar (Thread[Daemon worker,5,main]) started.\r\n10:36:28.279 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :modulename:explodeWar\r\n10:36:28.279 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Starting to execute task ':modulename:explodeWar'\r\n10:36:28.279 [DEBUG] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Determining if task ':modulename:explodeWar' is up-to-date\r\n10:36:28.281 [INFO] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Skipping task ':modulename:explodeWar' as it is up-to-date (took 0.001 secs).\r\n10:36:28.282 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':modulename:explodeWar'\r\n10:36:28.282 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :modulename:explodeWar UP-TO-DATE\r\n10:36:28.292 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :modulename:explodeWar (Thread[Daemon worker,5,main]) completed. Took 0.013 secs.\r\n10:36:28.292 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :modulename:assemble (Thread[Daemon worker,5,main]) started.\r\n10:36:28.292 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :modulename:assemble\r\n10:36:28.292 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Starting to execute task ':modulename:assemble'\r\n10:36:28.292 [INFO] [org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter] Skipping task ':modulename:assemble' as it has no actions.\r\n10:36:28.293 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':modulename:assemble'\r\n10:36:28.293 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :modulename:assemble UP-TO-DATE\r\n10:36:28.293 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :modulename:assemble (Thread[Daemon worker,5,main]) completed. Took 0.001 secs.\r\n10:36:28.293 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :modulename:appengineRun (Thread[Daemon worker,5,main]) started.\r\n10:36:28.293 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :modulename:appengineRun\r\n10:36:28.293 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Starting to execute task ':modulename:appengineRun'\r\n10:36:28.293 [DEBUG] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Determining if task ':modulename:appengineRun' is up-to-date\r\n10:36:28.293 [INFO] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Executing task ':modulename:appengineRun' (up-to-date check took 0.0 secs) due to:\r\n  Task has not declared any outputs.\r\n10:36:28.294 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':modulename:appengineRun'.\r\n10:36:28.295 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':modulename:appengineRun'\r\n10:36:28.295 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :modulename:appengineRun FAILED\r\n10:36:28.295 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :modulename:appengineRun (Thread[Daemon worker,5,main]) completed. Took 0.002 secs.\r\n10:36:28.295 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Daemon worker,5,main]] finished, busy: 0.196 secs, idle: 0.023 secs\r\n10:36:28.296 [ERROR] [org.gradle.BuildExceptionReporter] \r\n10:36:28.296 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.\r\n10:36:28.296 [ERROR] [org.gradle.BuildExceptionReporter] \r\n10:36:28.296 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:\r\n10:36:28.296 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':modulename:appengineRun'.\r\n10:36:28.296 [ERROR] [org.gradle.BuildExceptionReporter] > java.lang.String cannot be cast to java.io.File\r\n10:36:28.296 [ERROR] [org.gradle.BuildExceptionReporter] \r\n10:36:28.296 [ERROR] [org.gradle.BuildExceptionReporter] * Try:\r\n10:36:28.296 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. \r\n10:36:28.296 [LIFECYCLE] [org.gradle.BuildResultLogger] \r\n10:36:28.296 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED\r\n10:36:28.296 [LIFECYCLE] [org.gradle.BuildResultLogger] \r\n10:36:28.296 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 1.893 secs\r\n```\r\n\r\n(I replaced the actual module name with `modulename`).\r\n"}}
{"actor":{"display_login":"zugaldia"}}