Issues starting SolrJ v 8.5.0 on Mac High Sierra (10.13.6) - solr

I am trying to run the solr server (latest version 8.5.0) on Mac High Sierra (10.13.6) and using the following getting started guide -https://lucene.apache.org/solr/guide/8_5/solr-tutorial.html
However, when I run the command
solr-8.5.0:$ ./bin/solr start -e cloud
Instead of the expected solr startup message, i get a following error message on colsole
ERROR: Failed to start Solr using command: <path-to-bin>start -cloud -p 8983 -s <path-to-bin> Exception : org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
Would greatly appreciate any feedback on this.

Related

react native azure dev ops pipeline build failure

React native build fails in pipeline on IOS step
We run ios in the azure devops pipeline with npx react-native run-ios --configuration Release
==============================================================================
Task : Command line
Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
Version : 2.201.1
Author : Microsoft Corporation
Help : https://learn.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
==============================================================================
Generating script.
Script contents:
npx react-native run-ios --configuration Release
========================== Starting Command Output ===========================
/bin/bash --noprofile --norc /Users/runner/work/_temp/ae9db986-f3a7-4f07-a6ba-d2250f5bfb5a.sh
info Found Xcode workspace "Navitus.xcworkspace"
The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10827 "kLSNoExecutableErr: The executable is missing" UserInfo={_LSLine=3878, _LSFunction=_LSOpenStuffCallLocal}
error Command failed: open /Applications/Xcode_13.2.1.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID EA2BA6D4-C48C-4C19-A440-403677562929
The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10827 "kLSNoExecutableErr: The executable is missing" UserInfo={_LSLine=3878, _LSFunction=_LSOpenStuffCallLocal}
.
Error: Command failed: open /Applications/Xcode_13.2.1.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID EA2BA6D4-C48C-4C19-A440-403677562929
The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10827 "kLSNoExecutableErr: The executable is missing" UserInfo={_LSLine=3878, _LSFunction=_LSOpenStuffCallLocal}
at checkExecSyncError (child_process.js:790:11)
at Object.execFileSync (child_process.js:827:15)
at runOnSimulator (/Users/runner/work/1/s/node_modules/#react-native-community/cli-platform-ios/build/commands/runIOS/index.js:208:28)
at Object.runIOS [as func] (/Users/runner/work/1/s/node_modules/#react-native-community/cli-platform-ios/build/commands/runIOS/index.js:121:12)
at Command.handleAction (/Users/runner/work/1/s/node_modules/react-native/node_modules/#react-native-community/cli/build/index.js:192:23)
at Command.listener (/Users/runner/work/1/s/node_modules/commander/index.js:315:8)
at Command.emit (events.js:400:28)
at Command.parseArgs (/Users/runner/work/1/s/node_modules/commander/index.js:651:12)
at Command.parse (/Users/runner/work/1/s/node_modules/commander/index.js:474:21)
at setupAndRun (/Users/runner/work/1/s/node_modules/react-native/node_modules/#react-native-community/cli/build/index.js:271:24)
info Run CLI with --verbose flag for more details.
##[error]Bash exited with code '1'.
Finishing: iOS Build
To resolve "kLSNoExecutableErr: The executable is missing", you can try the following workarounds according to dsame:
retry:
steps:
- name: Open Simulator app
run: |
while ! open -Fn /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer/Applications/Simulator.app; do
echo "Retry"
done
echo "Success"
Update launch database:
steps:
- name: Open Simulator app
run: |
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -f /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer/Applications/Simulator.app
open -Fn /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer/Applications/Simulator.app
Reference: Launch Services database problems: correcting and rebuilding

Appium : Failed to open the application and throwing error Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 1

Environment
Appium version : 1.6.2 (installed through terminal)
Last Appium version that did not exhibit the issue : 1.4.13 (Draco)
OS/version used to run Appium: Mac OS - OS X El Capitan Version : 10.11.6
Mobile platform/version under test: iPad Air iOS 10.1
Device : Simulator
Details
Xcode Version 8.1
Started appium (1.6.2) through Terminal
Ran the script , then I am getting the below error in the error logs
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 1 (WARNING: The server did not provide any stacktrace information)
Completely remove the carthage and Reinstall it again.

Starting jetty fail in ubuntu 14

I install the solr-jetty package in a Ubuntu 14 container running in a cloud9 workspace.
To install the package I run the following command:
sudo apt-get install solr-jetty
The installation doesn't return any error.
Then I try to start solr with the following command:
sudo service jetty start
But I receive the following error:
* Starting Jetty servlet engine. jetty
* Jetty servlet engine started, reachable on http://host-solr-3694477:8983/. jetty
...fail!
In the log file of jetty I get the following message:
failed setting default capabilities.
set_caps(CAPS) failed for user 'jetty'
Service exit with a return value of 4
How can I resolve this issue?
To resolve the problem I had to change the user that run jetty from jetty to root.
This can be configured by editing the /etc/default/jetty file.
I think it is not the more correct solution because it can add security problems. If anyone have a better solution ...
Docker user here, same problem, but - this worked for me (and this is as unadvised as changing the user to 'root', suggested above):
https://docs.docker.com/engine/reference/run/#/runtime-privilege-and-linux-capabilities
Set the following on your 'docker run' command when creating a container:
--privileged=true
I'm just using docker for development, so not overly concerned yet with the security implications of this.

Solr installation error

My server is digitalocean
Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-57-generic x86_64)
i installed solr what they explained in this url
https://www.digitalocean.com/community/tutorials/how-to-install-solr-5-2-1-on-ubuntu-14-04
root#dindudu:/opt# ls
installsolrservice.sh solr-5.2.1.tgz
root#dindudu:/opt# sudo bash ./installsolrservice.sh solr-5.2.1.tgz
Extracting solr-5.2.1.tgz to /opt
Creating /etc/init.d/solr script ...
System start/stop links for /etc/init.d/solr already exist.
Waiting to see Solr listening on port 8983 [/] Still not seeing Solr listening on 8983 after 30 seconds!
tail: cannot open ‘/var/solr/logs/solr.log’ for reading: No such file or directory
Found 1 Solr nodes:
Solr process 12410 from /var/solr/solr-8983.pid not found.
Service solr installed.
root#dindudu:/opt# sudo service solr status
Found 1 Solr nodes:
Solr process 12410 from /var/solr/solr-8983.pid not found.
root#dindudu:/opt# service solr start
Waiting to see Solr listening on port 8983 [/] Still not seeing Solr listening on 8983 after 30 seconds!
tail: cannot open ‘/var/solr/logs/solr.log’ for reading: No such file or directory
root#dindudu:/opt# /etc/init.d/solr status
Found 1 Solr nodes:
Solr process 12855 from /var/solr/solr-8983.pid not found.
How to fix this error
From the error message, it sounds like Solr was previously installed on the server. To fix this issue, Please list the processes running on the server. If you see any java process like one below then please kill those process.
root 12594 0.0 0.5 11979776 189300 ? Sl Nov07 0:57 /usr/bin/java -DSTOP.PORT=8079 -DSTOP.KEY=stopkey -jar start.jar
root 15635 0.0 0.5 12041440 184348 ? Sl Nov07 0:52 /usr/bin/java -DSTOP.PORT=8079 -DSTOP.KEY=stopkey -jar start.jar
Now start the solar using the command
service solr start
This fixes the issue

CKAN/Jetty/Solr: ERROR 500: org/apache/tomcat/util/descriptor/LocalResolver

I'm installing ckan onto ubuntu server 14.04 from source following this guide: http://docs.ckan.org/en/latest/maintaining/installing/install-from-source.html
The problem I'm encountering is that when I try to access solr locally I get the following error:
ERROR 500: org/apache/tomcat/util/descriptor/LocalResolver.
I've googled and tried changing libtomcatlib-6 to a previous version but the downgrade won't take (following this here apt-get says that the version wasn't found). Anyone have any ideas?
If you get the following error message when opening the Solr page in your browser:
java.lang.NoClassDefFoundError: org/apache/tomcat/util/descriptor/LocalResolver
Then run these commands:
sudo sh -c 'echo /usr/share/java/tomcat-coyote.jar >> /etc/jetty/start.config'
sudo service jetty restart
Then reload the page and you should see the Solr admin interface.
(I'm assuming you installed Solr with Jetty as per the source install instructions, i.e. sudo apt-get install solr-jetty openjdk-6-jdk. The NoClassDefFoundError is because of a problem with Ubuntu 14.04's jetty package.)
CKAN doesn't support Ubuntu 14.04 yet, there are a number of issues; https://github.com/ckan/ckan/labels/14.04 Install on Ubuntu 12.04. Having said that, there is a pull request here with working source install instructions for 14.04: https://github.com/ckan/ckan/pull/2020

Resources