New user authentification test while i'm on the admin page

Bug #1016791 reported by Andrei
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AuthPuppy
Triaged
Undecided
Unassigned

Bug Description

After login on the administrative login page, i went to the "Auth Local User section", i clicked on "my account", i thought that having already a user name defined for the administration account, it would be accepted as a local user, but that's ok. So i clicked on "sign up for a new account," i wrote all it need to have a new account, the two checkboxes are checked, and when i clicked on the confirmation button, i get a symfony web page with a 500 interal server error.

This bug is in Firefox.

Changed in authpuppy:
assignee: nobody → Andrei (andrei-halle)
assignee: Andrei (andrei-halle) → gbastien (gbastien02)
Revision history for this message
Frédéric Sheedy (fsheedy) wrote :

should be a problem with your configuration. please provide more infos like logs and your config and don't assign a bug to a developer by yourself!

Changed in authpuppy:
assignee: gbastien (gbastien02) → nobody
status: New → Triaged
Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

I'll get back with my config later.

I'll kept all the further bug unassigned. That's a lack of knowledge from myself, i'm sorry about that.

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

About this bug that i had, i could make it happened again tonite.

I will not describe it, it is already done . I read the log that i had in the /var/log/apache2/authpuppy directory. So i repeat the same scenario described in the first instance of this message and i get this in the access.log when i looked in each of these log files :

127.0.0.1 - - [23/Jun/2012:23:43:58 -0400] "POST /policies/status HTTP/1.1" 200$ 13.0) Gecko/20100101 Firefox/13.0.1"
127.0.0.1 - - [23/Jun/2012:23:44:39 -0400] "POST /policies/status HTTP/1.1" 500$ $13.0) Gecko/20100101 Firefox/13.0.1"

As usual it work like a charm copying and pasting from a linux terminal .... anyway i don't know if it is meaningful for you.

And from the error.log i go this

[Sat Jun 23 23:24:04 2012] [error] [client 127.0.0.1] Connection could not be established with host localhost [Connection refused #111], referer: http://authpuppy.localhost/authl$$/authlocaluser/my-account

[Sat Jun 23 23:44:39 2012] [error] [client 127.0.0.1] Connection could not be established with host localhost [Connection refused #111], refere$/policies/statusr: http://authpuppy.localhost/policies/status$

Everything was ok when i check if i had all it need to made authpuppy worked, on the page you made to see all the point have been made. It was perfect.

I'm on ubuntu 12.04 lts. I use MySQL instead of Postgress. If you want me to tell you more, ask me.

Thanks,

André

Changed in authpuppy:
status: Triaged → Confirmed
Revision history for this message
Frédéric Sheedy (fsheedy) wrote :

this bug are not confirmed yet! please read the launchpad guide before doing change on bug report. back to triage, because we need to reproduce your problem.

Changed in authpuppy:
status: Confirmed → Triaged
Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

I will not use any of what launchpad have except writing. The bug has been confirmed on my side by two different person, but as i see, and it is ok, this option that i have on my account does have to be used. So i'll use this launchpad on his simpliest basic way.

Revision history for this message
gbastien (gbastien02) wrote :

When you have a 500 bugs, you can get more info by using the symfony debug mode http://your_server/frontend_dev.php

Did your error come from creating the user? If so, it might be related to this one, the email configuration: https://bugs.launchpad.net/authpuppy/+bug/621394

Otherwise, reproduce the error in debug mode and post the detailed output.

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

Thanks, i'll try to make it in symfony. I never used it, but i'll follow your instructions.

My server is online, Geneviève, so you can access it with the user and password i gave you privatly. http://www.libresansfil.org

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

Ok, i open my server locallly with http://authpuppy.localhost/frontend_dev.php. I create a new user named andreqc2 and it worked, i mean there is a new user now while it was impossible before.

I'm not used to symfony. I didn't expect to use it, but it is something new that i'm glad to know (how to make it work)).

I will copy and paste the detail output coming from symfony who is as i can see PHP ( C programming lines) in the log parts of what i just made.

There is now way to make any conclusion at this point if the situation have been resolved or not.

I'll attach to this message what i had in my Symfony log.

I'll get back with this error if there is still something wrong.

Thanks a lot !

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

Now, i have two different screen when i type http://authpuppy.localhost and i don't know why.

I have the first one who is attached to this message where i only have the administration login page.

But i may have the second one where i have a local user login item with the administration login item.

That's from this windows form where the problem is encountered when i create a new local user. But i can't test it while i use the http://authpuppy.localhost/frontend_dev.php. With this url i always have the administration login page as the first login page.

So what can i do to now ?

I attached, to this message, the two different login screen that i can have.

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

... And the second login screen

Revision history for this message
gbastien (gbastien02) wrote :

I don't see what is the problem from the screens and logs you attached.

But if it works in debug, but not without the frontend_dev.php, try emptying the cache (with the command line, from the authpuppy root directory, you do ./symfony cc )

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

Ok i'll try it again and hopefully enabling symfony to have the default login page i have : The one with the admin and the local user on the same page. I'll clean the cache too.

Thanks A Lot Geneviève i appreciate your support and as soon as i'll see the problem in symfony i will send it to you as i'll share it here in launchpad,

Thanks a lot Geneviève,

André

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

I did ./symfony cc and i have this : symfony: command not found :(

Revision history for this message
gbastien (gbastien02) wrote :

It's in the root directory of authpuppy, where all the other dirs (apps, plugins, config, web, etc) are. The file is called 'symfony' and must be made executable.

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

What i just did is this :

alias symfony='/var/www/authpuppy/lib/vendor/symfony/data/bin/symfony'

Now i can make symfony working but ...

I had these error :

I always have this error : PHP Warning: Module 'apc' already loaded in Unknown on line 0

and i had this error once :

Cache directory "/var/www/authpuppy/lib/vendor/symfony/data/bin/cache" does not exist on a red background.

I mkdir that subdirectory and i did :

symfony cc, i didn't get any cache eror

but i always have this apc (apc is a PHP Accelerator that i installed with php-pear) error `

PHP Warning: Module 'apc' already loaded in Unknown on line 0

Thanks again Geneviève. My god you work a lot ! :) I'll get back to you tomorrow. Have a good nite.

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

I was kind of tired by what i did by making a cache subdirectory where symfony was running yesterday. I've been able to clear the cache files from /var/www where i just made symfony cc from there.

I can't make ./symfony in the system root directory. Somehow, may be that's a lack of knowledge but when we talk about the root directory of a web based application, is it the /var/www/ directory, it may sound silly as a question but as long as it is unknown or undescribed, this can be confusing. So i assumed that the root directory of authpuppy is /var/www.

Anyway, after having the cache cleaned, i still have the problem to create new local user. I can start authpuppy by http://localhost as well as http://authpuppy.localhost. So what i did this morning after having my cache cleaned, i start authpuppy by http://localhost and i began my session by choosing network login (in french login réseau). I used "sign up for a free account". I made the new account, and when i click on sign me up i had the error 500.

So, i used : http://localhost/frontend_dev.php i made exactly the same thing that i wrote on the preceding lines of this message and it seem the error is trapped by an exception handler (i don't know how we called it in PHP) and i was able to made my new user without any error.

My first question is : Do i need to install symfony even if it is part of the directory structure of authpuppy. All i did on the very begining, was to make sure that i have all the instances of symfony running normally by making a php check_configuration.php as it is described in the documentation of authpuppy. I never installed it cause it was part of the directory struct of authpuppy.

My second question is : It seem that the httpd.conf have no effect. Cause there's a line in it described below :

       Alias /sf /var/www/authpuppy/lib/vendor/symfony/data/web/sf

Who does nothing. I never been able to use sf.

As we talk about some weeks ago, i made some changes in the /etc/host where i have the "127.0.1.1 authpuppy.localhost" line.

I know that my message is long but i couldn't make better making it shorter. There is so much to do. I'll made another Ubuntu 12.04 lts partition and running a new install of authpuppy. But the problems described before remain the sames.

Revision history for this message
gbastien (gbastien02) wrote :

The 'symfony' file is in the authpuppy file structure, in the root of the authpuppy installation, wherever that is. If you unzipped the authpuppy file to /var/www/authpuppy, then you need to

cd /var/www/authpuppy

and then run the

./symfony cc

And if after clearing the cache in the right directory, you still have the 500 error when creating a user, try removing the email validation. To do so, go to 'Manage plugins', then click the apAuthLocalUserPlugin and uncheck the checkbox that says 'Validate by email' and try creating your user. If it works then, it would mean you have a email configuration problem.

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

I'll make what you suggest Geneviève.

I still had the 500 error when i try to make a new user in the running page of authpuppy for this aspect. Even when i launched the ,/symfony cc in the authpuppy directory before. But i never have any error when i'm in debug mode. I can make as much new local network user as i want when i'm this mode.

I will make another installation of a fresh new authpuppy, mysql, apache2, php5 (with all the need related to php and symfony) and i'll be able to see where exactly is the problem. I still have the primary partition of a Ubuntu 12.04 lts distro with what all it need to make authpuppy working. But having two installation's instance of authpuppy would help solving my situation.

I'll do the same for Debian.

If i have an email configuration problem, what can it be done to fix it ? I mean does these settings related to authpuppy only, or do i have to have to configured an email account in Ubuntu ? Or in any other distribution of linux having authpuppy running ?

Finally, I have this question for quite a while now, virtualhost. The main purpose of virtualhost is to have 2 or more web site running on the same machine. But i will always have a single web site running on my machine. So what's the need to have virtual host line in httpd.conf when there is only a single website running ?

Thanks for your excellent support Geneviève

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

I'm still having the same error in Ubuntu 12.04 Lts with a Mysql server. I've made a basic installation sheet with all it need to make everything work when it's time to make a php check_configuration.php. So i don't know if i need to make a subject (the prerequisite is so basic on the main installation page of authpuppy). So here's something who work :

With mysql-server :

sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install mysql2
sudo apt-get install php5-dev
sudo apt-get install php-pear
sudo apt-get install apache2-prefork-dev build-essential
pecl install apc
add extension=apc.so in /etc/php5/apache/php.ini
add extension=apc.so in /etc/php5/cli/php.ini
change short_open_tag=on to off in php.ini (apache dir and cli dir)
add the configuration lines of virtualhost in /etc/apache2/httpd.conf as it is wrote in the authpuppy installation
page
add subdirectory "authpuppy" in /var/log/apache2
sudo nano /etc/hosts
change the entry :
127.0.0.1 localhost
to
127.0.0.1 authpuppy.localhost
ctrl o
ctrl x
sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart
pecl install pdo_mysql
sudo apt-get install php5-curl
sudo apt-get install php5-xsl
download last version of authpuppy in tmp dir
cd /tmp
sudo tar xvzf authpuppy-<version>-<stability>_<packaging>.tgz
sudo mv authpuppy /var/www/
chmod -R a+w /var/www/authpuppy
cd /var/www/authpuppy
sudo chown -R www-data config
sudo chown -R www-data cache
sudo chown -R www-data log
sudo chown -R www-data data
sudo chown -R www-data plpcgins
sudo chown -R www-data web
cd /var/web/authpuppy
symfony cc

I didn't include some of the configurations lines who already are in the authpuppy installation page, But everyhting necessay is there. For the creation of new local user, i'll try if i had this error with a postgress sql database.

and everything may be there

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

i forgot to mention the line related to mysql database creation and mysql main user creation.

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

Everything work fine when i am in Debian Squeeze and while i'm using PostgresSQL database with authpuppy. In fact i had no errors in what i know and i what i did before. But when i used Mysql database especially in Ubuntu i had errors related to local users creation and i still have them.

I don't know if these bugs are related to :

1-Something i did wrong in the installation process of authpuppy in Ubuntu.
2-Something related to Ubuntu 12.04 LTS
3-Something related to MySQL Database.

But one thing i'm sure of, is that i made so many installation of Authpuppy that i can confirm that in Debian it work definitively better. Ubuntu seems to avoid some security points to have their OS being easier to manage for a beginner in Linux. I'm not saying that i'm not a beginner too, but the more i learned the more i know.

The installation of what surround authpuppy in Debian is different than the installation of what surround authpuppy in Ubuntu. I mean the librairies used by apache2, php5 and mainly in php accelerators and pdo. Ubuntu, for example, use the old way using pdo by asking to install pdo_mysql while debian just need
php5-pgsqlp library to have both pdo and pdo_pgsql active. The easiest way to know if these librairies are install is by doing a php -m who will verify if both PDO and pdopgsql (if we are using postressql database). It is an useful command who don't change anything.

So this is it.

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

It's seem that there is nobody here from what the time i took here till some days now. I have this kind of impression to write to myself and responding to myself. But before asking something else, i'll wait to have some "sign of life" here.

I will have other questions about how to configure my router (with DD-WRT and WifiDog service in the firmware) to have interoperability with the authentification server.

Thanks,

André

Revision history for this message
jackson (neojack34-isf) wrote : Re: [Bug 1016791] Re: New user authentification test while i'm on the admin page

Hello,

I must admit that I don't understand much of the point of what your were
saying.

Maybe the "wall of text effect"
Also, I use the system every day but I did not install it, so I had no clue

I may be able help you to configure your linksys wrt54g

Cordialement
Jackson JOSEPH-EUGENE
Coordinateur technique et des bénévoles Ile Sans Fil

2012/7/2 Andrei <email address hidden>

> It's seem that there is nobody here from what the time i took here till
> some days now. I have this kind of impression to write to myself and
> responding to myself. But before asking something else, i'll wait to
> have some "sign of life" here.
>
> I will have other questions about how to configure my router (with DD-
> WRT and WifiDog service in the firmware) to have interoperability with
> the authentification server.
>
> Thanks,
>
> André
>
> --
> You received this bug notification because you are subscribed to
> AuthPuppy.
> https://bugs.launchpad.net/bugs/1016791
>
> Title:
> New user authentification test while i'm on the admin page
>
> Status in AuthPuppy authentication server for Wifidog networks:
> Triaged
>
> Bug description:
> After login on the administrative login page, i went to the "Auth
> Local User section", i clicked on "my account", i thought that having
> already a user name defined for the administration account, it would
> be accepted as a local user, but that's ok. So i clicked on "sign up
> for a new account," i wrote all it need to have a new account, the two
> checkboxes are checked, and when i clicked on the confirmation button,
> i get a symfony web page with a 500 interal server error.
>
> This bug is in Firefox.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/authpuppy/+bug/1016791/+subscriptions
>

Revision history for this message
gbastien (gbastien02) wrote :

Well, it's vacation time ;-) And most of your posts look more like comments and there's nothing to answer.

I don't know what to tell you. It works well here on Ubuntu and postgresql and mysql.

If you have an email configuration problem, you just need to configure it right. Read the bug mentioned in an earlier post that explains how to do this. Here's the link again: https://bugs.launchpad.net/authpuppy/+bug/621394

As for the virtualhost... It just works whether you have one or many sites... So why not use it!

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

Joseph-eugene : Thanks, Joseph. There some question among what i wrote before but i have to admit that they are not in one message and that it can be hard to understand. For the configuration of the router i will be glad to know how to do it, so i'll get back to you as soon as possible. When you'll have time, i would appreciate that you teach me that part of the installation who's totally unknown for me.

Geneviève: It's ok Geneviève. You're right on what you say. This is vacation time, and everybody have the right to have some. Anyway, i'll see the link you gave me again. I must admit that the config line in httpd.conf are necessary. I don't remember why i tried not to used it. Anyway.

Thanks for both of you,

Sincerely,

André

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

It is still true, logged as admin, making a new local user account, save it, and it crash the server.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.