Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.10.0 install command is broken #39

Open
ywarnier opened this issue Apr 21, 2015 · 6 comments
Open

1.10.0 install command is broken #39

ywarnier opened this issue Apr 21, 2015 · 6 comments
Labels

Comments

@ywarnier
Copy link
Member

:/var/www/chamilo110x$ sudo chash chash:chamilo_install --linux-user="www-data" --linux-group="www-data" --sitename="Chamilo" --site_url="http://localhost/" --permissions_for_new_directories="0777" --permissions_for_new_files="0666" --firstname="John" --lastname="Doe" --username="admin" --password="admin" --email="[email protected]" --language="english" --institution="Chamilo" --institution_url="https://chamilo.org" --driver="pdo_mysql" --port="3306" --host="localhost" --dbname="chamilo110x" --dbuser="chamilo110x" --dbpassword="chamilo110x" --encrypt_method="sha1" --phone="123456" 1.10.0 /var/www/chamilo110x

[sudo] password for ywarnier:

Welcome to the Chamilo installation process.

Configuration file will be saved here: /var/www/chamilo110x/main/inc/conf/configuration.php
Portal settings (7)
(1/7) Option: sitename = 'Chamilo' was added as an option.
(2/7) Option: site_url = 'http://localhost/' was added as an option.
(3/7) Option: institution = 'Chamilo' was added as an option.
(4/7) Option: institution_url = 'https://chamilo.org' was added as an option.
(5/7) Option: encrypt_method = 'sha1' was added as an option.
(6/7) Option: permissions_for_new_directories = '0777' was added as an option.
(7/7) Option: permissions_for_new_files = '0666' was added as an option.
Admin settings: (7)
(1/7) Option: firstname = 'John' was added as an option.
(2/7) Option: lastname = 'Doe' was added as an option.
(3/7) Option: username = 'admin' was added as an option.
(4/7) Option: password = 'admin' was added as an option.
(5/7) Option: email = '[email protected]' was added as an option.
(6/7) Option: language = 'english' was added as an option.
(7/7) Option: phone = '123456' was added as an option.
Database settings: (6)
(1/6) Option: driver = 'pdo_mysql' was added as an option.
(2/6) Option: host = 'localhost' was added as an option.
(3/6) Option: port = '3306' was added as an option.
(4/6) Option: dbname = 'chamilo110x' was added as an option.
(5/6) Option: dbuser = 'chamilo110x' was added as an option.
(6/6) Option: dbpassword = 'chamilo110x' was added as an option.
Connection to database chamilo110x established.
Connection to database 'chamilo110x' established.
Starting the writeConfiguration process.
Recovered all info. Reviewing.
Data reviewed. Checking where to write to...
Looking for main/install/configuration.dist.php.
Writing config to /var/www/chamilo110x/main/inc/conf/configuration.php.
Config file written.
Configuration file saved to /var/www/chamilo110x. Proceeding with updating and cleaning stuff.
Starting creation of database version 1.10.0...
Creating database chamilo ...
No files to load.

@ywarnier ywarnier added the bug label Apr 21, 2015
@ywarnier ywarnier added this to the Chamilo LMS 1.10.0 milestone Apr 21, 2015
@jmontoyaa
Copy link
Member

sudo chash chash:chata?

@ywarnier
Copy link
Member Author

I just updated it. It was a copy-paste error (here, not in my command)

@ywarnier
Copy link
Member Author

The "No files to load" error comes from the fact that the Chash\Command\Installation\CommonCommand::getDatabaseMap() method returns this, which doesn't contain any SQL to execute:

            '1.10.0' => array(
                'section' => array(
                    'migrations' => 'Version110',
                    'main' => array(
                        array(
                            'name' => 'chamilo',
                            'sql' => array(
                                //'db_main.sql',
                            ),
                        )
                    )
                )
            ),

@jmontoyaa
Copy link
Member

I added some fixes.

Remember the version to be installed is 1.10.x and not 1.10.0 because the tag doesn't exist yet in github.

@ywarnier
Copy link
Member Author

It goes a little further now, but I get this error after launching the command: Table 'chamilo110x.settings_current' doesn't exist' (which is probably related to your last change to data.sql and install.lib.php)

@ywarnier
Copy link
Member Author

There's also (this is a Chamilo issue) the fact that database.sql and data.sql both contain the rows to fill settings_current and settings_options (duplication). Just pointing it here because I realized it now, but it's not directly a Chash issue.

@jmontoyaa jmontoyaa removed their assignment Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants