Setting up SugarDockerized on Windows

I am settting up SugarDockerized on Windows 11. I have installed Docker Desktop and successfully run `./utilities/stack.sh 14 up` in the sugardockerized folder.

I ran this with a backup downloaded from sugar insight 

./utilities/restorefromfile.sh ~/Downloads/xyz.sugarondemand.com.1420.1746006357.9a72e4e8b2f9480ba25edc649b0529b77c8d4b37.tar.gz
and got a message that said, "the input device is not a TTY.  If you are using mintty, try prefixing the command with 'winpty'"

So I ran 

winpty bash ./utilities/restorefromfile.sh ~/Downloads/xyz.sugarondemand.com.1420.1746006357.9a72e4e8b2f9480ba25edc649b0529b77c8d4b37.tar.gz

That seemed to work, but eventually errored out with this:

Starting restore at Wed Apr 30 17:01:05 EDT 2025
Cleaning up previous install (./data/app/sugar) if any, please wait...
Decompressing C:/Users/username/Downloads/xyz.sugarondemand.com.1420.1746006357.9a72e4e8b2f9480ba25edc649b0529b77c8d4b37.tar.gz, please wait...
tar: Cannot connect to C: resolve failed
mv: cannot stat './data/app/tmp/*.sql': No such file or directory
mv: cannot stat './data/app/tmp/sugar*': No such file or directory
"./data/app/tmp/sugar" cannot be empty

Is there something I need to do differently? 

Parents
  •  Hi  ,

    All of those commands were linux/macos/unix tested but not on Windows. I'm not familiar with winpty bash but seems like an awesome tool.

    It seems to me that untar: "tar -xf $1 -C $TEMP_FOLDER --strip-components=1" failed to extract to the $TEMP_FOLDER, in this case ./data/app/tmp

    the tar command might not be entirely supported by winpty, try to execute it on manually and see the output

    Rafael Fernandes

    Staff Developer Advocate | SugarCRM

Reply
  •  Hi  ,

    All of those commands were linux/macos/unix tested but not on Windows. I'm not familiar with winpty bash but seems like an awesome tool.

    It seems to me that untar: "tar -xf $1 -C $TEMP_FOLDER --strip-components=1" failed to extract to the $TEMP_FOLDER, in this case ./data/app/tmp

    the tar command might not be entirely supported by winpty, try to execute it on manually and see the output

    Rafael Fernandes

    Staff Developer Advocate | SugarCRM

Children
  • Thank you, Rafael.

    I ran `mkdir -p ./data/app/tmp` and then `tar -xf "/c/Users/username/Downloads/xyz.sugarondemand.com.1420.1746006357.9a72e4e8b2f9480ba25edc649b0529b77c8d4b37.tar.gz" -C "./data/app/tmp" --strip-components=1`.

    That extracted all the files to `./data/app/tmp`.

    MINGW64 ~/desktop/sugardockerized/data/app/tmp (master)
    $ ls ./data/app/tmp
    sugar1420/ sugar1420.sql sugar1420_triggers.sql

    So I tried re-running `winpty bash ./utilities/restorefromfile.sh ~/Downloads/xyz.sugarondemand.com.1420.1746006357.9a72e4e8b2f9480ba25edc649b0529b77c8d4b37.tar.gz`, but I got the same response as before and `/data/app/tmp` now only has an empty sql directory.

    What should I do after extracting the data to `/data/app/tmp` to continue the process?