TeamPass icon indicating copy to clipboard operation
TeamPass copied to clipboard

"[ERROR]Answer from server is empty" during first installation

Open fabiorandazzo opened this issue 1 year ago • 9 comments

Steps to reproduce

  1. Install procedure from https://documentation.teampass.net
  2. Click "Start" from "Initial installation"
  3. Click "Start" on the following page

Expected behaviour

Check on directory and PHP Extensiones

Actual behaviour

Popup error "[ERROR]Answer from server is empty" image

Server configuration

Operating system: Linux Ubuntu 22.04.3

Web server: Apache2: 2.4.52-1ubuntu4.6

Database: MariaDB-Server: 1:10.6.12-0ubuntu0.22.04.1

PHP version: PHP: 2:8.2+93+ubuntu22.04.1+deb.sury.org+2

Teampass version: 3.1.1

Teampass configuration file: fresh install

Updated from an older Teampass or fresh install: PLEASE attach to this issue the file /includes/config/tp.config.php.

Client configuration

Browser: Edge/Chrome

Operating system: Windows 10

Logs

Web server error log

Insert your webserver log here apacheErrorLog.txt

Log from the web-browser developer console (CTRL + SHIFT + i)

Insert the log here and especially the answer of the query that failed.

fabiorandazzo avatar Jan 15 '24 11:01 fabiorandazzo

Also getting the same issue with fresh install

WebxDES avatar Jan 15 '24 19:01 WebxDES

Also getting the same issue with fresh install

apache2 error log

PHP Fatal error: Uncaught Error: Call to a member function has() on null in /var/www/html/teampass/includes/config/settings.php:28\nStack trace:\n#0 /var/www/html/teampass/sources/main.functions.php(4283): require_once()\n#1 /var/www/html/teampass/sources/main.functions.php(64): loadClasses()\n#2 /var/www/html/teampass/install/install.queries.php(51): require_once('...')\n#3 {main}\n thrown in /var/www/html/teampass/includes/config/settings.php on line 28, referer: http://192.168.1.4/teampass/install/install.php

metallyuga13 avatar Jan 16 '24 17:01 metallyuga13

Same for me. After manually creating the file tp.config.php i don't get the "ANSWER FROM SERVER IS EMPTY" error anymore but the setup stalls with the "WORKING ON" message. I'm using docker-compose.

jensmuc avatar Jan 18 '24 10:01 jensmuc

I have the same problem as [Fabiorandazzo]

Server configuration

**Operating system: Ubuntu Server 20.04

**Webserver: nginx

**Database: MariaDB 10.11.6

**PHP version:8.1

**Teampass version: 3.1.1

image

Aprendiz011 avatar Jan 30 '24 12:01 Aprendiz011

Same problem here. If you bypass first issue by creating tp.config.php in includes/config directory, installer "hangs" with message "Working on it...".

If you check ajax response from install.queries.php, it seems like its trying to rename existing session.

obrazek

The issue with that is, install.queries.php loads /sources/main.functions.php on line 51,

https://github.com/nilsteampassnet/TeamPass/blob/9ae4dae89772b90e26e5b2c38559ad113e4f3542/install/install.queries.php#L51

that starts Symfony session on line 65

https://github.com/nilsteampassnet/TeamPass/blob/9ae4dae89772b90e26e5b2c38559ad113e4f3542/sources/main.functions.php#L65

but install.queries.php tries to start another session named teampass_session on line 58

https://github.com/nilsteampassnet/TeamPass/blob/9ae4dae89772b90e26e5b2c38559ad113e4f3542/install/install.queries.php#L58

mtwango avatar Jan 30 '24 21:01 mtwango

Another issue is, that in settings.sample.php is mentioned $session, that doesnt really exists at this time, so when installer copies settings.sample.php to settings.php, it calls has function on null.

obrazek

Easiest fix for the time being I found was to remove last condition on settings.sample.php and move session_name and session_start before requiring main.fuctions.php in install.queries.php

mtwango avatar Jan 30 '24 22:01 mtwango

hi all, any updates?

fabiorandazzo avatar Feb 13 '24 09:02 fabiorandazzo

Salut tout le monde, @fabiorandazzo pas de news ? Je cherche partout aussi sur toutes les issues "[ERROR]Answer from server is empty". Quelqu'un sait si la version antérieur peux fonctionner en attendant la correction du bug ?

doooopT avatar Feb 13 '24 13:02 doooopT

https://github.com/nilsteampassnet/TeamPass/discussions/4037#discussioncomment-8381650

Arash9703 avatar Feb 21 '24 15:02 Arash9703

If I am correct, it is fixed in latest commits, because I can reproduce this error on 3.1.1 build, but can't if I clone git-repo.

Also I have got the same error when I tried to install Teampass with php7.x instead of 8.x

Kyogre avatar Apr 11 '24 14:04 Kyogre

I'm facing this issue with the current release as well. I have tried to comment out as suggestions? I can not this working.

dwagnereh avatar Nov 20 '24 18:11 dwagnereh

I'm facing this issue with the current release as well. I have tried to comment out as suggestions? I can not this working.

Check the apache logs

nilsteampassnet avatar Nov 21 '24 10:11 nilsteampassnet