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

Install RE-Install Teampass not moving out of portal #1493

Closed
zalexxx opened this issue Sep 13, 2016 · 8 comments
Closed

Install RE-Install Teampass not moving out of portal #1493

zalexxx opened this issue Sep 13, 2016 · 8 comments
Labels

Comments

@zalexxx
Copy link

zalexxx commented Sep 13, 2016

Steps to reproduce

  1. We had installed 2.1.20 2.1.21 2.1.26 and the result is a portal connection without other thing
    2.
    3.

Expected behaviour

NOTHING

Actual behaviour

Is anyboby have the same trouble, installation without problem and when I want to connect nothing else Please identify yourself.
FRESH INSTALL

Server configuration

Operating system: DEBIAN 8 PLESK 12.5

Web server: APACHE2.4.10

Database: MARIADB 10.0.26

PHP version: 5.6.24 also test with 7.0.6

Teampass version: 2.1.26 - 2.1.26.19 - 2.1.20 - 2.1.21

Updated from an older Teampass or fresh install: non fresh install

Client configuration

Browser: Chrome Safari Firefox IE 11 IE edge

Operating system: WIN 10 WIN 7 OSX 10.11.6

Logs

Web server error log

NO LOG in PHP APACHE...

Firebug log (How to?)

Hacking attempt...
@qubez
Copy link
Contributor

qubez commented Sep 13, 2016

The cross-site attack prevention introduced in 2.1.25 is what gives the "hacking attempt" error if it is misconfigured.

You likely need to configure the site's URL correctly in the csrfp config file correctly to use site.

There is a sample file in the install at includes\libraries\csrfp\libs\csrfp.config.sample.php, and if you have run the install procedure, you should have a version with your own site URL at includes\libraries\csrfp\libs\csrfp.config.php. Inspect to see if this file has been created, and check that it has your full site name in it.

You must start a fresh install by running http://DOMAIN/install/install.php to set up Teampass, or if you already were using Teampass, you must run http://DOMAIN/install/upgrade.php to update settings and config files. (URL is your permanent web site domain name).

If you are upgrading, be sure to delete the /install directory after you have everything working.

@zalexxx
Copy link
Author

zalexxx commented Sep 13, 2016

Thanks for your reply, I have found something else, when I change the language with the flag in up right corner nothing happen.
So what do you mean about 'misconfigured' everythhing was good in installation.
When I make an upgrade I cannot I have this message
The upgrader will now update the database by running several upgrade scripts.
An error occurred. Please check and relaunch.
11:31:57 - ERROR: MySQL Error!
11:31:57 - upgrade_run_db_original.php - Loop #1
[{"finish":"0", "scriptname":"upgrade_run_db_original.php", "parameter":""}]
[{"finish":"1", "msg":"", "error":"MySQL Error! "}]
Thanks again for all.

@qubez
Copy link
Contributor

qubez commented Sep 13, 2016

The language setting flag in upper right is a user-specific setting. Selection is unreliable though - I've selected Chinese and seen Bulgarian... Try user log off and log back on after selecting the user language.

The default language is set by admin. You will find an option on the administrator's settings tab to change the system language.

includes\libraries\csrfp\libs\csrfp.config.php should have this line with your site's name:

"jsUrl" => "http://FULLDOMAIN.com/includes/libraries/csrfp/js/csrfprotector.js",

Unfortunately, the value on this line is set when you install and is not upgraded. You may need to edit the file and change this line. If you were using an IP address instead of name when you installed, for example, it may be set wrong, and cause the "hacking attempt" errors. If you use HTTPS, this line also needs to say https.

You say "fresh install" in your bug report, but you also say "We had installed 2.1.20 2.1.21 2.1.26", which sounds like you are upgrading. I will test to see if I can find a problem going from 2.1.20 -> 2.1.26.

One upgrade solution for you if nothing works may be to:

  1. Put back the original 2.1.21 files to restore functionality,
  2. Backup your database and backup files in /upload directory,
  3. Make a fresh install of TeamPass 2.1.26 into a clean www directory,
  4. Use a new database or different database prefix,
  5. Install and configure TeamPass,
  6. Restore the database backup and upload files.

@zalexxx
Copy link
Author

zalexxx commented Sep 13, 2016

thanks for your reply.
I had change, in csrfp.config.php
jsUrl (to the good one, to test I cut and paste in navigator) and I change jsPath to the real absolute path.
The problem is the same.
Actually I am testing the 2.1.26 fresh git download (https://github.com/nilsteampassnet/TeamPass.git).
I will test your upgrade solution and I'll say you what is the result very soonly.
Thanks again!!!
Regards

@zalexxx
Copy link
Author

zalexxx commented Sep 13, 2016

Sorry but I cannot install the 2.1.21 cannot add table (failled)
Is there any good version without trouble?
There is so much bugs, had you patch these problems?
Thanks again for your reply.
Regards
PS: do you make an require list and compatibility version of dependence
I try the 2.1.27 (same result Hacking attempt...)

@qubez
Copy link
Contributor

qubez commented Sep 13, 2016

It seems like you are missing something. Did you create a new database and database user for Teampass and give the database user full access to your database, for example?

Teampass works fine. It is much easier to get set up than other complex web applications like tWiki on perl.

@zalexxx
Copy link
Author

zalexxx commented Sep 13, 2016

I will test Wiki tomorrow. But I have 5 instances with our own code app; and 1 WORDPRESS.
All working fine...
Tomorrow wil be a better day.
Thanks again.
Regards

@qubez
Copy link
Contributor

qubez commented Sep 13, 2016

(PS don't test tWiki unless you need a wiki site, it's way too much work)

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

3 participants