Installation Authentication Issue (Step 1)

Valandril
Valandril's picture

Joined: 2005-09-12
Posts: 15
Posted: Sat, 2005-09-17 08:14

I am getting the error message "Error: your login.txt key does not match correctly. Please download a new authentication string from below and try again. " when I try to install G2. I know the file is right and contains the proper info.

Can I do something to bypass that authentication check or what is going on? My file (login.txt) is right and I have tried it several times.

Any help - thanks!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-09-17 13:18

did you try it with different browsers? IE, FF, ... ? and if it works with another browser, we need to know with which you had problems.

 
noid

Joined: 2005-09-17
Posts: 1
Posted: Sat, 2005-09-17 14:16

i have the same problem, when i reach step 6 and give the ok, it drop me to the start
i've tried the installation from ff and ie 6 :(

 
Valandril
Valandril's picture

Joined: 2005-09-12
Posts: 15
Posted: Sat, 2005-09-17 15:15

I tried it with FF 1.5B. I tried cycling the permissions on the login.txt file. I looked at the class code for authenticatrion, and it seemed like it was checking for the existance of the login.txt file in my "/home2/wfowlkes/www/gallery" directory (it states that on the authentication web page with the random numbers) when I know my working directory (when I SSH) is "/home/wfowlkes/www/gallery". However, if I were to change to the "/home2..." directory while I SSH in, I can, and it is like a replication of that directory or a "redirect". But I can not ftp nor sftp to any "/home2" directory - just my "/home..." directories.

I have listed some PHP info below - do not know if it helps, and it is a lot, but I had been using PHP4 and Gallery 1 since before it was beta, and wasdying for G2 to be released finally so I could upgrade.

I moved from PHP4 to this version of PHP, and G1 broke. So at the moment, al 2GB of my photo gallery are down.

Any thoughts, please?

PHP Info:

Build Date Aug 21 2005 22:09:25
Configure Command './configure' '--with-mysql' '--enable-track-vars' '--with-xml' '--enable-memory-limit=yes' '--enable-bcmath' '--enable-calendar' '--with-gd' '--enable-gd-native-tt' '--enable-gd-imgstrttf' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-zlib-dir=/usr/include' '--with-freetype-dir=/usr/lib' '--with-gdbm=/usr/include' '--enable-trans-sid' '--with-imap' '--with-imap-ssl' '--with-gettext' '--enable-sockets' '--with-mcrypt' '--enable-xslt' '--with-xslt-sablot' '--with-sablot-js' '--enable-sablot-errors-descriptive' '--with-xmlrpc' '--with-dom' '--with-ming' '--with-curl' '--enable-ftp' '--with-kerberos' '--with-openssl' '--with-iconv' '--with-pear' '--enable-exif' '--enable-force-cgi-redirect'
Server API CGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lib/php.ini
PHP API 20041225
PHP Extension 20050617
Zend Extension 220050617
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.zlib, https, ftps
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, convert.iconv.*, zlib.*

PHP Core Info:

allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags On On
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap /etc/browscap.ini /etc/browscap.ini
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2039 2039
expose_php On On
extension_dir ./ ./
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/local/share/pear:/usr/local/lib/php .:/usr/local/share/pear:/usr/local/lib/php
log_errors Off Off
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 1200 1200
max_input_time -1 -1
memory_limit 32M 32M
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 75M 75M
precision 14 14
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv On On
register_globals On On
register_long_arrays On On
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from

sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 75M 75M
upload_tmp_dir /tmp /tmp
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance Off Off
zend.ze1_compatibility_mode Off Off

PHP Session Info:

session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 4 4
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 1 1

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-09-17 15:25

noid, that's not the same problem.
the original poster doesn't get past authentication step, you somehow lose your authentication / session.
please post a phpinfo link, the OS of your computer and the OS of the webserver etc.
FAQ: What information is required when I ask for help in the forums?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-09-17 15:30

Valandril probably that's a symlink or a webserver alias.
are you the admin of this webserver?

this is a weird setup. and if it actually is a symlink, then you should find the login.txt that you created in /home/... also in /home2/...
only something like a open_basedir restriction or something similar could cause that it thinks that the login.txt doesn't exist.

 
Valandril
Valandril's picture

Joined: 2005-09-12
Posts: 15
Posted: Sat, 2005-09-17 18:32

OS: Red Hat Enterprise Linux ES Release 3 (Tarron Update 4)

Not my webserver (hosted by third party)...

Apache - but still trying to find out the version....

 
Valandril
Valandril's picture

Joined: 2005-09-12
Posts: 15
Posted: Sat, 2005-09-17 18:33

Yes, it shows up in /home and /home2. I can see the file in both directories. When I put it in one it is also shown in the other, but I do not see it as a symlink...

 
Valandril
Valandril's picture

Joined: 2005-09-12
Posts: 15
Posted: Sat, 2005-09-17 18:37

Apache version (RPM): apache-1.3.33.rh73.rf-6

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-09-17 19:12

i can't really help you there.
can you ask your admin what the issue might be?

and what mechanism they are using to link /home to /home2/ ? symlinks are apache alias?

you'll have problems with G2 because we use dirname(__FILE__) everywhere to determine the current path and include other files. and it will always be something with /home2/ in your case. and it always does a file_exists.

 
Valandril
Valandril's picture

Joined: 2005-09-12
Posts: 15
Posted: Fri, 2005-09-23 15:30

I got the "/home2/..." / "/home/..." thing resolved by my hosting provider. Now, evertyhing shows "/home/..." nicely.

I STILL can not install Gallery 2. It is stuck in the "Authenticate Me" page, showing:

Error: your login.txt key does not match correctly. Please download a new authentication string from below and try again.

Authenticate
In order to proceed with the install, we have to verify that you are who you claim. The best way to be sure is to ask you to make a tiny change in the Gallery directory which will prove that you have the right permissions. So, we're going to ask that you create a new text file called login.txt in the /home/wfowlkes/www/gallery directory on your webserver (that's the same directory where main.php is located). It must contain the following randomly generated characters:

bd623e74c9dcf9d5abccbd28a0730cc6

As a convenience to you, we've prepared a correct version of login.txt for you. Download that and copy it into your /home/wfowlkes/www/gallery directory and you're all set.

Once you've uploaded the file, click below to continue.

Authenticate Me

I am unable to get passed this step.

I take the randomly generated id that is created (as shown above) and put it into a file called "login.txt" within that directory as asked. When I select "Authenticate Me", I get the same message as above, putting me in a perpetual loop.

Any ideas? I want to install this new, but this authetication process is stopping me.

HELP!!!!

Thanks....;)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-09-23 15:45

please delete the login file again, you should get the message that there is no login file. (wanna make sure you create login.txt in the right directory). sorry, you never know :)

then please try again.

 
Valandril
Valandril's picture

Joined: 2005-09-12
Posts: 15
Posted: Fri, 2005-09-23 21:50

I have started from scratch. I removed all of the Gallery 2 files, and re-copied them back. I created a login text file with the random numbers provided, and still get the same error: "Error: your login.txt key does not match correctly. Please download a new authentication string from below and try again."

In addition to copying the random numbers generated and shown on the error web page to a newly created text file, I also tried to use the supplied login.txt file created by the web page each time but to no avail.

One thing I did notice, however, was that the contents of the login.txt file that the web page created each time DID NOT MATCH the randomly generated numbers show on the page. In each attempt, they never matched.

I really want to use the new Gallry 2, but I can not get pass the authentication process....

Please advise...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-09-23 22:00

does when you hit refresh, does it show new random numbers every time? it shouldn't.

 
Valandril
Valandril's picture

Joined: 2005-09-12
Posts: 15
Posted: Fri, 2005-09-23 22:01

Yes, it does.

 
Valandril
Valandril's picture

Joined: 2005-09-12
Posts: 15
Posted: Fri, 2005-09-23 22:05

I am using MS IE v6.0.2900.2180.xpsp_sp2_gdr.050301-1519... Dont know if that helps any...

 
Valandril
Valandril's picture

Joined: 2005-09-12
Posts: 15
Posted: Fri, 2005-09-23 22:08

I also check for "newer versions of the page" every time as opposed to "automatically" or "when I start the browser"... don't know if that matters, either - just throwing it out there...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-09-23 22:11

in prior posts, you said you tried it also with other browsers too. so it's most probably a server issue and not a client side issue.

if you PM me the url and FTP information, i could try my luck tomorrow.

 
Valandril
Valandril's picture

Joined: 2005-09-12
Posts: 15
Posted: Fri, 2005-09-23 22:23

Yes, but I have only tried it with Firefox on my laptop (in addition to my IE version I listed above) and a version of IE running on XP SP2 on a laptop on display with an internet connection on a shelf in a Comp USA this afternoon while I was there during lunch...

The same thing happens in Firefox. I refresh the web page (with the authentication key), and it changes the randomly generated values with each page refresh...

Could there be a PHP directive or a session issue? Is there a verified list of PHP directives that is required for Gallery 2 to work with? I wonder if that is an angle to try. If anyone can send me a definative listing of neccessary PHP directive settings, I can make mine adjust to those values and try it again.

The issue seems to be that when I copy the randomly generated value into a text file and then I advance to the page AFTER it, a new randomly generated value is created and is therefore different from what the previous page told me to type into the login.txt file, thus making it "different". Just a thought, though...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-09-23 23:41

these are the values of the session related php.ini variables from my php.ini. all other session variables are commented out in my php ini.
these values are not a recommendation or requirement for g2, but they may help you.

session.save_handler = files
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = 1
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0

 
Valandril
Valandril's picture

Joined: 2005-09-12
Posts: 15
Posted: Sat, 2005-09-24 04:32

Hmmm.... mine is setup entirely the same way.....

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-09-24 09:15

you're not the only one to have problems with the installer authentication. but you're the only one who can't even authenticate. a few other users lose their session or something like that in other steps and then fall back to step 2.

the other two being:
http://gallery.menalto.com/node/36734 and
http://gallery.menalto.com/node/36698

i haven't yet found a correlation in your setups / configs that could have to do with it, maybe you have more luck...

 
Valandril
Valandril's picture

Joined: 2005-09-12
Posts: 15
Posted: Sun, 2005-09-25 14:12

Is there anything I can do to get around the authentication process so that I can install Gallery and the modules?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-09-25 14:20

the thing is, if the authentication doesn't work, you probably lose session data too, session data that is required to finish the installer successfully.
without debugging your installation, i don't really have a constructive idea.

 
Valandril
Valandril's picture

Joined: 2005-09-12
Posts: 15
Posted: Mon, 2005-09-26 03:12

PHP Info: http://www.sios.com/phpinfo.php

This is a brand new installation into http://www.sios.com/gallery ...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-09-26 05:36

php 5.1.0 RC3 has known bugs which make it not work with G2.
maybe your 5.1.0 RC1 is also bugged.

i'd try a less-bleeding-edge version of PHP, either php 5.0.5 or php 4.3.12 or 4.4.0 .

 
Valandril
Valandril's picture

Joined: 2005-09-12
Posts: 15
Posted: Wed, 2005-09-28 23:16

I rolled back my PHP to 5.0 and everything worked! I flew through the installation, imported my Gallery 1 images over, and am now tweaking my albums.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-09-28 23:32

ah, cool :)

another user tried PHP 5.1.0 RC3 and managed to install it. had a mod_rewrite / php issue though and had to report it. but at least this problem you had there should be solved in the final version of php 5.1.0.

 
lorddtk

Joined: 2005-10-05
Posts: 2
Posted: Wed, 2005-10-05 04:39

Hi there,
I got the same problem when I use mozilla and Firefox the validation code keeps changing.
But when I use IE it keeps to the same site but says it is the wrong key.
In the top of the page and in the buttom I get these messeges in all 3 browsers:

Warning: session_start(): open(/tmp\sess_ef4a4ee3f2df3fa1c3076a35dbacce85, O_RDWR) failed: No such file or directory (2) in D:\webroot\dj\Sterlie\Sterlie.dk\gallery2\install\index.php on line 77

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at D:\webroot\dj\Sterlie\Sterlie.dk\gallery2\install\index.php:77) in D:\webroot\dj\Sterlie\Sterlie.dk\gallery2\install\index.php on line 77

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at D:\webroot\dj\Sterlie\Sterlie.dk\gallery2\install\index.php:77) in D:\webroot\dj\Sterlie\Sterlie.dk\gallery2\install\index.php on line 77

Install Steps
√ Welcome
1 Authenticate
2 System Checks
3 Installation Type
4 Storage Setup
5 Database Setup
6 Admin User Setup
7 Create Config File
8 Install Gallery Core
9 Install More Modules
10 Finished
? Installer Help
X Start Over
Error: your login.txt key does not match correctly. Please download a new authentication string from below and try again.

Authenticate
In order to proceed with the install, we have to verify that you are who you claim. The best way to be sure is to ask you to make a tiny change in the Gallery directory which will prove that you have the right permissions. So, we're going to ask that you create a new text file called login.txt in the D:\webroot\dj\Sterlie\Sterlie.dk\gallery2 directory on your webserver (that's the same directory where main.php is located). It must contain the following randomly generated characters:

31bd55a0ce83c70515dc9830154dbef6

As a convenience to you, we've prepared a correct version of login.txt for you. Download that and copy it into your D:\webroot\dj\Sterlie\Sterlie.dk\gallery2 directory and you're all set.

Once you've uploaded the file, click below to continue.

Authenticate Me
Installation Status

Install 0% complete

Gallery: your photos on your website » gallery.sourceforge.net

Warning: Unknown(): open(/tmp\sess_ef4a4ee3f2df3fa1c3076a35dbacce85, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

can you help with that problem, because when I look in my directories there isn't any cookies from my site...

 
lorddtk

Joined: 2005-10-05
Posts: 2
Posted: Wed, 2005-10-05 04:41

Hi again

Sorry forgot to tell you that I have set FF and Mozilla to ask me if some site tries to set a cookie and they havn't warned me.
And I have know Idea where I role back my php versions:) I work on a standard laptop with XP as operating system.

Regards

 
takabanana

Joined: 2005-06-22
Posts: 15
Posted: Tue, 2005-11-15 10:42

Just FYI; I had the same problem installing G2: kept on going back to the Authentication (Step 1) screen after the Installation Type screen (step 3). I "fixed" it by turning off my firewall (ZoneAlarm Pro).

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-11-15 13:05

thanks for letting us know!

 
trueshanti

Joined: 2005-11-16
Posts: 8
Posted: Wed, 2005-11-16 02:50

hi .. first i want to say that this tool is amazing .. the whole suite (g2 + gr ) .. amazing good piece of code .. anyway .. i also have that strange uniquekey problem .. the hash shown on the auth-page and that on shown in the downloadable-login.txt-version differ .. and surprise neitherone works .. i run a debian-packages default apache .. nothing special .. its not a symlink-issue , but i noticed different behavior through running different browsers .. on my macox-laptop i dont have this issue , though the auth-step is never secure ( nevermind its only my laptop :-) ) and always auths me :-) .. dont like this on the server .. so ??? i also didnt find out yet where the counterpart to the suggested uniquekey is stored .. its not a cookie .. no value matches .. if i know i could find out more .. thnx 4 help

br

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-11-16 09:52

it's storing the auth key in the session.
see install/index.php end of file, -> serialize ...
it's using PHP's session mechanism (thus storing the session as a file in the session save dir, see phpinfo for the path).

 
trueshanti

Joined: 2005-11-16
Posts: 8
Posted: Wed, 2005-11-16 13:46

this i've seen already .. funny is that the keyvalue is stored ( of course ) in the sessionfile of the PHPsession it was created , but not in php-session-file the "Auth me"-Link points to ( there i can find a different keyvalue - but even this on , put in login.txt doesNOT work ) ( e.g. created in session 123ABC , next-PHPsession 321CBA ) ???:-/

have to say i dont have sessionproblems in this php.ini-config on other applications .. like i said nothing special .. stable config

maybe i lack some knowledge , but shouldnt PHPSESSION be the same for the whole g2-configuration , or does it really change from access to access ( page to page ) ???

on my APPLE i never see PHPSESSION-Values appended to the links , and here it works fine ( ~ ) ..

just for info

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-11-16 17:52

it's cool that you're trying to debug it. if you succeed, you could help a lot other users too (maybe 1% of all g2 users have this problem, probably less).

when i browse to install, step 1 (auth step. it shows me the auth key: b261f98bc34b0636d64b8cfb4c49557b
and it sends me a cookie PHPSESSID with content/value: 41baa6bd5359c8481e2063eea9098fca

i check in phpinfo my session save_path, it is /tmp.
in /tmp, i do ls -latr and see a file:
sess_41baa6bd5359c8481e2063eea9098fca

the files contents is the serialized data:

install_path|s:52:"/var/www/localhost/htdocs/gallery2/install/index.php";
language|s:5:"en_US";
install_steps|s:1663:"a:12:
{i:0;O:11:"welcomestep":4:{s:11:"_stepNumber";i:0;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;}
i:1;O:16:"authenticatestep":6:{s:11:"_stepNumber";i:1;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;s:10:"_uniqueKey";s:32:"b261f98bc34b0636d64b8cfb4c49557b";s:10:"_firstTime";b:0;}
i:2;O:16:"systemchecksstep":4:{s:11:"_stepNumber";i:2;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;}
i:3;O:13:"multisitestep":6:{s:11:"_stepNumber";i:3;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;s:12:"_isMultisite";N;s:11:"_configPath";N;}
i:4;O:16:"storagesetupstep":4:{s:11:"_stepNumber";i:4;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;}
i:5;O:17:"databasesetupstep":4:{s:11:"_stepNumber";i:5;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;}
i:6;O:18:"adminusersetupstep":5:{s:11:"_stepNumber";i:6;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;s:20:"_hasBeenLoadedBefore";N;}
i:7;O:20:"createconfigfilestep":5:{s:11:"_stepNumber";i:7;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;s:10:"_firstTime";b:1;}
i:8;O:21:"installcoremodulestep":4:{s:11:"_stepNumber";i:8;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;}
i:9;O:23:"installothermodulesstep":4:{s:11:"_stepNumber";i:9;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;}
i:10;O:10:"securestep":4:{s:11:"_stepNumber";i:10;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;}
i:11;O:12:"finishedstep":4:{s:11:"_stepNumber";i:11;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:1;}}";

i added newlines after each step, you see the auth key in the auth step.

now your job as user is to create a file called login.txt in your gallery2/ directoy, with a single line: b261f98bc34b0636d64b8cfb4c49557b

Questions:
1. don't you get such a session file in your php session save path?
2. what else differes?

 
trueshanti

Joined: 2005-11-16
Posts: 8
Posted: Thu, 2005-11-17 06:31

thats exactly what i described aboce :-) .. next time i make better examples :-) ..

i used the uniquekey provided in the session-file of the next session .. this is the way it should be .. the key is identical to the hash provided .. put into login.txt .. but no change :-( of behavior

Quote:
install_path|s:54:"/var/data/www/localhost/gallery/install/index.php";
language|s:5:"de_DE";
install_steps|s:1663:"a:12:
{i:0;O:11:"welcomestep":4:{s:11:"_stepNumber";i:0;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;}i:1;O:16:"authenticatestep":6:{s:11:"_stepNumber";i:1;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;s:10:"_uniqueKey";s:32:"5a7e2ee7e5c62aa2933cd20a7e6755b7";s:10:"_firstTime";b:0;}
i:2;O:16:"systemchecksstep":4:{s:11:"_stepNumber";i:2;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;}
i:3;O:13:"multisitestep":6:{s:11:"_stepNumber";i:3;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;s:12:"_isMultisite";N;s:11:"_configPath";N;}
i:4;O:16:"storagesetupstep":4:{s:11:"_stepNumber";i:4;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;}
i:5;O:17:"databasesetupstep":4:{s:11:"_stepNumber";i:5;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;}
i:6;O:18:"adminusersetupstep":5:{s:11:"_stepNumber";i:6;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;s:20:"_hasBeenLoadedBefore";N;}
i:7;O:20:"createconfigfilestep":5:{s:11:"_stepNumber";i:7;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;s:10:"_firstTime";b:1;}
i:8;O:21:"installcoremodulestep":4:{s:11:"_stepNumber";i:8;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;}
i:9;O:23:"installothermodulesstep":4:{s:11:"_stepNumber";i:9;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;}
i:10;O:10:"securestep":4:{s:11:"_stepNumber";i:10;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:0;}i:11;O:12:"finishedstep":4:{s:11:"_stepNumber";i:11;s:11:"_isComplete";b:0;s:10:"_isInError";b:0;s:11:"_isLastStep";b:1;}}";

for me this seems all very OK .. also the unique-key in the downloadable version of login.txt doesnt match :-(

so far no conclusion

 
trueshanti

Joined: 2005-11-16
Posts: 8
Posted: Thu, 2005-11-17 07:47

new enlightment:

it seems that the functions in AuthenticateStep.class cannot assign the right value for

$this->_uniqueKey

$fileAuth is always correct

it seems that the class generates the uniquekey everytime it is run , without asking the sessionfile for its right value

to debug this i entered a simple

Quote:
print $fileAuth;
print "<br>";
print $this->_uniqueKey;

after line 82 in AuthenticateStep.class

it shows that the final flow if ($fileAuth == $this->_uniqueKey), that should grant access takes the uniqueKey from the newly generated random-hash instead of loading it from the apache-sessionfile

since i think the code is welldone i suggest a php.ini problem .. but i cannot figure it out yet ..

so far

 
trueshanti

Joined: 2005-11-16
Posts: 8
Posted: Thu, 2005-11-17 08:31

All right ..

i found a solution that worked for me .. if this is also valid for the rest of the users having that problem it should find its way into FAQ .. or whatever

i removed a restrictive config from my php.ini

session.cookie_domain was misconfigurated since i use vhost and the gallery was none of these domains

so i hope it helps others

best regards and tnx 4 support

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-11-17 14:25

trueshanti

just to recapitulate:
1. for you, the cookie was never accepted by your browser / never sent back to the server because the cookie domain was wrong
2. the logical consequence is that g2 generates a new auth key for each refresh of the page in your case -> explains new $this->_uniqueKey for each request
3. what i don't understand is your statement "$fileAuth is always correct"
4. and i also don't understand "on my macox-laptop i dont have this issue , though the auth-step is never secure". can you verify that when you delete your cookies on your laptop and visit the installer again, that you don't need to create login.txt etc to advance to the steps 3 etc?

the installer works even when you don't accept cookies / if cookies don't work.
i just tested it again with opera / cookies disabled.
you just shouldn't refresh the auth step page until you created that login.txt

oh, i finally can reproduce lost session issues in the installer. it happens in an arbitrary step if you don't use cookies.
working on that now...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-11-17 16:37

cookieless installing was indeed broken and it's fixed now in cvs / tomorrows nightly snapshot.

 
trueshanti

Joined: 2005-11-16
Posts: 8
Posted: Fri, 2005-11-18 04:41

1. true

2. true

3. i mean there was no problem reading the key from login.txt

4. to resummarize: i have no cookie-domain-settings on my laptop :-)

"never secure" i have to take back , for i thought the auth-mechanism should always start wenn install is performed .. the auth-step was already finished thats why i am asked for it again on my laptop, and the Auth successes whenever i rerun the installations-steps again .. it seems that the sessions dont expire on my laptop-installation. i have to fix this

thanks for support

 
yclim

Joined: 2005-11-22
Posts: 5
Posted: Tue, 2005-11-22 15:43

hi...

i download the latest nightly build (G2/gallery-2.0.1+-nightly.zip 10489K 11-22-2005 03:32:49 AM).. replaced the whole install folder (with the new nightly build) but the installation still cannot work.. it still fail during authentication :( did i download the wrong update? if yes, where can i download the right one?

Can this problem be fix if i change the "session.cookie_domain" to blank?

Thanks!!!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-11-22 18:25

- session.cookie_domain = blank is fine. in that case the browser just defaults to the current path (e.g. /install/)
- you've got the latest snapshot, that's good

if you fail during the authentication step, i can't help you. that's just weird.
try:
- copy the auth string in your browser to a text file, do not use the login.txt download option
- create a text file, paste the auth key in it, save the file as login.txt and put it to the gallery2 dir
- click authenticate me

what i fixed was cookieless browsing / installing

 
yclim

Joined: 2005-11-22
Posts: 5
Posted: Wed, 2005-11-23 14:10

hi.. just for info..

the installer is working fine with php 5.03.. however gallery2 works with 5.04 or above as mentioned during installation..
After the hosting company upgraded the php for me to 5.05.. the installer simply could not work anymore..
I am asking my hosting company to downgrade the php to 5.04 and lets hope this will solve the problem.. ;) if it does.. i will post again to let u guys know.. :D

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-11-23 14:34

they should rather compare their php 5.0.3 and php 5.0.5 compile options and php.ini settings.

 
yclim

Joined: 2005-11-22
Posts: 5
Posted: Sun, 2005-12-04 13:47

hosting company refuse to download the php version.. i check the default php.ini setting for php 5.04 and 5.05.. they r the same.. its just won't work :( anyone manage to install gallery2 on php5.05 successfully?

[img]http://files1.imagedemon.com/upload/29112005051912/05120408526-336902125--1.jpg[/img]

 
yclim

Joined: 2005-11-22
Posts: 5
Posted: Tue, 2005-12-06 02:55

installed the latest nightly build but still can't solve the problem.. following is my php setup..

http://www.shortaways.com/phpinfo.php

 
CRU17Y

Joined: 2005-11-17
Posts: 8
Posted: Tue, 2005-12-06 11:27

I was getting the same error as well, i gave up and found another program to use.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-12-06 13:14

yclim

three questions:

1. i want to make sure you really have the latest version: please open install/index.php
please look at the first lines:

<?php
/*
 * ATTENTION:
 *
 * If you're seeing this in your browser, and are trying to install Gallery,
 * you either do not have PHP installed, or if it is installed, it is not
 * properly enabled. Please visit the following page for assistance:
 *
 *    http://gallery.sourceforge.net/
 *
 * ----------------------------------------------------------------------------
 *
 * $Id: index.php,v 1.65 2005/11/27 09:13:09 andy_st Exp $

is it also 1.65 ... for you there?

2. in the authentication step, if you open login.txt does it show the same auth key as the one you see in the browser?
3. when you click authenticate me, does the key change everytime? it should stay the same

 
gyphon

Joined: 2005-12-10
Posts: 4
Posted: Sat, 2005-12-10 03:35

seem to have the same problem of not getting by the first step. When I click to the link to make the login.txt I get:

Warning: session_start(): open(/tmp/php-ses/sess_7d79cdfae9e7ebfdd12d8e48ceaadadf, O_RDWR) failed: No such file or directory (2) in /nfs/cust/6/70/32/623076/web/gallery2/install/index.php on line 77

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /nfs/cust/6/70/32/623076/web/gallery2/install/index.php:77) in /nfs/cust/6/70/32/623076/web/gallery2/install/index.php on line 77

Warning: Cannot modify header information - headers already sent by (output started at /nfs/cust/6/70/32/623076/web/gallery2/install/index.php:77) in /nfs/cust/6/70/32/623076/web/gallery2/install/steps/AuthenticateStep.class on line 43

Warning: Cannot modify header information - headers already sent by (output started at /nfs/cust/6/70/32/623076/web/gallery2/install/index.php:77) in /nfs/cust/6/70/32/623076/web/gallery2/install/steps/AuthenticateStep.class on line 44

Warning: Cannot modify header information - headers already sent by (output started at /nfs/cust/6/70/32/623076/web/gallery2/install/index.php:77) in /nfs/cust/6/70/32/623076/web/gallery2/install/steps/AuthenticateStep.class on line 45

Warning: Cannot modify header information - headers already sent by (output started at /nfs/cust/6/70/32/623076/web/gallery2/install/index.php:77) in /nfs/cust/6/70/32/623076/web/gallery2/install/steps/AuthenticateStep.class on line 46
81bf92aabf92c2fdc3b14d12f0591a52
Warning: Unknown(): open(/tmp/php-ses/sess_7d79cdfae9e7ebfdd12d8e48ceaadadf, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp/php-ses) in Unknown on line 0

If I just copy and paste the key into a text on notepad and upload, the system said the key does not match.

any ideas?