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

Phppgadmin - just shows warnings, nothing else #728

Closed
5 of 7 tasks
TheManFromEarth1 opened this issue Sep 20, 2020 · 7 comments
Closed
5 of 7 tasks

Phppgadmin - just shows warnings, nothing else #728

TheManFromEarth1 opened this issue Sep 20, 2020 · 7 comments
Assignees
Labels

Comments

@TheManFromEarth1
Copy link

TheManFromEarth1 commented Sep 20, 2020

ISSUE TYPE

  • Bug Report

Checklist

OS / ENVIRONMENT

  1. Host operating system and version: Kubuntu 20.04, Kernel 5.4.0-47-generic
  2. (Windows) Native Docker or Docker Toolbox:
  3. Docker version: 19.03.13
  4. Docker Compose version: docker-compose version 1.26.2
  5. (Linux) Is SELinux enabled?: Don't think so, fresh Kubuntu install
  6. What git commit hash are you on?: Not sure, I updated devilbox today latest one (Devilbox Release v1.7.2)

SUMMARY

Postgresql itself is working, because I can access the DB by IP from somewhere else.

PHPpgadmin just shows this:
https://i.imgur.com/4nRlqnB.png

STEPS TO REPRODUCE

Navigate to PHPpgadmin

EXPECTED BEHAVIOUR

I see the PHPpgadmin interface

ACTUAL BEHAVIOUR

https://i.imgur.com/4nRlqnB.png

OTHER INFORMATION

Start command

$ docker-compose up...
docker-compose up php mysql httpd bind mailhog pgsql

#### File and user permissions (Linux & MacOS)
<!-- User and group information -->

$ id

uid=1000(jet) gid=1000(jet) groups=1000(jet),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),121(lpadmin),131(lxd),132(sambashare),134(libvirt),998(docker)


<!-- File permissions of the Devilbox directory -->

$ ls -la

drwxrwxr-x 16 jet jet  4096 Sep 20 15:05 .
drwxrwxr-x 11 jet jet  4096 Sep 10 20:50 ..
drwxrwxr-x  2 jet jet  4096 Jul 25 13:08 autostart
drwxr-xr-x  3 jet jet  4096 Jul 25 14:11 backups
drwxrwxr-x  2 jet jet  4096 Sep 20 15:08 bash
drwxrwxr-x  2 jet jet  4096 Jul 25 14:28 ca
drwxrwxr-x 57 jet jet  4096 Jul 25 13:08 cfg
-rw-rw-r--  1 jet jet  9329 Sep 20 14:37 CHANGELOG.md
drwxrwxr-x  2 jet jet  4096 Sep 20 15:03 compose
-rw-rw-r--  1 jet jet  2770 Jul 25 13:08 CONTRIBUTING.md
drwxrwxr-x  3 jet jet  4096 Jul 25 13:08 data
drwxrwxr-x 11 jet jet  4096 Aug  4 02:04 .devilbox
-rw-rw-r--  1 jet jet   543 Jul 25 14:05 docker-compose.override.yml
-rw-rw-r--  1 jet jet   747 Jul 25 13:08 docker-compose.override.yml-example
-rw-rw-r--  1 jet jet 14999 Sep 20 14:37 docker-compose.yml
drwxrwxr-x 20 jet jet  4096 Sep 20 15:10 docs
-rw-rw-r--  1 jet jet  2502 Jul 25 13:08 .editorconfig
-rw-rw-r--  1 jet jet 18914 Jul 25 14:44 .env
-rw-rw-r--  1 jet jet 18914 Jul 25 13:08 env-example
drwxrwxr-x  9 jet jet  4096 Sep 20 15:54 .git
drwxrwxr-x  4 jet jet  4096 Jul 25 13:08 .github
-rw-rw-r--  1 jet jet  3643 Jul 25 13:08 .gitignore
-rw-rw-r--  1 jet jet  1064 Jul 25 13:08 LICENSE.md
drwxrwxr-x  6 jet jet  4096 Sep 13 16:51 log
drwxrwxr-x 10 jet jet  4096 Jul 25 14:47 mod
-rw-rw-r--  1 jet jet    27 Aug  4 02:11 package-lock.json
-rw-rw-r--  1 jet jet 65488 Sep 20 14:37 README.md
-rw-rw-r--  1 jet jet    86 Jul 25 13:08 shell.bat
-rwxrwxr-x  1 jet jet    59 Jul 25 13:08 shell.sh
drwxrwxr-x  5 jet jet  4096 Jul 25 13:08 .tests
-rw-rw-r--  1 jet jet 11506 Jul 25 13:08 .travis.yml
-rwxrwxr-x  1 jet jet  2265 Jul 25 13:08 update-docker.sh
-rw-rw-r--  1 jet jet  1857 Jul 25 13:08 UPDATING.md

<!-- File permissions of your projects -->

$ ls -la data/www


total 20
drwxr-xr-x 5 jet jet 4096 Sep 13 17:35 .
drwxrwxr-x 3 jet jet 4096 Jul 25 13:08 ..
drwxr-xr-x 3 jet jet 4096 Sep 13 17:36 data
-rw-rw-r-- 1 jet jet    0 Jul 25 13:08 .keepme
drwxrwxr-x 4 jet jet 4096 Aug  3 23:47 php
drwxrwxr-x 5 jet jet 4096 Aug  9 01:01 wp
@alikon
Copy link
Contributor

alikon commented Sep 23, 2020

i can confirm your findings with php 7.4.10 and Devilbox Release v1.7.2

@alikon
Copy link
Contributor

alikon commented Sep 23, 2020

using phppgadmin 7.12.1 it works

@alikon
Copy link
Contributor

alikon commented Sep 23, 2020

unfortunately is not working when you try to login

@alikon
Copy link
Contributor

alikon commented Sep 23, 2020

for a dirty / temporary fix change
https://github.com/cytopia/devilbox/blob/master/.devilbox/www/htdocs/vendor/phppgadmin-7.12.0/libraries/lib.inc.php#L53-L57
with

	// Start session (if not auto-started)
	if (!ini_get('session.auto_start')) {
		if (session_id() == '') {
			session_name('PPA_ID');
			session_start();
		}
	}

@TheManFromEarth1
Copy link
Author

Confirmed, thank you very much!

So simple solution, but if you don´t know where to look :)

@cytopia
Copy link
Owner

cytopia commented Sep 30, 2020

Thanks for reporting. I am trying to figure out why the integration tests did not catch this.

@cytopia cytopia self-assigned this Sep 30, 2020
This was referenced Nov 7, 2020
@cytopia
Copy link
Owner

cytopia commented Nov 9, 2020

#743

@cytopia cytopia closed this as completed Nov 9, 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

3 participants