Hi,
After installing csweb, i create a stantard user. But this user doesn't connect in the application. The error is in this image
http://www.csprousers.org/forum/downloa ... ew&id=1088
How to solve this problem?
CSWEB : Login failed. Insufficient privileges.
CSWEB : Login failed. Insufficient privileges.
- Attachments
-
- ErreurCSWEB.JPG (134.51 KiB) Viewed 6207 times
Re: CSWEB : Login failed. Insufficient privileges.
Check the PHP/Apache error log to see if there are any errors. The location of this file depends on how your server is configured. Check the documentation for your setup.
Also check the CSWeb api log file which you can find in csweb/logs/api.log.
Also check the CSWeb api log file which you can find in csweb/logs/api.log.
Re: CSWEB : Login failed. Insufficient privileges.
Hello,josh wrote:Check the PHP/Apache error log to see if there are any errors. The location of this file depends on how your server is configured. Check the documentation for your setup.
Also check the CSWeb api log file which you can find in csweb/logs/api.log.
I don't have any line on Apache error log.
Also the file csweb/logs/api.log doesn't exists.
Re: CSWEB : Login failed. Insufficient privileges.
That is strange. You should have the api.log file. Check that the user account that Apache runs under has permission to write to the csweb/logs directory.
Also try making the following changes to the file csweb/src/api/app/app.php to enable debug info and additional log messages:
1) Change the line
$app['debug'] = false;
to
$app['debug'] = true;
2) Change the line
$logLevel = Monolog\Logger::ERROR;
to
$logLevel = Monolog\Logger::DEBUG;
After that you should see something in the api.log
Also try making the following changes to the file csweb/src/api/app/app.php to enable debug info and additional log messages:
1) Change the line
$app['debug'] = false;
to
$app['debug'] = true;
2) Change the line
$logLevel = Monolog\Logger::ERROR;
to
$logLevel = Monolog\Logger::DEBUG;
After that you should see something in the api.log
Re: CSWEB : Login failed. Insufficient privileges.
Also, CSWeb login is allowed for admin users and not standard users. Make sure you are logging in with a user account with administrator role.
Re: CSWEB : Login failed. Insufficient privileges.
Thank you Josh for your answerjosh wrote:That is strange. You should have the api.log file. Check that the user account that Apache runs under has permission to write to the csweb/logs directory.
Also try making the following changes to the file csweb/src/api/app/app.php to enable debug info and additional log messages:
1) Change the line
$app['debug'] = false;
to
$app['debug'] = true;
2) Change the line
$logLevel = Monolog\Logger::ERROR;
to
$logLevel = Monolog\Logger::DEBUG;
After that you should see something in the api.log
Re: CSWEB : Login failed. Insufficient privileges.
Thank you for the explanation. It's clear for me.savy wrote:Also, CSWeb login is allowed for admin users and not standard users. Make sure you are logging in with a user account with administrator role.