Running phpstorm inspections in headless mode (No valid license found)

I'm working on docker image to use with TeamCity in order to run PHPStrom inspections.
Image build on top of {{centos:6.6}}, and it has TeamCity Server & Agent
And I want to run {{/opt/PhpStorm-139.1348/bin/inspect.sh}} but I faced with 1st problem:

[root@97c4dced25b8 PhpStorm-139.1348]# ./bin/inspect.sh
[    246]  ERROR - nse.impl.GeneralLicenseManager - No valid license found
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:115)
at com.intellij.ide.a.g.bb.a(bb.java:107)
at com.intellij.idea.MainImpl$1.start(MainImpl.java:47)
at com.intellij.idea.StartupUtil.prepareAndStart(StartupUtil.java:105)
at com.intellij.idea.MainImpl.start(MainImpl.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.ide.plugins.PluginManager$2.run(PluginManager.java:91)
at java.lang.Thread.run(Thread.java:745)
[    249]  ERROR - nse.impl.GeneralLicenseManager - PhpStorm 8.0.3  Build #PS-139.1348
[    249]  ERROR - nse.impl.GeneralLicenseManager - JDK: 1.7.0_75
[    249]  ERROR - nse.impl.GeneralLicenseManager - VM: OpenJDK 64-Bit Server VM
[    249]  ERROR - nse.impl.GeneralLicenseManager - Vendor: Oracle Corporation

[    250]  ERROR - nse.impl.GeneralLicenseManager - OS: Linux


I've copied local trial key (generated on OS X) to container but it doesnt work....

CentOS 6.6. container

[root@97c4dced25b8 PhpStorm-139.1348]# md5sum ~/.WebIde80/eval/PhpStorm8.evaluation.key
ea01c6e4c33afe60e56b0af83f4c6beb  /root/.WebIde80/eval/PhpStorm8.evaluation.key



OS X 10.10.3

bash-3.2$ md5 ~/Library/Preferences/WebIde80/eval/PhpStorm8.evaluation.key
MD5 (/Users/ailyin/Library/Preferences/WebIde80/eval/PhpStorm8.evaluation.key) = ea01c6e4c33afe60e56b0af83f4c6beb




Any suggections how to set key without GUI?
1 comment
Comment actions Permalink

Looks similar to https://youtrack.jetbrains.com/issue/IDEA-117661. Please try asking the responsible developer for update directly in the ticket


0

Please sign in to leave a comment.