"[ERROR]Answer from server is empty" during first installation
Steps to reproduce
- Install procedure from https://documentation.teampass.net
- Click "Start" from "Initial installation"
- Click "Start" on the following page
Expected behaviour
Check on directory and PHP Extensiones
Actual behaviour
Popup error "[ERROR]Answer from server is empty"
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.
Also getting the same issue with fresh install
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
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.
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
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.
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
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.
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
hi all, any updates?
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 ?
https://github.com/nilsteampassnet/TeamPass/discussions/4037#discussioncomment-8381650
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
I'm facing this issue with the current release as well. I have tried to comment out as suggestions? I can not this working.
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