partkeepr / PartKeepr

Open Source Inventory Management
http://www.partkeepr.org
GNU General Public License v3.0
1.38k stars 400 forks source link

Internal Server error after clicking submit of setup on the last step. #979

Closed zhanglongqi closed 6 years ago

zhanglongqi commented 6 years ago

There is an error message after I clicked the Login button PartKeepr version: master branch of git Env version: ubuntu 16.04 x86-64, PHP 7.0 FYI The user table is empty in the database. screenshot from 2018-07-08 10-57-57

Drachenkaetzchen commented 6 years ago

More details please

Drachenkaetzchen commented 6 years ago

Is it only the favicon.ico which throws an error?

Drachenkaetzchen commented 6 years ago

Please provide all details as per CONTRIBUTING.md, especially if and how to reproduce on the demo system.

zhanglongqi commented 6 years ago

The errer happens after installation. I can not reproduce it on the demo system. I thought it's the error of installation program. and the user table is still empty after the installation. logs are attached. MySQL: mysql Ver 14.14 Distrib 5.7.22, for Linux (x86_64) using EditLine wrapper

SELECT * from PartKeeprUser;

+------+---------------+------------+------------+---------+---------+----------+------------+----------+-------------+
| id   | provider_id   | username   | password   | email   | admin   | legacy   | lastSeen   | active   | protected   |
|------+---------------+------------+------------+---------+---------+----------+------------+----------+-------------|
+------+---------------+------------+------------+---------+---------+----------+------------+----------+-------------+
0 rows in set
Time: 0.001s

screenshot from 2018-07-08 14-10-27 # logs.tar.gz

zhanglongqi commented 6 years ago

I saw batabase 'access denied' from the log. But how it can pass the check in the setup progress.

Drachenkaetzchen commented 6 years ago

I'm sorry but I'm still confused what the actual issue is. Can you describe in simple words what the problem is?

When exactly does the internal server error occur? Do you receive any errors during setup? Have you checked your logs, especialy app/logs/*.log ?

zhanglongqi commented 6 years ago

The installation has no error. It happens after the installation. The log was attached to my previous reply.

Drachenkaetzchen commented 6 years ago

There is no log appended ('''app/logs/*log'''). It's your responsibility to deliver as much information as possible, in a verbose way. I simply cannot do guesswork what's going on.

zhanglongqi commented 6 years ago

https://github.com/partkeepr/PartKeepr/files/2173404/logs.tar.gz

zhanglongqi commented 6 years ago

The log was attached to my previous reply: https://github.com/partkeepr/PartKeepr/issues/979#issuecomment-403265965

Drachenkaetzchen commented 6 years ago

Did you create a new user in the setup? Also you should monitor the log, try to re-run setup, create a new user and see if there's an error occurring. You can also create a new user using app/console php fos:user:create or similar (just run app/console without arguments and it will list all commands).

Please keep in mind that I provide support in my free time, and just adding logs and leaving me to figure out what's going on is how I can't provide support. A good description would be:

  1. I run through setup, create a new user
  2. No user is created
  3. In the log, message XY occurs

Remember that I have to somehow reproduce the issue. I can't have a look through 1.8M of logs, guessing when you did what.