?
avatar infograf768
infograf768
13 Nov 2017

SEE #17964
URL:
http://localhost:8888/joomla40/installation/index.php?view=setup

Result
install40

Cookies. sessions, etc. cleaned

avatar infograf768 infograf768 - open - 13 Nov 2017
avatar joomla-cms-bot joomla-cms-bot - change - 13 Nov 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Nov 2017
avatar PhocaCz
PhocaCz - comment - 13 Nov 2017

Hi, confirmed, I get the same results.

avatar dgt41
dgt41 - comment - 13 Nov 2017

@infograf768 @PhocaCz can you try with port 80? Does that work for you?

avatar laoneo
laoneo - comment - 13 Nov 2017

Does the workaround in #14956 help?

avatar infograf768
infograf768 - comment - 13 Nov 2017

Can't do vagrant

avatar dgt41
dgt41 - comment - 13 Nov 2017

you don't have to, just change the path for the session folder in the provider

avatar laoneo
laoneo - comment - 13 Nov 2017

On the line here https://github.com/joomla/joomla-cms/blob/4.0-dev/installation/src/Service/Provider/Session.php#L56 I have to change it always to $handler = new FilesystemHandler('/tmp');.

avatar wilsonge
wilsonge - comment - 13 Nov 2017

On the line here https://github.com/joomla/joomla-cms/blob/4.0-dev/installation/src/Service/Provider/Session.php#L56 I have to change it always to $handler = new FilesystemHandler('/tmp');.

Does your php user not have write access to the session directory created?

avatar laoneo
laoneo - comment - 13 Nov 2017

It has, but for some reasons it doesn't work in PHP. Just wanted to see if @infograf768 is hit by the same bug.
Pr #16918 solves that bug as it uses the default session provider from core.

avatar infograf768
infograf768 - comment - 13 Nov 2017

Well, it would rather be $handler = new FilesystemHandler(JPATH_ROOT . '/tmp');
and, sorry to say, but same issue

avatar laoneo
laoneo - comment - 13 Nov 2017

I had to choose something outside of the Joomla directory like /tmp. But if it doesn't help, then sorry for the noise.

avatar PhocaCz
PhocaCz - comment - 13 Nov 2017

Changing to $handler = new FilesystemHandler('/tmp'); did the trick but then I got

Imgur

even the installation went successfully :idea: and I can now access both sites (frontend, backend)

Jan

avatar franz-wohlkoenig franz-wohlkoenig - change - 13 Nov 2017
Category com_installer
avatar franz-wohlkoenig franz-wohlkoenig - change - 13 Nov 2017
Status New Discussion
avatar wilsonge
wilsonge - comment - 13 Nov 2017

@PhocaCz had you installed 4.x before the new installer succesfully then? Because we moved to the new session package a while ago - so seems very odd that part would start erroring now.

As for the database issue - I'll take a look into that - it's probably something missing between the Joomla CMS and Framework database package somewhere

avatar infograf768
infograf768 - comment - 13 Nov 2017

I had to choose something outside of the Joomla directory like /tmp

/tmp is not outside the Joomla directory, just oustside the installation directory. Or have I misunderstood something?

avatar dgt41
dgt41 - comment - 13 Nov 2017

@infograf768 I think you need to use the OS tmp directory

avatar mbabker
mbabker - comment - 13 Nov 2017

Your system's /tmp directory, not Joomla's (/path/to/joomla/tmp).

avatar infograf768
infograf768 - comment - 13 Nov 2017

No sure what you mean, sorry.
I use MAMP, my test is in a subfolder of MAMP/htdocs/ i.e. htdocs/joomla40/ but it could be in a sub-sub-folder
MAMP tmp directory is at the same level as htdocs.

avatar mbabker
mbabker - comment - 13 Nov 2017

No. Your Mac has a /tmp directory at the same level as your /Users directory at the root of your hard drive. This is the system temp directory.

avatar infograf768
infograf768 - comment - 13 Nov 2017

well, I see indeed a session there if I use '/tmp'
deleted it. Deleted cookies.
Same results

avatar dgt41
dgt41 - comment - 13 Nov 2017

well MAMP's PHP might be using /Applications/MAMP/tmp/php instead of OS's /tmp

avatar infograf768
infograf768 - comment - 13 Nov 2017

what would then be the code?
I mean after $handler = new FilesystemHandler(
taking into account the fact that the joomla folder may be in a sub-sub-sub folder...

avatar mbabker
mbabker - comment - 13 Nov 2017

To use the system temp directory in PHP you'd call sys_get_temp_dir() (may be off by a couple characters), or just hardcode '/tmp' for the parameter. Or pass nothing and the filesystem handler will try to use the configured PHP session path and fall back to the system temp directory.

avatar infograf768
infograf768 - comment - 13 Nov 2017

@mbabker I already tested using the OS directory with
$handler = new FilesystemHandler('/tmp'); and that did indeed created a session there. It did not work either. See #18560 (comment)
I also tested with no param
same issue
I give up

avatar infograf768
infograf768 - comment - 13 Nov 2017

and var_dump(sys_get_temp_dir()); here gives
string(48) "/var/folders/n7/b0gjd1nj7n5g6bpht8m798yc0000gp/T"

avatar infograf768
infograf768 - comment - 13 Nov 2017

@dgt41
using
$handler = new FilesystemHandler('/Applications/MAMP/tmp/');
does save the session there, but same result.

avatar dgt41
dgt41 - comment - 13 Nov 2017

@infograf768 what version of mamp are you using?

avatar infograf768
infograf768 - comment - 14 Nov 2017

@dgt41
4.2

avatar infograf768
infograf768 - comment - 14 Nov 2017

Updated to 4.2.1 => same issue.

avatar laoneo
laoneo - comment - 14 Nov 2017

@infograf768 I'm not sure, if you have the same issue as @PhocaCz has.

avatar infograf768
infograf768 - comment - 14 Nov 2017

Me not know...

avatar infograf768
infograf768 - comment - 14 Nov 2017

If I use Safari instead of Firefox, I get

 Error
An error has occurred while processing your request.
1045 Access denied for user 'root'@'localhost' (using password: NO)

This when changed to
$handler = new FilesystemHandler('/tmp'); or still using the sessions folder

avatar dgt41
dgt41 - comment - 14 Nov 2017

IIRC that error comes from multiple instances, eg you might have 2 session files (probably some method is not returning as it should be)

avatar dgt41
dgt41 - comment - 14 Nov 2017

By the way are you testing on the latest 4.0 branch or on the Branch for the installer?

avatar infograf768
infograf768 - comment - 14 Nov 2017

IIRC that error comes from multiple instances, eg you might have 2 session files (probably some method is not returning as it should be)

Only one session file here

I am testing on latest 4.0 branch

avatar infograf768
infograf768 - comment - 14 Nov 2017

hmm, got it to work at last by using Firefox "View Cookie Information" and deleting the cookie there instead of using Cookies Manager +

Folks, this process is too complex for testers. In J3, things are simple. We just modify the db name or keep the same with the same table prefix, click on delete backup and we are done.

avatar brianteeman
brianteeman - comment - 14 Nov 2017

So the problem you had was that your cookies manager was not deleting the cookie but your browser was?

avatar dgt41
dgt41 - comment - 14 Nov 2017

Folks, this process is too complex for testers.

Which process are you referring to?

avatar infograf768
infograf768 - comment - 14 Nov 2017

HMM, it DID succeed once but no more.
What I did was:

So the problem you had was that your cookies manager was not deleting the cookie but your browser was?

Cookies Manager+ is an extension of Firefox.
Looks like it was not deleting the cookie as it should have although it did show it was deleted OK.

In Safari, we use Manage Web Site Data to delete specific cookies (in this case localhost) and I still got the 1045 Access denied for user 'root'@'localhost' (using password: NO)

Which process are you referring to?

The process of reinstalling j4 when the branch has been updated.


NOTE: Something is wrong in the Kingdom of J4 installation

avatar dgt41
dgt41 - comment - 14 Nov 2017

The process of reinstalling j4 when the branch has been updated.

What do you mean? Did you try to install it again over the old one?

avatar infograf768
infograf768 - comment - 14 Nov 2017

I did not.
What I am saying is that we will have to do it in the future for other tests modifying installation.
In 3.x, it was real easy: delete the configuration.php file and start installing again on the updated J.
Now, although we do have obviously a serious problem to be solved, one would have eventually to delete all cookies (make sure they are and all depends possibly on the browser)+ whatever necessary which I can't imagine.

avatar dgt41
dgt41 - comment - 14 Nov 2017

although we do have obviously a serious problem to be solved, one would have eventually to delete all cookies (make sure they are and all depends possibly on the browser)+ whatever necessary which I can't imagine

Ok hold on what are those serious problems you are talking about here?
And also the cookie thing can be solved pretty easily...

avatar laoneo
laoneo - comment - 14 Nov 2017

I was installing Joomla many times with the new installer and had never cookie problems.

avatar infograf768
infograf768 - comment - 14 Nov 2017

The serious problem, for now is that I can't install J4 here.

avatar PhocaCz
PhocaCz - comment - 14 Nov 2017

Ok hold on what are those serious problems you are talking about here?

Maybe I can help you to understand the situation. I work with Joomla! more over 10 years. As developer I install Joomla! very often. Because the standard installer is very powerful, simple and fast, I didn't prepare any automatic function to install Joomla! in last 10 years. Just because the manual installation is fast and simple. I installed it more than a thousand times - on different environments with different limits (permissions, ownership, ftp layer, etc. etc.). One could say, I have really strong experiences with installing Joomla!. Now I just want to install Joomla! 4 and I am lost in loop. The question is what standard inexperienced user will do in such situation? Theory and practice consistently says: in such case this user is probably lost regarding using Joomla! This seems like a serious problem. ?

avatar infograf768
infograf768 - comment - 15 Nov 2017

After the last Firefox update (57.0 Quantum, available yesterday evening), I now only get the same error as in Safari and the one @PhocaCz got i.e.

Error
An error has occurred while processing your request.
1045 Access denied for user 'root'@'localhost' (using password: NO)

This without touching at the sessions or cookies. Just deleting configuration.php
The former session in installation/sessions is replaced by the new one.

avatar wilsonge
wilsonge - comment - 16 Nov 2017

OK. right. i will chat to @rdeutz today as he can reproduce that one. I will try and get that sorted today. So does this mean we had some sort of firefox issue then? interesting if so...

avatar infograf768
infograf768 - comment - 16 Nov 2017

interesting if so

Indeed.

avatar wilsonge
wilsonge - comment - 16 Nov 2017

So @laoneo got a 1045 the first time he used the installer and was then unable to reproduce :(

avatar infograf768
infograf768 - comment - 16 Nov 2017

I get it all the time.

avatar infograf768
infograf768 - comment - 16 Nov 2017

Hmm, I get again the issue at the origin of the Message... Grrr

avatar Fedik
Fedik - comment - 16 Nov 2017

1045 the first time he used the installer and was then unable to reproduce

that is easy, just enter wrong PW or user ?

The installer should not continue and crash and burn, when there no DB connection, it should show some useful message to user: "Please check username or password" or something. I made issue for it some time ago #18557

Just guessing:
is there no any input filtering for PW?
maybe @infograf768 password contain special symbols which filtered out, or somehow encoded while request

@infograf768: Now, although we do have obviously a serious problem to be solved, one would have eventually to delete all cookies (make sure they are and all depends possibly on the browser)+ whatever necessary which I can't imagine.

I am agree.
it even easy to reproduce: "Just enter wrong password and then try to continue or go back" ?
You will stuck on the error page.

avatar infograf768
infograf768 - comment - 16 Nov 2017

i used for superuser
admin/admin
and for db
root/root
which i do usually when testing on localhost

avatar infograf768
infograf768 - comment - 17 Nov 2017

Loading failed for the <script> with source “http://localhost:8888/joomla40/media/system/js/fields/passwordview.min.js?d1fa27daf148fd07125aa694c437b914”.

avatar Fedik
Fedik - comment - 17 Nov 2017

@infograf768 do you have configuration.php saved after error? please check what user/password stored there, is they are correct.

avatar infograf768
infograf768 - comment - 17 Nov 2017

@Fedik

do you have configuration.php saved after error

Nope, as I do not get anymore the 1045 but the situation described in my original issue (Firefox Quantum).

When I did get the 1045, reloading the page did allow to go on installing and, yes, configuration.php was created.

avatar wilsonge
wilsonge - comment - 17 Nov 2017

The original firefox issue is fixed with c1eaef8

We're also committing a bodge for the 1045 issue that fixed things for @rdeutz until we fully understand the race condition (he couldn't reproduce it on chrome but could on firefox and safari ?‍♂️ ) with 84a79ca

avatar wilsonge
wilsonge - comment - 17 Nov 2017

Can you please test again @infograf768

avatar infograf768
infograf768 - comment - 17 Nov 2017

@wilsonge
?
Closing as installation does not show these specific problems anymore.
We now can concentrate on the various missing aspects of it.
Thanks.

avatar infograf768 infograf768 - change - 17 Nov 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-11-17 14:08:17
Closed_By infograf768
avatar infograf768 infograf768 - close - 17 Nov 2017

Add a Comment

Login with GitHub to post a comment