Koozali.org: home of the SME Server

issues installing Nextcloud

Offline john56

  • ***
  • 143
  • +0/-0
issues installing Nextcloud
« 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)
« Last Edit: June 01, 2021, 03:22:11 PM by Jean-Philippe Pialasse »

Offline sages

  • *
  • 182
  • +0/-0
    • http://www.sages.com.au
Re: to able to start Service MariaDB
« Reply #1 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

...

Offline john56

  • ***
  • 143
  • +0/-0
Re: to able to start Service MariaDB
« Reply #2 on: April 29, 2021, 03:07:21 PM »
See the (black) screenshot above

Offline sages

  • *
  • 182
  • +0/-0
    • http://www.sages.com.au
Re: to able to start Service MariaDB
« Reply #3 on: April 29, 2021, 03:20:08 PM »
You're welcome
...

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: to able to start Service MariaDB
« Reply #4 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
--
qui scribit bis legit

Offline john56

  • ***
  • 143
  • +0/-0
Re: to able to start Service MariaDB
« Reply #5 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.

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: to able to start Service MariaDB
« Reply #6 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
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline john56

  • ***
  • 143
  • +0/-0
Re: to able to start Service MariaDB
« Reply #7 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.

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: to able to start Service MariaDB
« Reply #8 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.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline john56

  • ***
  • 143
  • +0/-0
Re: to able to start Service MariaDB
« Reply #9 on: May 02, 2021, 07:10:33 PM »
Here is a screenshot but the subject was not for nextcloud at the beginning ;)
« Last Edit: May 02, 2021, 07:12:45 PM by john56 »

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: to able to start Service MariaDB
« Reply #10 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?)

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: to able to start Service MariaDB
« Reply #11 on: May 02, 2021, 10:48:53 PM »
Has your system been migrated from a sme9.2 install? if yes please detail how..
--
qui scribit bis legit

Offline john56

  • ***
  • 143
  • +0/-0
Re: to able to start Service MariaDB
« Reply #12 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
« Last Edit: May 03, 2021, 06:59:31 PM by john56 »

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: to able to start Service MariaDB
« Reply #13 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
« Last Edit: May 03, 2021, 09:51:39 PM by TerryF »
--
qui scribit bis legit

Offline john56

  • ***
  • 143
  • +0/-0
Re: to able to start Service MariaDB
« Reply #14 on: May 03, 2021, 11:22:35 PM »
With smedev repo, it's ok. Without no.

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: to able to start Service MariaDB
« Reply #15 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

--
qui scribit bis legit

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: to able to start Service MariaDB
« Reply #16 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 :-)
--
qui scribit bis legit

Offline john56

  • ***
  • 143
  • +0/-0
Re: to able to start Service MariaDB
« Reply #17 on: May 04, 2021, 01:50:43 AM »
so, you tell me just to wait, is that right ?

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: to able to start Service MariaDB
« Reply #18 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
--
qui scribit bis legit

Offline john56

  • ***
  • 143
  • +0/-0
Re: to able to start Service MariaDB
« Reply #19 on: May 04, 2021, 07:34:52 AM »
Ok many thanks.

Offline Mace

  • **
  • 65
  • +0/-0
Re: to able to start Service MariaDB
« Reply #20 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?
« Last Edit: May 31, 2021, 10:34:55 AM by Mace68 »

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: to able to start Service MariaDB
« Reply #21 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
--
qui scribit bis legit

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: to able to start Service MariaDB
« Reply #22 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.

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Mace

  • **
  • 65
  • +0/-0
Re: to able to start Service MariaDB
« Reply #23 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

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: to able to start Service MariaDB
« Reply #24 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 ...
--
qui scribit bis legit

Offline Jean-Philippe Pialasse

  • *
  • 2,747
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: issues installing Nextcloud
« Reply #25 on: June 01, 2021, 03:25:09 PM »
moved and renamed the topic to reflect the discussion

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: issues installing Nextcloud
« Reply #26 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..
--
qui scribit bis legit

Offline Mace

  • **
  • 65
  • +0/-0
Re: issues installing Nextcloud
« Reply #27 on: June 02, 2021, 06:49:16 AM »
Awesome work SME team, thank you!