[Solved] Upgrade 8.6.1 to 8.8 > basic question > re-set permissions + (hijack) install problems

Hello,

Six months back I installed SuiteCRM. I would like to perform the upgrade from 8.6.1 to 8.8. In the instructions it references the task ‘re-set permissions’. Ok. Which permissions? In the install doc I see Step 2.3 Set Permissions

cd to Suite install directory, for me /var/www/html/suitecrm
then run the permissions

find . -type d -not -perm 2755 -exec chmod 2755 {} \;
find . -type f -not -perm 0644 -exec chmod 0644 {} \;
find . ! -user www-data -exec chown www-data:www-data {} \;
chmod +x bin/console

Are these the permissions I need to re-apply?

My setup

  • Ubuntu 22.04 on Proxmox
  • SuiteCRM 8.6.1

Yeah, you need to run those 4 commands again since the new package will override your set file permissions and ownership.

Thanks! I was concerned there were other rights to re-set and I was not looking in the correct area.

Let us know if you are able to upgrade your instance successfully. :smile:

I have seen two topics recently where users were not able to upgrade it.

Yes, I seem to be having issues

when I run

./bin/console suitecrm:app:upgrade -t SuiteCRM-8.8.0
  • the initial backup happens
  • Ignore the ‘Permission Denied’ line 115 on the ./bin/console suitecrm:app:upgrade -t SuiteCRM-8.8.0 section> I was testing w/o sudo
  • I also tried chmod +x on the SuiteCRM-8-8-0.zip file, it does not appear to need that> same error with/without setting it executable
  • I also tried renaming the file to SuiteCRM-8.8.0.zip
  • you do not need the .zip at the end, it dies with a ‘cannot find blahblah.zip.zip’
  • I am downloading the full zip file, is there an ‘upgrade only’ zip file somewhere?
superduper@crm20:/var/www/html/suitecrm/tmp/package/upgrade$ ls -l
total 0
superduper@crm20:/var/www/html/suitecrm/tmp/package/upgrade$ sudo wget https://suitecrm.com/download/165/suite88/565090/suitecrm-8-8-0.zip

DELETED TRNSFR INFO

Length: 106102131 (101M) [application/octet-stream]
Saving to: ‘suitecrm-8-8-0.zip’

suitecrm-8-8-0.zip  100%[===================>] 101.19M  7.07MB/s    in 14s

2025-02-12 22:31:21 (7.06 MB/s) - ‘suitecrm-8-8-0.zip’ saved [106102131/106102131]

superduper@crm20:/var/www/html/suitecrm/tmp/package/upgrade$ ls -l
total 103616
-rw-r--r-- 1 root www-data 106102131 Jan 30 08:26 suitecrm-8-8-0.zip
superduper@crm20:/var/www/html/suitecrm/tmp/package/upgrade$ cd ../../..
superduper@crm20:/var/www/html/suitecrm$ ./bin/console suitecrm:app:upgrade -t SuiteCRM-8.8.0
PHP Deprecated:  Return type of Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suitecrm/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php on line 134
PHP Deprecated:  Return type of Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suitecrm/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php on line 144
PHP Deprecated:  Return type of Symfony\Component\HttpFoundation\Session\Session::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suitecrm/vendor/symfony/http-foundation/Session/Session.php on line 131
PHP Deprecated:  Return type of Symfony\Component\HttpFoundation\Session\Session::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suitecrm/vendor/symfony/http-foundation/Session/Session.php on line 141

SuiteCRM Upgrade
============

Running: backup-original-modules

In StreamHandler.php line 115:

  The stream or file "/var/www/html/suitecrm/logs/prod/prod.log" could not be
   opened in append mode: Failed to open stream: Permission denied


suitecrm:app:upgrade [-t|--target-version TARGET-VERSION]

superduper@crm20:/var/www/html/suitecrm$ sudo ./bin/console suitecrm:app:upgrade -t SuiteCRM-8.8.0
PHP Deprecated:  Return type of Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suitecrm/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php on line 134
PHP Deprecated:  Return type of Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suitecrm/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php on line 144
PHP Deprecated:  Return type of Symfony\Component\HttpFoundation\Session\Session::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suitecrm/vendor/symfony/http-foundation/Session/Session.php on line 131
PHP Deprecated:  Return type of Symfony\Component\HttpFoundation\Session\Session::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suitecrm/vendor/symfony/http-foundation/Session/Session.php on line 141

SuiteCRM Upgrade
============

Running: backup-original-modules
step: backup-original-modules | status: done
Successfully backed up files
Running: check-package
step: check-package | status: failed
Package not found in path: /var/www/html/suitecrm/tmp/package/upgrade/SuiteCRM-8.8.0.zip
superduper@crm20:/var/www/html/suitecrm$

Here’s a slightly cleaner version without all my futzing around

superduper@crm20:~$ cd /var/www/html/suitecrm/tmp/package/upgrade/
superduper@crm20:/var/www/html/suitecrm/tmp/package/upgrade$ ls
SuiteCRM-8.8.0-backup  suitecrm-8-8-0.zip
superduper@crm20:/var/www/html/suitecrm/tmp/package/upgrade$ ls -l
total 103620
drwxr-sr-x 3 root www-data      4096 Feb 12 22:32 SuiteCRM-8.8.0-backup
-rw-r--r-- 1 root www-data 106102131 Jan 30 08:26 suitecrm-8-8-0.zip
superduper@crm20:/var/www/html/suitecrm/tmp/package/upgrade$ cd ../../..
superduper@crm20:/var/www/html/suitecrm$ sudo ./bin/console suitecrm:app:upgrade -t SuiteCRM-8.8.0
[sudo] password for superduper:
PHP Deprecated:  Return type of Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suitecrm/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php on line 134
PHP Deprecated:  Return type of Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suitecrm/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php on line 144
PHP Deprecated:  Return type of Symfony\Component\HttpFoundation\Session\Session::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suitecrm/vendor/symfony/http-foundation/Session/Session.php on line 131
PHP Deprecated:  Return type of Symfony\Component\HttpFoundation\Session\Session::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suitecrm/vendor/symfony/http-foundation/Session/Session.php on line 141

SuiteCRM Upgrade
============

Running: backup-original-modules
step: backup-original-modules | status: done
Successfully backed up files
Running: check-package
step: check-package | status: failed
Package not found in path: /var/www/html/suitecrm/tmp/package/upgrade/SuiteCRM-8.8.0.zip
superduper@crm20:/var/www/html/suitecrm$

I do not think that we have such upgrade file.


Did you upload zip or unzip file at /tmp/package/upgrade folder?


No, I did not unzip any files in the upgrade folder. I am following

instructions.

My command is

sudo ./bin/console suitecrm:app:upgrade -t SuiteCRM-8.8.0

from the /var/www/html/suitecrm directory

My futzing around was addressing

  • should it be SuiteCRM-8.8.0 or SuiteCRM-8-8-0 (zipped file reference)
  • other file name/path type errors

Here is my suggestion:

  1. run chmod and chown command on your downloaded zip file after you move it to that folder.

  2. Use mv command to change the name to a simpler form.

For example,

mv SuiteCRM-8.8.0 suitecrm

Then run,

sudo ./bin/console suitecrm:app:upgrade -t suitecrm

1 Like

Thanks, that fixed it :smiley:

For others…
Do your prep work

  1. on Proxmox/VMware? snapshot the server before changes
  2. manually backup your suitecrm directory and sub-directories
  3. run a mysqldump of the db

Now you can start the upgrade

  1. follow the posted instructions, my slight changes at Step 2.2 included
  2. download the file directly to the tmp/package/upgrade directory
  3. sudo wget http://blahblah/suitecrm-8-8-0.zip
  4. sudo mv suitecrm-8-8-0.zip suitecrm.zip
  5. sudo chown www-data suitecrm.zip
  6. sudo chmod 777 suitecrm.zip
  7. cd /var/www/html/suitecrm
  8. resume Step 2.3 >>run install/update script in instructions
1 Like