Closed rossedman closed 11 years ago
Might be related to #10. Still not completely sure why this is happening, but there was a race condition in Yeoman that was causing this before, I think...
I did run into this specific problem at one point, but while trying to figure it out it just stopped happening. If you happen to have some time to investigate then please let me know what you find and I will try to get a fix in asap.
I believe this could be a permissions error in my setup but am really not sure. Wordpress gives me the FTP Connection screen anytime I want to do anything which suggests file permissions. I tried chown
-ing and doing some other fixed in apache and have gotten nowhere. Will keep you posted.
If anyone else has this issue please chime in with more details. Otherwise I am going to close this out and cannot replicate.
I am having the same problem it hangs at the changing of the permissions as well
Setting Permissions: 0775 on wp-content
I tried then tried running $ sudo yo wordpress
But yeoman won't let me do that
Easy with the "sudo"; Yeoman is the master around here.
I'm using yeoman 1.0.3 and generator-wordpress 1.0.6 on a Macbook Air using Mountain Lion
There is a race condition that causes this inside yeoman. Since I cannot consistently reproduce this situation I have been unable to fix it. But just in case, can you post your yeopress settings, the part between the red lines when it asks for confirmation, so I can investigate?
WordPress URL: http://blog.mydomain.com Database table prefix: ing_ Database host: localhost:8889 Database name: blog_mydomain Database user: root Database password: root WordPress version: 3.5.1 WordPress install directory: . WordPress content directory: wp-content Initialize a Git repo: Yes Install WordPress as a Git submodule: No
I'm using MAMP
Bump!
WordPress URL: http://local.wp-test.com
Database table prefix: wp_
Database host: localhost
Database name: wp_test2
Database user: developer
Database password: developer
WordPress version: 3.5.1
WordPress install directory: .
WordPress content directory: wp-content
Initialize a Git repo: Yes
Install WordPress as a Git submodule: No
Same here.
WordPress URL: http://[irrelevant].com
Database table prefix: wp_
Database host: localhost
Database name: wp_[irrelevant]
Database user: [irrelevant]
Database password: [irrelevant]
WordPress version: 3.5.1
WordPress install directory: .
WordPress content directory: wp-content
Initialize a Git repo: Yes
Install WordPress as a Git submodule: No
Theme install directory: wp-content/themes/[irrelevant]
I am also pointing at a local tarball (instead of a remote one) - not sure if that's relevant. Seems like that should work regardless, no?
Sorry you all are having this issue. Using similar settings to what you are all using, I have still not been able to replicate this. I have tried 4 or five times, even deleting my yeoman cache to mimic a first time run.
Could you all make sure that you have the most up-to-date versions of node, yo and this generator, then re-run the generator?
Also, I found previously that just removing the generated files and re-running the generator would get it working. This is not a solution to the problem, but at least it might get you off the ground with YeoPress.
Ran brew upgrade node
& npm update -g
, so everything should be up-to-date. Below are the versions of the packages I'm running.
node@0.10.17
yo@1.0.4
generator-wordpress@1.0.6
Completely removed old installation attempts, and tried again. Still hangs :unamused:
If anyone who can replicate this wants to get in there and figure out where the generator gets to, please help by posting what you find.
The method that sets permissions is here. Also, I applied a change on the develop branch that may help, but I doubt it. If you feel like trying out the develop branch you can check out the repo and link it up with npm link
.
@wesleytodd What's suppose to happen in the process after permissions are set?
Either a git commit or it starts the theme install, depending on weather you are using git or not. See the link above for the spot in the code where this happens, it is fairly straight-forward.
I'm also getting this bug. Everything installs properly until "Setting Permissions: 0775 on wp-content". It just freezes there.
Tool versions: Max OSX node v0.10.18 npm 1.3.11 yo 1.0.4 bower 1.2.6 wordpress generator (1.1.1)
The generator worked when answering the questions a bit differently. I'll look more closely at this later, but the only thing I did differently was A) not use git and B) specify a directory.
WordPress URL: http://example.com Database table prefix: wp_ Database host: localhost Database name: myDBname Database user: root Database password: root WordPress version: 3.6.1 WordPress install directory: . WordPress content directory: wp-content Initialize a Git repo: Yes Install WordPress as a Git submodule: No Add WordPress Core files to .gitignore?: No
WordPress URL: http://example.localhost Database table prefix: wp_ Database host: localhost Database name: myDBname Database user: root Database password: root WordPress version: 3.6.1 WordPress install directory: cms WordPress content directory: content Initialize a Git repo: No Install WordPress as a Git submodule: No Add WordPress Core files to .gitignore?: No Theme install directory: content/themes/mytheme
For those of you seeing this issue. Let's see if updating yeoman-generator
solved your problems. See commit: 1287c07df1d20243673584f7c3b0276c01512dd5
Please post back here if this fixes your issues.
I updated the to a newer version, 0.11.4
of yeoman-generator
. There were issues preventing me from updating to the newest version. See this issue for more information on that: https://github.com/yeoman/generator/issues/350
Since that last update, is anyone still having this problem?
Still having the problem (on the newest version of yeoman-generator; 0.13.4). Only when enabling initializing Git repo though.
@bemeall The current release of YeoPress specifies 0.11.4. Are you perhaps not looking at the version installed with YeoPress?
I am going to be adding better logging for the next major release. Hopefully this will help us track this down.
You're right, it is on 0.11.4 for YeoPress. But not working anyway. Hope the logging helps indeed.
Find the cause in my case. It wasn't the permissions but that the git:// url wasn't accessible. It worked at home, but not at work. Adjusting the firewall fixed the 'hanging' problem.
AAAHH!!! Yeah, the first person to actually fix this problem, thanks @bemeall. So maybe some sort of progress markings, along with a verbose logging mode would help. That way people can narrow into where the problem is occurring.
I have tried this on multiple machines and in multiple environments and currently the generator hangs at Setting Permissions: 0775 on wp-content for me. This never makes it to the theme install. Not sure why it would be doing this, as it has worked for me before but is doing it consistently.