Help installing nextant

I’m trying to get Nextant to work.
I follow the instructions given in this tutorial “https://github.com/nextcloud/nextant/wiki”. I follow the thread “[Adviced] How to install Solr as a Service. (small and medium organization)”.
I get to the point "ubuntu@nextcloud:~$ sudo /etc/init.d/solr start"
This command results in:
Port 8983 is already being used by another process (pid: 9890)
Please choose a different port using the -p option.

I did contact the maintainer and received a link to explore. Have a look here: http://unix.stackexchange.com/questions/106561/finding-the-pid-of-the-process-using-a-specific-port#106562.

Unfortunately, this link does not really help. It is far beyond my capabilities.

Is there any further help from the community which is hopefully0 on a beginners level?

Thank you

I think that can happen if some other service is already running on that port. I’ve also seen it where I had one package installed and running on a certain port, then switched packages but wanted to use the same port. Even though I uninstalled the old package, I needed to shut down the old service or reboot before i could start the new service on the same port.
So try rebooting or see if you already have solr running.

Thanks a lot linucksrox!
You were right! Solr was running and working.

Solr process 9890 running on port 8983
{
“solr_home”:"/var/solr/data",
“version”:“6.4.2 34a975ca3d4bd7fa121340e5bcbf165929e0542f - ishan - 2017-03-01 23:30:23”,
“startTime”:“2017-03-23T09:24:59.978Z”,
“uptime”:“0 days, 10 hours, 30 minutes, 35 seconds”,
“memory”:“36.8 MB (%7.5) of 490.7 MB”}

I am at a complete loss though with this instruction

Optionnaly, you will need a remote access to the webadmin of your Solr; and you might want it to be behind some kind of authentication. We will generate a htpasswd file to store your login and password:

$ sudo htpasswd -c /etc/apache2/htpasswd-solr admin

And use mod_proxy and mod_proxy_http to display the webadmin at the same address than your Nextcloud like https://your.cloud/solr/. So edit /etc/apache2/sites-enabled/your-current-cloud.conf and add this to your current configuration (inside the VirtualHost: ):…

I don’t see any corresponding folder in my Nextcloud Box installation - even though this are only placeholders.

How can I implement a password (there is none at the moment), and how do i get access to my solr webadmin??
Finally i discovered that Nextant created an item under the administration interface “additional adjustments” (roughly translated from German)

Thanks for any hints and help

Accessing the Solr interface is totally optional, but nice if you want to check the status or make adjustments.

I just ran through this configuration and got things working. Here’s how I would describe the procedure:

  1. Set up solr authentication by creating a password for the user admin (or you could use any username you want), by running
    sudo htpasswd -c /etc/apache2/htpasswd-solr admin

  2. Enable the two Apache modules (proxy_http depends on proxy, so enabling proxy_http automatically enables proxy in a single step) like this:
    sudo a2enmod proxy_http

  3. Modify your current Apache config file by looking at what you have in /etc/apache2/sites-enabled, then run
    sudo nano /etc/apache2/sites-enabled/cloud.domain.com.conf

and add this inside of (if you have two blocks, add it to the 443 block)
> # Solr

ProxyPass /solr/ http://localhost:8983/solr/
ProxyPassReverse /solr/ http://localhost:8983/solr/
<Location /solr/>
  AuthType Basic
  AuthName "solr"
  AuthUserFile /etc/apache2/htpasswd-solr
  Require valid-user
</Location>
  1. Run
    sudo service apache2 restart

I noticed I needed to include the trailing / in the url for this to work, so instead of https://cloud.domain.com/solr I had to use https://cloud.domain.com/solr/

Good idea to come here for a quicker answer as i was stuck in the plane all day long to join the rest of the Nextcloud team for the Hack Week.

Linucksrox is right, you won’t need the web interface of Solr.

We have released an automatic nextant script, it requires a clean install to use.

You might want to have a look at it here.

1 Like

Thank you very nuch indeed linucksrox!
This gives me quite some food for thought and deed for the coming weekend.
I will try.

i have add an password for the admin of solr backend.
It´s better for security reason.

Woulld you please describe how to get a “clean install” if everything is still - wrong - running?

Thanks

Hi @hustenfrei sorry for the delay, my computer decided to die last week, and i hadn’t had the time to make an autopsy or fix it.

When i say it requires a clean install to use, my workflow suggestion is to install Nextant on a new nextcloud instance since it will be a smoother process to analyse and process files, also the script has been developed to work on a new instance.

This scripts are still missing idempotence.
So if you run it on a failed install it won’t work.

Maybe if i find a window i could work on that.
If you need any support please let me know.

Cheers!

1 Like

Hi,
after much tinkering i have decided to have “a clean install” for my Nextcloud box.
The box works fine, therefore i want Nextant urgently
I had a look here and found out that my knowledge about scripts and how to use them is much too feeble.
A few questions

  1. How do i get the script on my Nextcloud system? With PuTTY?
  2. Do i need vi or vim?
  3. Is the script valid for the new Nextcloud image found here?
    The answer to this questions might be obvious to you, but for me they are major obstacles.

Therefore a little help is much appreciated - sometimes one only needs a hint.
Thank you

Hi,
after much tinkering i have decided to have “a clean install” for my
Nextcloud box.

Sounds good.

The box works fine, therefore i want Nextant urgently
I had a look
here and
found out that my knowledge about scripts and how to use them is much
too feeble.

Make the installation running the script that will avoid errors and issues when running the nextant script. Or follow the script manually with your environment variables.

A few questions

  1. How do i get the script on my Nextcloud system? With PuTTY?

Simple and plain copy paste.

  1. Do i need vi or vim?
    I’d you need to make adjustments yes.
    I’ll go for nano
  1. Is the script valid for the new Nextcloud image found
    here?

The install script should install the latest stable release. Again I’ll suggest you use that.

The answer to this questions might be obvious to you, but for me they
are major obstacles.

Therefore a little help is much appreciated - sometimes one only needs
a hint.

Sure, we all need it sometimes.

This was the fastet reply ever!
Thank you very much indeed.
I will see what i can do with it. Sounds encouraging.

This was the fastet reply ever!
Thank you very much indeed.
I will see what i can do with it. Sounds encouraging.

Answering in the moment sometimes its possible.
Sometimes it is not. :wink:

Could it be that this script will never run on a nextcloud install based on the images provided here?

As soon as I’m logged into my Nextcloud system, the system displays this message

It’s a brave new world here in Snappy Ubuntu Core! This machine
does not use apt-get or deb packages. Please see 'snap --help’
for app installation and transactional updates.

At least I get no progress working step by step through the script. I always get thrown out with

exit 1; fi

???

Could it be that this script will never run on a nextcloud install
based on the images provided
here?

As soon as I’m logged into my Nextcloud system, the system displays
this message

It’s a brave new world here in Snappy Ubuntu Core! This machine
does not use apt-get or deb packages. Please see 'snap --help’
for app installation and transactional updates.

At least I get no progress working step by step through the script. I
always get thrown out with

exit 1; fi

???

Ohhhh!

You are running arm, sorry this scripts are for x86/x86_64 systems, virtualized, live, vps, etc.

The RPi are not a compatible arch.

Thank you! Then i must try to find other sources of help.
Thanks

I might be wrong but i guess Solr the engine behind Nextant is not available for Arm.

You might setup wanna use another installation approach. Like an external Solr engine (see the Nextant wiki). Since I believe RPI won’t pull it out.

Snap is a heavy customized OS, I believe that its more relatable to mobile devices than to PC.

Cheers!