Problems with Tomcat 8 running as a service on Windows Server 2008 - windows-services

I'm facing this issue when running Tomcat 7 and 8 (64bits) on windows as a service.
This is the error I'm facing: (on /log/commons-daemon.log)
[2015-06-11 17:03:37] [info] [ 2744] Starting service...
[2015-06-11 17:03:37] [error] [ 2744] Failed creating java C:\Program Files (x86)\Java\jre1.8.0_45\bin\client\jvm.dll
[2015-06-11 17:03:37] [error] [ 2744] The system cannot find the path specified.
[2015-06-11 17:03:37] [error] [ 2744] ServiceStart returned 1
[2015-06-11 17:03:37] [error] [ 2744] The system cannot find the path specified.
[2015-06-11 17:03:37] [info] [ 2848] Run service finished.
[2015-06-11 17:03:37] [info] [ 2848] Commons Daemon procrun finished
It's weird since I can run the server on command line.
Environment varialbes JAVA_HOME and CATALINA_HOME are set correctly.

I found the solution, the problem is related with Java Virtual Machine, we need to install version x64 if Apache version is x64.
On the Apache Gui configuration, tomcat8w (folder apache-tomcat-8.0.23\bin)
That solved the problem of staring tomcat as a service.

Related

sbt compile error: java.nio.file.FileSystemException: /root: Read-only file system

I am working on a scala project that uses sbt 1.7.1
The project has its external dependencies like the database etc. that run in docker.
I'm not sure what started the issue exactly, but now when I try and go into sbt console I get this error:
[info] [launcher] getting org.scala-sbt sbt 1.7.1 (this may take some time)...
[error] [launcher] java.nio.file.FileSystemException: /root: Read-only file system
[error] [launcher] could not retrieve sbt 1.7.1
Earlier I was able to get into sbt console, but during compilation I got this error:
(I deleted the ~/.sbt folder to start over, that is when I can't even get into sbt console now)
sbt compile
[info] welcome to sbt 1.7.1 (Azul Systems, Inc. Java 11.0.10)
[info] loading settings for project app-backend-build from plugins.sbt ...
[info] loading project definition from /Users/username123/dev/git/project123/app-backend/project
[error] java.nio.file.FileSystemException: /root: Read-only file system
[error] at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
[error] at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
[error] at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
[error] at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:389)
[error] at java.base/java.nio.file.Files.createDirectory(Files.java:690)
[error] at java.base/java.nio.file.Files.createAndCheckIsDirectory(Files.java:797)
[error] at java.base/java.nio.file.Files.createDirectories(Files.java:783)
[error] at lmcoursier.internal.shaded.coursier.paths.Util.createDirectories(Util.java:81)
[error] at lmcoursier.internal.shaded.coursier.paths.CachePath.withStructureLock(CachePath.java:140)
[error] at lmcoursier.internal.shaded.coursier.cache.CacheLocks$.withStructureLock(CacheLocks.scala:20)
[error] at lmcoursier.internal.shaded.coursier.cache.CacheLocks$.withLockOr(CacheLocks.scala:37)
[error] at lmcoursier.internal.shaded.coursier.cache.internal.Downloader$Blocking$.remote(Downloader.scala:408)
[error] at lmcoursier.internal.shaded.coursier.cache.internal.Downloader.$anonfun$remote$5(Downloader.scala:510)
[error] at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659)
[error] at scala.util.Success.$anonfun$map$1(Try.scala:255)
[error] at scala.util.Success.map(Try.scala:213)
[error] at scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
[error] at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
[error] at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
[error] at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[error] at java.base/java.lang.Thread.run(Thread.java:834)
[error] (update) java.nio.file.FileSystemException: /root: Read-only file system
[warn] Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? (default: r)
If I go into a different folder, and try and create a new sbt project I get the same error:
sbt new scala/scala-seed.g8
I am using sdkman for my sbt installation, I deleted the .sbt folder and uninstalled sbt 1.7.1 and then re-installed it...that didn't help.
It seems as though some process has locked something related to sbt or coursier cache?
My project does have multiple modules, i'm not sure what root means in the error message.. the root project or some root folder that coursier might be using?
My sbt project was running fine earlier today, and now I cannot do anything related to scala on my system that uses sbt.
My system is running OSX, 13.0.1 (22A400).
Java home: ~/.jabba/jdk/zulu#1.11.0/Contents/Home
I just tried deleting the coursier cache and no change:
rm -Rf ~/Library/Caches/Coursier
That sbt console would run and compile the project.

How to debug SOLR startup freezing

I'm running SOLR (in a docker container, with a volume). Sometimes, when I restart the container, SOLR starts up but gets stuck at a certain point. The server (on port 8983) is not responsive, and there are no errors:
❯ docker logs -f solr
Starting Solr 7.7.1
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2022-11-10 20:16:56.299 INFO (main) [ ] o.e.j.u.log Logging initialized #4965ms to org.eclipse.jetty.util.log.Slf4jLog
2022-11-10 20:16:56.947 WARN (main) [ ] o.e.j.s.AbstractConnector Ignoring deprecated socket close linger time
2022-11-10 20:16:56.987 INFO (main) [ ] o.e.j.s.Server jetty-9.4.14.v20181114; built: 2018-11-14T21:20:31.478Z; git: c4550056e785fb5665914545889f21dc136ad9e6; jvm 11.0.3+7
2022-11-10 20:16:57.086 INFO (main) [ ] o.e.j.d.p.ScanningAppProvider Deployment monitor [file:///opt/solr/server/contexts/] at interval 0
Starting Solr 7.7.1
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Any ideas on how I can debug this further? I've set log level to INFO.

LINKERD: Unable to build docker image from linkerd

https://github.com/linkerd/linkerd#docker
From the instruction on Readme, I have executed the following commands,
; linkerd/docker ;namerd/docker
I get the following exception,
[info] Done packaging.
[trace] Stack trace suppressed: run last linkerd/bundle:docker for the full output.
[error] (linkerd/bundle:docker) java.io.IOException: Cannot run program "docker" (in directory "/home/shaikk/linkerd/linkerd/target/docker"): error=2, No such file or directory
[error] Total time: 284 s, completed Mar 6, 2017 9:13:49 AM
I think the No such file or directory error message is referring to the docker binary itself. Can you try running which docker to see if it's in your path? If it's not there, you can install it using the instructions here: https://docs.docker.com/engine/installation/#platform-support-matrix

Elastic Beanstalk /ondeck not updating /current and still showing 404?

I currently have a Rails 4.0.3 repo with Ruby 2.1.1. I am trying to deploy this on my EB environment. Everything seems to be working fine, no errors are thrown when I run:
eb start
git aws.push
But If I SSH into my server, I see that my /var/app/ondeck has not updated with my git repository even if I run git aws.push --environment myenv.
I see the current git revision hash on my dashboard when I aws.push, but the repo code never gets to the server...
The other issue is that fact that my /var/app/current is still empty. Any ideas?
After running a git aws.push, the only thing that gets logged is:
2014-04-02 05:45:02,567 [INFO] (5874 MainThread) [clearStaleLogPublishingRecords.py-38] [root clearStaleLogPublishingRecords main] Clearing stale log publish records publish log task with batch id ef7dd76a-ba29-11e3-bf20-12313913dae2
2014-04-02 05:45:02,568 [INFO] (5874 MainThread) [clearStaleLogPublishingRecords.py-48] [root clearStaleLogPublishingRecords main] Successfully cleared stale log publishing records
2014-04-02 05:50:01,874 [INFO] (5887 MainThread) [publishLogs.py-61] [root publishLogs main] Starting publish log task with batch id a1e453b6-ba2a-11e3-86ba-12313913dae2
2014-04-02 05:50:01,991 [INFO] (5887 MainThread) [publishLogs.py-86] [root publishLogs main] Log publication is disabled
After running eb update nothing gets put to the logs.
These also help describe the issue:
https://forums.aws.amazon.com/thread.jspa?messageID=336101
https://forums.aws.amazon.com/thread.jspa?messageID=357003
However, I have the latest command line eb, and have tried detaching the HEAD from the git repo and then checking out the master and pushing again, still no luck :(
Also tried "upload and deploy" a zip version from the control panel, nothing got updated.
2014-04-02 08:12:22,185 [ERROR] (1895 MainThread) [directoryHooksExecutor.py-34] [root directoryHooksExecutor error] Script failed with returncode 1
2014-04-02 08:12:22,246 [INFO] (1872 MainThread) [command.py-130] [root command execute] Command returned: (code: 1, stdout: Error occurred during build: Command hooks failed
, stderr: None)
2014-04-02 08:12:22,248 [DEBUG] (1872 MainThread) [commandWrapper.py-60] [root commandWrapper main] Command result: {'status': 'FAILURE', 'results': [{'status': 'FAILURE', 'config_sets': ['Infra-EmbeddedPreBuild', 'Hook-PreAppDeploy', 'Infra-EmbeddedPostBuild'], 'returncode': 1, 'events': [], 'msg': 'Error occurred during build: Command hooks failed\n'}], 'api_version': '1.0'}
I switched to a Ruby 2.0 running Rails 4.0.3 on the oregon datacenter (west-2), and it seems to be pushing fine. I do think it had something to do with a hook failing. For instance, if you have additional hooks or commands that require GIT, and git isn't installed on the server, it will fail silently or scream... That seems to have been what was going on here.

Sencha Architect 3 Android Simulation failed

I just want to look at sencha architect 3 and created the Touch 2.3 project "locations". Starting Web and simulation in iOS works great, but native Android build failed:
[INF] -before-native-package:
[INF]
[INF] -native-package-mobile:
[INF] [echo] Running default mobile packager config.
[INF] [echo]
[INF] [echo] Processing Mobile Packager config file
[INF] [echo] config: /Applications/XAMPP/xamppfiles/htdocs/MyApp/packager.json
[INF] [echo] inputPath: /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native/MyApp
[INF] [echo] outputPath: /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json
[INF] [echo] Running mobile packager action run on file /Applications/XAMPP/xamppfiles/htdocs/MyApp/packager.temp.json
[ERR]
Error: Project folder '/Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json' is not empty. Please consider using 'android update' instead.
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/src/com/mycompany/myAppID
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/src/com/mycompany/myAppID/STActivity.java
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/res
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/bin
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/libs
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/res/values
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/res/values/strings.xml
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/res/layout
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/res/layout/main.xml
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/AndroidManifest.xml
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/build.xml
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/proguard-project.txt
sh: ant: command not found
"/Users/markus/android-sdks/tools/android" create project --target android-7 --name MyApp --activity STActivity --path "/Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/" --package com.mycompany.myAppID
Could not run ant with error: 32512
Failed to package application
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExProcess: stbuild exited with non-zero code : 7
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Nati
[ERR] veMethodAccessorImpl.java:57)
[ERR]
[ERR] Total time: 7 seconds
[ERR] The following error occurred while executing this line:
/Applications/XAMPP/xamppfiles/htdocs/MyApp/.sencha/app/build-impl.xml:422: The following error occurred while executing this line:
/Applications/XAMPP/xamppfiles/htdocs/MyApp/.sencha/app/packager-impl.xml:108: The following error occurred while executing this line:
/Applications/XAMPP/xamppfiles/htdocs/MyApp/.sencha/app/packager-impl.xml:98: The following error occurred while executing this line:
/Applications/XAMPP/xamppfiles/htdocs/MyApp/.sencha/app/packager-impl.xml:7: com.sencha.exceptions.ExProcess: stbuild exited with non-zero code : 7
Run a
$ sudo ln -s /usr/local/bin/ant /usr/bin/ant
this will make Architect 3 detect your installation.
This is if you are using a Mac and installed your ant using homebrew
Ant is not installed.
I had the same issue. I assume you're on a Mac since you say iOS worked. Apparently in Mavericks, ant is no longer included by default.
you can install it with homebrew easily enough.
However, that still does not work for me. Here's a help thread I started on the sencha architect forums: http://www.sencha.com/forum/showthread.php?277937-Simple-attempt-at-an-android-build&p=1017898#post1017898

Resources