Issue Setting up local 13 instance with SugarDockerized

Hello! I'm trying to spin up a local instance of my 13.3 Sugar environment using SugarDockerized and following this support article:
https://support.sugarcrm.com/resources/environments/development_environments/docker-development-environment/#Vagrant_Setup

During step 3, when I run the installfromzip.sh command, I get an error that the system was not installed properly.

This is the command I run:

./utilities/installfromzip.sh /Users/kaitlintomkosky/deployer/storage/sugar/installers/13.3.3/SugarEnt-13.3.0.zip

And this is the output:

Cleaning up previous install (./data/app/sugar) if any, please wait...
Unzipping /Users/kaitlintomkosky/deployer/storage/sugar/installers/13.3.3/SugarEnt-13.3.0.zip, please wait...
Done
Fixing Sugar permissions, please wait...
Done
Restarting sugar-web1 container, please wait...
Done
Restarting sugar-cron container, please wait...
Done
Deleting all previous redis values
Done
Deleting all previous Elasticsearch indices, please wait...
Done
bash: line 1: ./config_si.php: No such file or directory
The silent installer configuration has been deployed into the sugar instance
bash: line 1: ./config_override.php: No such file or directory
The config override configuration has been deployed into the sugar instance
Running installation, please wait...
curl: (22) The requested URL returned error: 404 Not Found

Installation completed!

You can now access the instance on your browser with http://docker.local/sugar
Executing script ./data/app/initsystem.php
The system is not installed successfully, please try again
Done

I see that all of the docker containers are created, but I noticed that sugar-permissions is not running. I also opened the /data/app/initsystem.php file and found this code that is returning the error message "The system is not installed successfully, please try again" above if the file include/entryPoint.php file does't exist. I checked and the include/entryPoint.php file does exist, so I'm not sure if this is a permissions issue.

Has anyone else run into an issue when running the installfromzip.sh command for a 13 instance?

Any ideas or input would be appreciated! Thanks so much!

Parents Reply Children
  • Thanks for sharing  .. happy coding!

    SugarCRM | Principal Developer Advocate

  •  I moved sugardocker and the zip file into a clean folder and the installfromzip.sh step worked properly, but now I'm running into similar errors when trying to run the restorefromfile.sh command:

    /utilities/restorefromfile.sh /Users/kaitlintomkosky/Documents/sugardev/moveinready.gz 

    Starting restore at Wed Apr  3 09:25:27 MDT 2024

    Cleaning up previous install (./data/app/sugar) if any, please wait...

    Decompressing /Users/kaitlintomkosky/Documents/sugardev/moveinready.gz, please wait...

    Restoring application files

    Application files restored

    Restoring database

    Database "sugar" dropped

    mysql: [Warning] Using a password on the command line interface can be insecure.

    mysql: [Warning] Using a password on the command line interface can be insecure.

    Database restored

    Dockerizing Backup config files...

    Cleaning up please wait...

    Fixing Sugar permissions, please wait...

    Done

    Restarting sugar-web1 container, please wait...

    Done

    Restarting sugar-cron container, please wait...

    Done

    Deleting all previous redis values

    Done

    Deleting all previous Elasticsearch indices, please wait...

    Done

    Repairing system

    Could not open input file: simpleRepair.php

    System repaired

    Performing Elasticsearch re-index

    bash: line 1: ./bin/sugarcrm: No such file or directory

    Restore completed!

    Restore finished at Wed Apr  3 09:28:47 MDT 2024