Issue with DeveloperServices create-rpm-bundle.sh

We are setting up Developer Portal & during the process we are following below step

==

For an installation on a server without an Internet connection

Create the portal .tar.gz file by using the command: > ./create-rpm-bundle.sh That command downloads all the necessary files and them into a single .tar.gz file.

==

During the execution it fails below exception.

ls: cannot access /tmp/portal/devportal-binary-bundle-Redhat-6-x86_64/devportal-webroot/profiles/apigee/libraries/modernizr/modernizr-*.js: No such file or directory % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 112 786 112 786 0 0 6315 0 --:--:-- --:--:-- --:--:-- 11909 Downloading library dependencies... ------------------------------------------------------------- Exiting, ERROR! The actions of this installer are written to a log here: /u01/app/installers/DeveloperServices-4.15.04.01/install.log If you need support during this installation, please include the logfile in your communication. Here are the last few lines of the logfile for your convenience: ------------------------------------------------------------- cp: cannot stat `composer.json': No such file or directory sed: can't read composer.json: No such file or directory Composer could not find a composer.json file in /tmp/portal/devportal-binary-bundle-Redhat-6-x86_64/devportal-webroot/profiles/apigee/libraries/mgmt-api-php-sdk To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section mv: cannot stat `composer.json.bak': No such file or directory

==

We are using drush-6.x from below installation

https://github.com/drush-ops/drush/archive/6.x.zip

Did any one has similar issues?Please suggest.

-Vinay

0 3 264
3 REPLIES 3

is it a permission issue? just to be sure - you are running ./create-rpm-bundle.sh this from a instance with internet connection, right?

we are running as root user.We are running from the instance connected to internet.

Any one tested ./create-rpm-bundle.sh for DeveloperServices-4.15.04.01

Initial issue which I faced before the current issue which I reported.

Script has some issues(my opinion):

When we ran first time it failed with below as it expects the file as drush.zip & not as drush-6.x.zip file.

==

unzip: cannot find or open /tmp/drush.zip, /tmp/drush.zip.zip or /tmp/drush.zip.ZIP.

==

There is a bug in the script as it downloads with the version (drush-6.x) and unzips with drush.zip as below. You may have to swap the move & then untar.

==

# Begin bundling Drush. Do this regardless of whether Drush exists locally.

# Download & extract drush

curl -Lo $temp_dir/drush.zip https://github.com/drush-ops/drush/archive/${drush_version}.x.zip >> $logfile 2>&1

mkdir -p $temp_dir/drush-temp >> $logfile 2>&1

unzip -o -d $temp_dir/drush-temp $temp_dir/drush.zip >> $logfile 2>&1

# Rename Drush directory to be versionless.

mv $temp_dir/drush-temp/drush-${drush_version}.x $temp_dir/drush-temp/drush >> $logfile 2>&1

==

Hello Vinay,

I have tested this and those commands work correctly, the curl call brings down the file and names it drush.zip.

Can you try this command? It should download a drush.zip file in your current directory:

curl -Lo ./drush.zip https://github.com/drush-ops/drush/archive/6.x.zip 
If this does not work, you will need to get cURL/HTTPS working on the system.