Salt error when trying to install MantiaBT 1.3

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
aavagyan
Posts: 84
Joined: 08 Dec 2013, 14:23
Location: Germany
Contact:

Salt error when trying to install MantiaBT 1.3

Post by aavagyan »

I'm attempting fresh install of newly released mantisbt 1.3 on Ubuntu 16.04. I have latest Apache 2.4.x and PHP 7.0.4. Database is MySQL, latest 5.7.x. Install script reports all green and asks to parse block of code into config_inc.php (which I create). After this I go to login page and face this:

=============================
APPLICATION ERROR #2900
For security reasons MantisBT will not operate when $g_crypto_master_salt is not specified correctly in config_inc.php or is shorter than 16 characters long.
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.
=============================

$g_crypto_master_salt is specified in config_inc.php and is definitely longer than 16 chars. config_inc.php is readable by all.

Any idea how to overcome the problem?

Thank you,
Avetis
Mantis Statistics Plugin: https://www.mantisstats.org
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Salt error when trying to install MantiaBT 1.3

Post by atrol »

No idea at the moment.
We do nothing more than check the length of the option

Code: Select all

strlen( config_get_global( 'crypto_master_salt' ) ) < 16
It seems there is a problem to read your config_inc.php
Please use Search before posting and read the Manual
aavagyan
Posts: 84
Joined: 08 Dec 2013, 14:23
Location: Germany
Contact:

Re: Salt error when trying to install MantiaBT 1.3

Post by aavagyan »

You are right - I added "exit" at the beginning of config file and it has no effect on error. Will dig...
Mantis Statistics Plugin: https://www.mantisstats.org
aavagyan
Posts: 84
Joined: 08 Dec 2013, 14:23
Location: Germany
Contact:

Re: Salt error when trying to install MantiaBT 1.3

Post by aavagyan »

Found the problem! config_inc.php should now sit in config/ folder! Install page instructions should probably stress this?

Thank you!
Mantis Statistics Plugin: https://www.mantisstats.org
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Salt error when trying to install MantiaBT 1.3

Post by atrol »

Strange,

I expected that you should have seen the following output when running install.php if there is a config_inc.php in old location:
Checking there is no 'config_inc.php' file in 1.2.x location. : BAD Move config_inc.php to config/config_inc.php.

On the same page you should see at the bottom:
Installation Failed, Please correct failed checks and a "Retry" button
Please use Search before posting and read the Manual
aavagyan
Posts: 84
Joined: 08 Dec 2013, 14:23
Location: Germany
Contact:

Re: Salt error when trying to install MantiaBT 1.3

Post by aavagyan »

When you do fresh installation (my case) you don't have this file - so no error. At the end script asks you to save few lines in config_inc.php (as I remember there was no "config/" in front of config_inc.php). So you make this file and click on 'proceed to login' or something like this - here you get error about salt. So basically no way to learn about 'config' folder.

Thank you,
Avetis
Mantis Statistics Plugin: https://www.mantisstats.org
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Salt error when trying to install MantiaBT 1.3

Post by atrol »

I tried a fresh install without having write access to config directory.
I get
- Creating Configuration File (config/config_inc.php)
- BAD: cannot write /var/www/html/mantisbt/config/config_inc.php
- Please add the following lines to '/var/www/html/mantisbt/config/config_inc.php' before continuing:

I see three times directory config.
It seems you just didn't read carefully enough because you didn't expect that something could have been changed since version 1.2.
Please use Search before posting and read the Manual
aavagyan
Posts: 84
Joined: 08 Dec 2013, 14:23
Location: Germany
Contact:

Re: Salt error when trying to install MantiaBT 1.3

Post by aavagyan »

Dear Atrol,

You are right, install page tells about config/config_inc.php three times. I should have noticed it.

Thank you,
Avetis
Mantis Statistics Plugin: https://www.mantisstats.org
yatoolie78
Posts: 1
Joined: 08 Aug 2016, 22:25

Re: Salt error when trying to install MantiaBT 1.3

Post by yatoolie78 »

The easy way of getting past this error with a fresh install is to "chmod -R 777" the mantisbt directory, run the install script and set the permissions back afterwards. This solved it for me.
gilbertoalbino
Posts: 1
Joined: 12 Sep 2016, 20:05

Re: Salt error when trying to install MantiaBT 1.3

Post by gilbertoalbino »

I have the same problem, and curiously got it solved by doing something very "weird".

I can reproduce the steps:

1) Make sure the installation directory has Write permission.
2) Install/Upgrade Mantis
3) Move config_defaults_inc.php to configs/config_defaults_inc.php

Here things get weird!

4) Move back configs/config_defaults_inc.php to config_defaults_inc.php

I don't know why, but moving and moving back did the trick!
Post Reply