Closed xuanchinh1994 closed 3 years ago
Hello! Thanks for the effort to report your plroblem in a new issue 🙇
First of all I'll report my answer given where you originally posted:
Hey @xuanchinh1994 ,
it would be better to open a fresh new help ticket; moreover because your problem in not releted with the one presented by @tommyyama2020 .
Just to give you a clue:
`open_http': 403 Forbidden (OpenURI::HTTPError)
means that your server is negating an HTTP connection from your local machine. Do you have HTTP basic auth or something similar blocking the site from public visits? FTP adapter needs to connect to the site through HTTP in order to get your database...if it can't connect there is not an effective workaround.
That said: don't know if you are used to HTTP errors, by the way when you receive a 403 it does mean that you've done a request to a remote server, you correctly hit it but it answers that you are trying to require a resource which is not permitted to be served. Obviously in your scenario this is a generalist motivation :)
Given your movefile.yml
the request reported in the log as
[secret]wp-content/dump.php?shared_key=217fb2b80a9d630f1aaf9f42f2719c4d73xxxxxxxxxxxxxxxxxxxxxxe186ea44ab29bf8fa
should be considered
https://sapot11.vn/wp-content/dump.php?shared_key=217fb2b80a9d630f1aaf9f42f2719c4d73xxxxxxxxxxxxxxxxxxxxxxe186ea44ab29bf8fa
I've tried to reach https://sapot11.vn/
address from my browser, but it does not reply, so I suppose this is not a public URL, thus it's impossible for me to analyze this aspect.
I'd ask: if you, from within your WSL, invoke the command
wget https://sapot11.vn/
what do you get in response? I indeed got
> wget https://sapot11.vn/ 482ms
--2020-12-22 22:32:16-- https://sapot11.vn/
Resolving sapot11.vn (sapot11.vn)... failed: nodename nor servname provided, or not known.
wget: unable to resolve host address ‘sapot11.vn’
Could my question seems weird: that's a command similar to what Wordmove is trying to act, the only difference is that it is trying to get a specific file from your server.
That file is written through FTP
remote | write [secret]/wp-content/dump.php
and is later requested by HTTP (with a one time token in query string for security purposes). Well the HTTP request is where it is failing.
A possible cause could be that when Wordmove write the dump.php
file through FTP connection, it is written on disk with insufficient permission to be later read from the "outside" with an HTTP request. Obviously Wordmove is programmed in order to write a readable file 😅 but
wp-content
(and in this case the problem is not Wordmove neither your hosting provider, but the limitations of an ancient protocol like FTP. I strongly advise to go for an SSH access like most modern hosting providers offer.)Honestly I can't say... I could say that a bug on such a functionality should have been discovered earlier and it sounds strange to me.
After the error appears, you should be able to manually connect to your host's FTP, check if you'll find /wp-content/dump.php
file and check its permissions and report back them here. We'll see if they are somewhat significant.
I warmly hope to have thrown out some clues there :)
Looking forward to hear back from you. And good luck anyway!
Thanks, @pioneerskies for supporting. I found the cause of my hosting.
When I try to access on browser https://xegiangchau.com/wp-content/dump.php?shared_key=217fb2b80a9d630f1aaf9f42f2719c4d73xxxxxxxxxxxxxxxxxxxxxxe186ea44ab29bf8fa
it show error :
After I access to hosting and turn off nginx on my hosting:
It's work well. Thanks you and have a nice day :)
Unfortunately I'm not able to 100% interpret that option. But you hosting company will for sure.
I'm glad that the discussion turned useful for you :)
I'm going to close the issue and going to remove the bug
label since this was an external/environmental problem.
Thanks for your contribute.
Best.
Describe the bug I can pull content but can't pull database. I used 2 env Linux Debian and Window subsystem for Linux, Wordmove and ruby are latest version.
Wordmove command Command used: (
wordmove pull -e production --all
&wordmove pull -e production --db
)movefile.yml
Exception/trace
Environment (please complete the following information):
ruby 2.7.0
)wordmove --version: 5.2.1
)Doctor
wordmove doctor
is all green(If it is not, report the error you got.)