[contribteam] [Bug 12685] Install fails when attempting occ cmd at cli and no browser access

2024-05-16 Thread bugzilla-daemon--- via contribteam
https://bugs.koozali.org/show_bug.cgi?id=12685

Bug ID: 12685
   Summary: Install fails when attempting occ cmd at cli and no
browser access
Classification: Contribs
   Product: SME Contribs
   Version: 10.0
  Hardware: ---
OS: ---
Status: CONFIRMED
  Severity: normal
  Priority: P3
 Component: smeserver-nextcloud
  Assignee: te...@pialasse.com
  Reporter: tf...@yahoo.com.au
QA Contact: contribteam@lists.contribs.org
  Target Milestone: ---

see forum post https://forums.koozali.org/index.php/topic,55178.0.html

chat in Rocket JP suggested fix


/usr/bin/occ

#!/bin/bash
majversion=$((/usr/bin/grep -Eo "'version'.*[0-9]{2}\."
/usr/share/nextcloud/config/config.php 2>/dev/null || echo "26" )|/usr/bin/grep
-Eo "[0-9]{2}"|head -1)
memory=$(/sbin/e-smith/config getprop nextcloud memory_limit|| echo "1024M")
myphp=/usr/bin/php81
if [[ $majversion -le '24' ]]; then
  myphp=/usr/bin/php74
fi
/usr/sbin/runuser -u www -- $myphp -d memory_limit=$memory -d apc.enable_cli=1
/usr/share/nextcloud/occ "$@"

-- 
You are receiving this mail because:
You are the QA Contact for the bug.___
Mail for each SME Contribs bug report
To unsubscribe, e-mail contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 12685] Install fails when attempting occ cmd at cli and no browser access

2024-05-16 Thread bugzilla-daemon--- via contribteam
https://bugs.koozali.org/show_bug.cgi?id=12685

Jean-Philippe Pialasse  changed:

   What|Removed |Added

 Status|CONFIRMED   |RESOLVED
 Resolution|--- |FIXED

--- Comment #1 from Jean-Philippe Pialasse  ---

/usr/bin/plague-client build smeserver-nextcloud
smeserver-nextcloud-1_2_0-31_el7_sme contribs10
Package smeserver-nextcloud enqueued.  Job ID: 4259.

%changelog
* Thu May 16 2024 Jean-Philippe Pialasse  1.2.0-31.sme
- fix php version on initial install [SME: 12685]

-- 
You are receiving this mail because:
You are the QA Contact for the bug.___
Mail for each SME Contribs bug report
To unsubscribe, e-mail contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 12685] Install fails when attempting occ cmd at cli and no browser access

2024-05-16 Thread bugzilla-daemon--- via contribteam
https://bugs.koozali.org/show_bug.cgi?id=12685

Terry Fage  changed:

   What|Removed |Added

 Status|RESOLVED|VERIFIED

--- Comment #2 from Terry Fage  ---
Install from smetest

yum install smeserver-nextcloud --enablerepo=smecontribs,smetest

[root@sme10next ~]# yum install smeserver-nextcloud
--enablerepo=smecontribs,smetest
Loaded plugins: fastestmirror, post-transaction-actions, priorities, smeserver
Loading mirror speeds from cached hostfile
---snip
smecontribs
  | 3.1 kB  00:00:00
smetest
  | 2.9 kB  00:00:00
(1/3): smecontribs/group_gz
  | 6.1 kB  00:00:00
(2/3): smetest/primary_db  
  | 192 kB  00:00:00
(3/3): smecontribs/primary_db  
  | 585 kB  00:00:00
Resolving Dependencies
--> Running transaction check
---> Package smeserver-nextcloud.noarch 0:1.2.0-31.el7.sme will be installed
---snip
Dependencies Resolved

===
 Package   Arch  Version   
Repository  Size
===
Installing:
 smeserver-nextcloud   noarch   
1.2.0-31.el7.sme   smetest 53 k
Installing for dependencies:
---snip
 nextcloud-src noarch   
26.0.11-1.el7.sme  smecontribs144 M
---snip
Total download size: 183 M
Installed size: 662 M
Is this ok [y/d/N]: y
Downloading packages:
---snip
Installed:
  smeserver-nextcloud.noarch 0:1.2.0-31.el7.sme

Dependency Installed:
---snip
  nextcloud-src.noarch 0:26.0.11-1.el7.sme   
oniguruma.x86_64 0:6.8.2-2.el7
  open-sans-fonts.noarch 0:1.10-1.el7
perl-Array-Compare.noarch 0:3.0.0-1.of.el7
---snip
Complete!

[root@sme10next ~]# signal-event nextcloud-update
[root@sme10next ~]# occ config:system:set default_phone_region --value=au
System config value default_phone_region set to string au

In a browser  mylocalip/nextcloud

Login page is dsiplayed and login is accepted

Dashboard is up and ready for work..

At Admin settings
Version
Nextcloud Hub 4 (26.0.11)

Update
Your version is up to date.

PHP
Version: 8.1.28
Memory limit: 512 MB
Max execution time: 3600
Upload max size: 4 GB

Extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json,
Reflection, SPL, session, standard, cgi-fcgi, bcmath, bz2, calendar, ctype,
curl, dom, enchant, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, imap,
intl, ldap, exif, mysqlnd, PDO, Phar, posix, shmop, SimpleXML, snmp, soap,
sockets, sodium, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml,
xmlwriter, xsl, mysqli, pdo_mysql, pdo_sqlite, xmlreader, xmlrpc, zip, apcu,
igbinary, imagick, inotify, msgpack, smbclient, redis, libsmbclient, Zend
OPcache

Database
Type: mysql
Version: 10.5.9

Verified

-- 
You are receiving this mail because:
You are the QA Contact for the bug.___
Mail for each SME Contribs bug report
To unsubscribe, e-mail contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/