Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

current Midas setup 3.4.1 #159

Open
miconsult opened this issue Nov 16, 2015 · 2 comments
Open

current Midas setup 3.4.1 #159

miconsult opened this issue Nov 16, 2015 · 2 comments

Comments

@miconsult
Copy link

Hello devs,

For a period of weeks I have tried to get this working, following the instructions given on git and within the read the docs, and previous docs to try and get a feel for the framework.

I have encountered that in its current form that the Midas platform is unable to be built from scratch using the current GIT distribution (and current docs). I have tried numerous Linux platforms for this.

Does anyone have this current version working, that was built from a scratch machine or VM?

I can share my script for setting it up. Would it be possible for one of the Devs to follow the instructions given to setup from scratch (on read the docs), with a VM? I think that there must be a key aspect missing from the docs, including the Database setup (still need to setup the DB manually, not in instructions. ie "create database midas").

The issues that I have previously listed are a product of the current setup instructions.

many thanks.

@miconsult miconsult reopened this Nov 17, 2015
@miconsult
Copy link
Author

Just to elaborate:

After following the installation guide on read the docs I have done the following:

-> set up a mysql database, "midas" with midas as a user granting all permissions top that user.

I then goto the site http://midas/index.php/install and get the following screen:

screen shot 2015-11-18 at 9 00 49 am

Then I select "goto next step":

I get the following screen:

screen shot 2015-11-18 at 9 02 04 am

I then select the mysql database from the dropdown:

screen shot 2015-11-18 at 9 02 52 am

I fill in my credentials:

screen shot 2015-11-18 at 9 04 27 am

I then select "setup database and account" underneath the mysql filled in credentials. I do not set up any other databases. The following error appears:

screen shot 2015-11-18 at 9 05 59 am

These are lines 114-115 from the InstallController.php file

 if (!isset($sqlFile) || !file_exists($sqlFile)) {
                    throw new Zend_Exception('Unable to find sql file');
                }

Which in itself seems to be where the it fails. Further up in the code on lines 111 and line 112, the following appears:

$sqlFile = $upgradeComponent->getNewestVersion(true);
                $sqlFile = BASE_PATH.'/core/database/'.$type.'/'.$sqlFile.'.sql';

the other variable set there seems to be $type
Which is defined earlier in the script as $type = $this->getParam('type');

looking at the front end name="type" is not defined as I haven't selected a DB type.
screen shot 2015-11-18 at 9 29 31 am

I then select a DB type, but the value of the hidden input with POST name "type" doesn't update, which is what the InstallController.php script $type variable refers to.

Does any of that help?

I can replicate this EVERY time I goto install the Midas from the Docs. Help!

@bbenoist
Copy link
Contributor

bbenoist commented May 2, 2016

@miconsult

Does anyone have this current version working, that was built from a scratch machine or VM?

Vagrant box is working for me but I'm still struggling to do the same with Docker images :rage4:

Would it be possible for one of the Devs to follow the instructions given to setup from scratch (on read the docs), with a VM?

You should be able to try it by yourself with the Vagrant box that's defined in the Vagrantfile file at the root of this repository. Provisioning is made with Ansible and files present in the provisioning directory.

If your vm-host OS is Windows, you'll need to reuse #236 😉

I can share my script for setting it up

If your scripts consists of one or more Dockerfile, publishing them might help #237

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants