question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java as service - error 1067 when starting

See original GitHub issue

I am trying to use winsw to start a jar as a Windows Service. For now, I’m trying on a simple Hello World Spring Boot Application. I manage to install the service but when I try to start the service I got an error 1067

image

My log file is not really usefull : 2020-12-08 14:51:08,235 INFO - Installing service ‘MyApp (MyApp)’… 2020-12-08 14:51:08,256 INFO - Service ‘MyApp (MyApp)’ was installed successfully. 2020-12-08 14:51:18,283 DEBUG - Starting WinSW in service mode. 2020-12-08 14:51:18,303 INFO - Starting java 2020-12-08 14:51:18,359 INFO - Started process java (22364). 2020-12-08 14:51:18,378 INFO - Service started successfully. 2020-12-08 14:51:18,381 WARN - Child process ‘java (22364)’ finished with code -1073741502.

All my files are on the same folder as follow : image

And my xml configuration is the following :

<service> <id>MyApp</id> <name>MyApp</name> <description>This runs Spring Boot as a Service.</description> <executable>java</executable> <arguments>-jar "%BASE%\MyApp.jar"</arguments> <logmode>rotate</logmode> <logpath>%BASE%\logs\</logpath> </service>

I try with the full path to the java.exe also but I have the same issue. Any idea what my be wrong in my configuration ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
FGautardcommented, Dec 9, 2020

Yes indeed, apparently that was the update KB4592449 for Windows 10.

0reactions
nxtncommented, Dec 9, 2020

Addresses a security vulnerability by preventing applications that run as a SYSTEM account from printing to “FILE:” ports. To address this issue in the future, make sure your applications or services run as a specific user or service account.

Who knows what the update has to do with this? Anyway thanks for following up on the issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Service will not start: error 1067: the process terminated ...
This problem usually happens because the license key has not been correctly deployed(license.txt file in the license folder). If service is not ...
Read more >
"Error 1067: The Process terminated unexpectedly." when ...
Error: 1067: The Process terminated unexpectedly. Diagnosing The Problem. In the Windows Event Viewer > Windows Logs > Application, you will see ...
Read more >
Ignition service will not start after upgrading Java / System ...
Ignition service will not start after upgrading Java / System error 1067 · Step 1: Confirm Java and Ignition versions · Step 2:...
Read more >
The Apache Tomcat Webserver cannot be started. Error 1067
the Java settings might be incorrectly set. Apache Tomcat service Error 1067; Click the Windows START menu>All Programs>Apache Tomcat 6.0>Configure Tomcat.
Read more >
Tomcat won't start, receiving error 1067 in a popup
When attempting to start apache tomcat from windows services, receive a popup that shows: Error 1067: The process terminated unexpectedly.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found