Koozali.org: home of the SME Server

Contribs.org Forums => Koozali SME Server 10.x Contribs => Topic started by: john56 on April 29, 2021, 02:11:53 PM

Title: issues installing Nextcloud
Post by: john56 on April 29, 2021, 02:11:53 PM
Hi, i'm not able to start service MariaDB. (SME10)
Any suggestion ?

I've seen that problem by installing Nextcloud Contrib

Code: [Select]
Apr 29 14:04:12 buzz esmith::event[10620]: fail: /service/mariadb: unable to change to service directory: file does not exist
Apr 29 14:04:21 buzz esmith::event[10620]: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Title: Re: to able to start Service MariaDB
Post by: sages on April 29, 2021, 02:22:56 PM
How are you trying to start the database?
service .... is superceded in centos 7 you need to use systemctl instead

what is the output from
systemctl status mariadb

Title: Re: to able to start Service MariaDB
Post by: john56 on April 29, 2021, 03:07:21 PM
See the (black) screenshot above
Title: Re: to able to start Service MariaDB
Post by: sages on April 29, 2021, 03:20:08 PM
You're welcome
Title: Re: to able to start Service MariaDB
Post by: TerryF on April 29, 2021, 10:01:52 PM
Going to need more info, your system, anything else installed and how you iunstalled nextcloud and from where?

I do have it installed and running on a sme10 RC1 never saw that error.

Having said that Nextcoud is yet to be released to contribs for sme10, it is still in /smetest and /smedev places you take your chances with and can expect things to break, remeber the wiki is for sme9, eg it details fws repo as part of install, sme10 does not use it.

Anything installed from /smetest is a watch and see, and /smedev is danger will robinsonb time

Good Luck
Title: Re: to able to start Service MariaDB
Post by: john56 on April 30, 2021, 08:39:05 AM
hi
i follow the install process using :

Quote
yum install smeserver-extrarepositories-remi-safe smeserver-extrarepositories-fws smeserver-extrarepositories-epel
signal-event yum-modify
yum install smeserver-nextcloud --enablerepo=smecontribs,epel,fws, smedev, smetest
signal-event webapps-update
signal-event nextcloud-update

I see other errors in server-manager like :
Quote
smeadmin : buzz.kerplouz.com
MySQL error : Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Software error:
Verifiez les parametres de connexion a MySQL.
Title: Re: to able to start Service MariaDB
Post by: ReetP on May 02, 2021, 03:27:45 PM
I don't think you need FWS at all. This is probably more like it (Be careful with smedev.....)

Note that NextCloud is extremely Alpha - it works happily once you have got it installed, but might be a bit awkward to install. We will pay a bit more attention to it once v10 is released.

Something like this should do it:

Code: [Select]
yum install smeserver-extrarepositories-remi-safe smeserver-extrarepositories-openfusion smeserver-extrarepositories-epel
Code: [Select]
yum install smeserver-nextcloud --enablerepo=smecontribs,epel,smetest,openfusion
Code: [Select]
signal-event nextcloud-update
Title: Re: to able to start Service MariaDB
Post by: john56 on May 02, 2021, 05:42:50 PM
Thanks

Code: [Select]
yum install smeserver-nextcloud --enablerepo=smecontribs,epel,smetest,openfusion
doesn't install the dependance nextcloud rpm so the install is incomplete.
Title: Re: to able to start Service MariaDB
Post by: ReetP on May 02, 2021, 06:49:23 PM
Post what is does so we can see. We cannot just guess.

On my v10 with Nextcloud I have no FWS or webapps.
Title: Re: to able to start Service MariaDB
Post by: john56 on May 02, 2021, 07:10:33 PM
Here is a screenshot but the subject was not for nextcloud at the beginning ;)
Title: Re: to able to start Service MariaDB
Post by: ReetP on May 02, 2021, 08:48:17 PM
Logs without context and history tell us nothing. You must be more accurate and detailed.

You must explain carefully what you have done. From the start. Go right back to the start and show each command and any errors.

Have you tried to reset and just do as I suggested (this is a test machine, right?)

Title: Re: to able to start Service MariaDB
Post by: TerryF on May 02, 2021, 10:48:53 PM
Has your system been migrated from a sme9.2 install? if yes please detail how..
Title: Re: to able to start Service MariaDB
Post by: john56 on May 03, 2021, 06:13:09 PM
yes update from SME9.2, backup from console during install.

I planned to use nextcloud to replace phpwebftp in order my users could access to their /home from samba.

See the screenshot under it during yum install
Title: Re: to able to start Service MariaDB
Post by: TerryF on May 03, 2021, 09:44:48 PM
Just for my own peace of mind,
1. removed nextcloud from my home server that has been migrated from sme9 to sme10. 
2. Created a new clean updated VM on my prox test box

Then proceded to instal nextcloud to both..on both systems SME admin user and SME user were able to login to nextcloud..

remember wiki is for sme 9.....

Following is at your own risk

Remove the install you did... # yum remove smeserver-nextcloud  nextcloud
I also removed the nextcloud mysql db  * important heres your chance to use a little mysql
just to make sure  # signal-event post-upgrade; signal-event reboot

Then Install with
# install smeserver-nextcloud --enablerepo=smecontribs,smetest,smedev,epel,openfusion
# signal-event webapps-update
# signal-event nextcloud-update
# signal-event post-upgrade; signal-event reboot

From a browser using local  ip of server or domain xyz\nextcloud login with sme admin and sme admin password

Can only say works for me

Having said all that, this is NOT what you detailed at the start


### Added - make sure to add the extra repos of openfusion and epel, see install commands
Title: Re: to able to start Service MariaDB
Post by: john56 on May 03, 2021, 11:22:35 PM
With smedev repo, it's ok. Without no.
Title: Re: to able to start Service MariaDB
Post by: TerryF on May 04, 2021, 01:44:27 AM
Please read what I wrote..to install right now, this will change when nextcloud is released, use the command line I have shown above..

Nextcloud is still in testing, if you install its all up to you..report any bugs in bugzilla, BUT, it does install, it does allow sme admin and users to login

Title: Re: to able to start Service MariaDB
Post by: TerryF on May 04, 2021, 01:48:12 AM
The warnings we are constantly making about using anything in the /smedev repo are always there, stuff is under development/migration/testing and may very well break your server, you use stuff from there at your own risk with the full knowledge of what might happen and the confidence you will be abl to get yourself out of the shite :-)
Title: Re: to able to start Service MariaDB
Post by: john56 on May 04, 2021, 01:50:43 AM
so, you tell me just to wait, is that right ?
Title: Re: to able to start Service MariaDB
Post by: TerryF on May 04, 2021, 02:11:22 AM
If you have a test box, install nextcloud and anything else NOW and test and report any issues in Bugzilla

If you only have your production box be very very careful, if you do install nextcloud now it is all on your head..as I said be confident you know how to get your system back to normal if things do not work out
Title: Re: to able to start Service MariaDB
Post by: john56 on May 04, 2021, 07:34:52 AM
Ok many thanks.
Title: Re: to able to start Service MariaDB
Post by: Mace on May 31, 2021, 09:54:07 AM
I got Nextcloud working on SME10 rc1 seemingly OK using TerryF's method on the previous page (thanks!), except that when I add a new user to SME thereafter, they don't show up in Nextcloud. Can anyone reproduce this?
Title: Re: to able to start Service MariaDB
Post by: TerryF on May 31, 2021, 10:39:50 AM
Confirm users created BEFORE nextcloud installation are able to login to nextcloud

Users created AFTER nextcloud installation are unable to login to nextcloud

Pls raise a bug against nextcloud
Title: Re: to able to start Service MariaDB
Post by: ReetP on May 31, 2021, 10:58:24 AM
Terry can you check the nextcloud log and also system log when creating & accessing?

Look for the nextcloud action scripts, and any errors.

Title: Re: to able to start Service MariaDB
Post by: Mace on June 01, 2021, 01:52:59 AM
Confirm users created BEFORE nextcloud installation are able to login to nextcloud

Users created AFTER nextcloud installation are unable to login to nextcloud

Pls raise a bug against nextcloud

Thank you for confirming. Bug submitted.
https://bugs.koozali.org/show_bug.cgi?id=11607
Title: Re: to able to start Service MariaDB
Post by: TerryF on June 01, 2021, 09:32:55 AM
added some triage to the bug

and thank you for lodging it, way to go, should be sorted soonish :-) I hope ...
Title: Re: issues installing Nextcloud
Post by: Jean-Philippe Pialasse on June 01, 2021, 03:25:09 PM
moved and renamed the topic to reflect the discussion
Title: Re: issues installing Nextcloud
Post by: TerryF on June 02, 2021, 04:54:20 AM
FIXED - See Bug for updated package, now a new user is able to login to nextcloud as needed..
Title: Re: issues installing Nextcloud
Post by: Mace on June 02, 2021, 06:49:16 AM
Awesome work SME team, thank you!
(https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/whatsapp/273/thumbs-up_1f44d.png)