Plesk 11.x / Linux :: Can't Sync Subscription With Command Line Interface

Dec 9, 2014

I have a subscription and I'm able to switch the subscription to a given service-plan, but I'm unable to sync the subscription with the plan, using the CLI. These are my commands:

/usr/local/psa/bin/subscription --switch-subscription <domain.com> -service-plan Hosting

result => The subscription <domain.com> is now associated with the service plan Hosting..When watching the webinterface in Plesk, I see the domain is "connected" to the service plan, so far so good. However, I notice that the subscription is not synced.

Back to the CLI, I've tried some combinations, but I can't get the subscription synced. The webbased interface keeps telling me that the subscription is unsynced. Here is what I've tried:

/usr/local/psa/bin/subscription --sync-subscription <domain.com>

And I also unlocked it (just in case it was locked) like so: /usr/local/psa/bin/subscription --unlock-subscription <domain.com>

The funny part is that the CLI tells me: "Subscription <domain.com> was synchronized with the associated service plans." but unfortenately it's not if I look through the GUI. Only if I click the sync-option webbased the subscription get synced. we have to transfer over 1000 domains and need to sync these domains with a given service-plan.

View 1 Replies


ADVERTISEMENT

Plesk 12.x / Linux :: Command Line CLI DNS Template Changes Warning

Jul 23, 2015

I'm using this script as a cron to generate DKIM keys for the domains I have. It's an easy script. And it does it's job just OK. I have the necessary software installed and configured.

The way it works is:

The script check if the domain in queue has a record for it. If it doesn't, OpenDKIM generates a one time DKIM record for mail._domainkey that I am entering to my dns records for all the domains I have.

After creating the DKIM record, it checks and deletes mail._domainkey records if there's any. Then adds the generated DKIM to plesk dns zones and disables/enables greylisting to create the appropriate dns entry.

If it does have a DKIM recors on the hdd already, then it removes

mail._domainkey​and
TXT o=-​entries.

After that it basically adds the already generated DKIM record and it disables/enables the greylisting for each domain in order to recreate "TXT o=-"

Up till here, it works fine. I can see these entries when I check the DNS Settings. They are there.

But whenever I run this script either via cron or manually, I get an error message on my panel: (You can check the screenshot as well)

Code:

Warning: The DNS zone was modified. If you would like to apply DNS template changes to this zone, either click the 'Apply DNS Template Changes' button on this page or choose the 'Apply the changes to all zones' option in Server Administration Panel > Tools & Settings > DNS Template Settings > Apply DNS Template Changes.

And unless I manually click "Apply DNS Template Changes" for EVERY SITE it doesn't go away.

So, I was wondering, is there a way to scriptize that command? Or how to prevent it?

This is the command I use to generate DKIM and add it to Plesk database, also if any such record exists, delete and re-write it:

Code:

#!/bin/sh
ADMIN_PASS=`cat /etc/psa/.psa.shadow`
MYSQL_BIN_D=`grep MYSQL_BIN_D /etc/psa/psa.conf | awk '{print $2}'`
mysql="${MYSQL_BIN_D}/mysql -N -uadmin -p${ADMIN_PASS} psa"

query="select name from domains;"
domains=`echo $query | $mysql `
for i in ${domains}; do
echo "Processing $i"

[Code] ....

View 4 Replies View Related

Plesk 12.x / Linux :: CLI - Scheduled Backup From Command Line

Apr 9, 2015

I'm looking to set up a schedulled backup from command line.

I haven't found the correct command, could you tell me if it's possible and how ?

Additional question: I'm looking too, to set for the server the max number backup file to save, do you know how to do it from cli ?

View 8 Replies View Related

Plesk 12.x / Linux :: Remove Backup Via Command Line?

Jan 17, 2015

Is there a command line way of removing Plesk backups?

I'm looking for the command line equivalent of these steps: Log into Plesk as the server admin > "Tools & Settings" > "Tools & Resources" > "Backup Manager" > check a backup and click "Remove".

We have a script that copies the contents of "/var/lib/psa/dumps/" to Amazon S3 for long-term storage of backups. It runs nightly after a scheduled Plesk backup. Once that script completes successfully, we'd like to delete the Plesk backup to free up disk space. We have Plesk's "Maximum number of backups in the repository" set to 1.

But Plesk appears to keep that backup around while creating a new backup (which makes some sense). This is causing us trouble because the server does not have enough disk space for two backups. As a temporary solution, I'm manually deleting the backup each day through the Plesk admin, but would like to automate it if possible. If automation is overly complex/risky, we'll look at upping our disk space instead.

View 4 Replies View Related

Plesk 12.x / Linux :: Command Line Mail In Chroot?

Feb 23, 2015

Is there any way for a client to use command line mail in a script. Client has ssh access via chromed environment.

Wants their script to be able to send an email on completion.

plesk 12 on Centos6.6

View 6 Replies View Related

Plesk 12.x / Linux :: DNS Command Line Utility Fails To Delete TXT Record

Apr 7, 2015

Although running
>>
/usr/local/psa/bin/dns --info dev.sname.c002.aname.domain.com
>>
shows the 'ecz1' TXT record exists for "dev.sname.c002.aname.domain.com" :
...
ecz1.dev.sname.c002.aname.domain.com. TXT ecz1

[Code] ....

The issue can be caused by extra spaces in the TXT record:

Code:
[root@a10-52-143-28 ~]# /usr/local/psa/bin/dns --add dev.sname.c002.aname.domain.com -txt 'ecz1 ' -domain ecz1
SUCCESS: Creation of DNS record in Domain 'dev.sname.c002.aname.domain.com' complete.
[root@a10-52-143-28 ~]# /usr/local/psa/bin/dns --del dev.sname.c002.aname.domain.com -txt 'ecz1' -domain ecz1
Unable to del record in DNS server: unable to find DNS record

In the following example I have 3 such TXT records with 3, 5, 7 extra spaces and remove record with 3 spaces:

Code:
[root@a10-52-143-28 ~]# mysql -u admin -p`cat /etc/psa/.psa.shadow` psa -e "select host, val, (length(val) - length(rtrim(val))) as extraspaces from dns_recs where host='ecz1.dev.sname.c002.aname.domain.com.' and val like 'ecz1%'"
+---------------------------------------+-------------+-------------+
| host | val | extraspaces |
+---------------------------------------+-------------+-------------+
| ecz1.dev.sname.c002.aname.domain.com. | ecz1 | 5 |
| ecz1.dev.sname.c002.aname.domain.com. | ecz1 | 3 |

[Code] ...

Click to expand...
Click for original message

View 12 Replies View Related

Plesk 12.x / Linux :: Mailman Web Interface 404

Sep 25, 2014

I have plesk 12 with dovecot+postfix and mailman installed but when i try to use mailman web interface I have 404 ...

View 2 Replies View Related

Plesk 12.x / Linux :: Unlock And Sync Error

Nov 17, 2014

When I try to unlock a subscription I get the following error message. The fact is that I have not customized any time any parameter of this subscription, but has blocked me.ERROR: Call to a member function isDefault() on a non-object (Domain.php:966)

View 6 Replies View Related

Plesk 12.x / Linux :: How To Sync Customers With WHMCS

Jun 11, 2014

I'am using Plesk 12 Web Pro Edition, I would like to know how can I sync my customers with WHMCS? I have config Plesk Server (at whmcs, module version Plesk 10/11) according to WHMCS. But I still with error and without can sync, users, domains, etc... from plesk web pro to whmcs.

View 3 Replies View Related

Plesk 12.x / Linux :: Mobile Friendly Interface

Jul 16, 2014

Why is the mobile friendly interface only available in power user mode?

View 1 Replies View Related

Plesk 12.x / Linux :: Managing Multiple Servers From One Interface

Jun 3, 2015

Is Plesk capable of managing different servers from one interface?

View 2 Replies View Related

Plesk 12.x / Linux :: Unable To Sync Subscriptions With Service Plan

Jan 29, 2015

I have a 'Service Plan' which has 270 subscriptions associated with it. When I navigate to 'Service Plans' page, underneath my plan it reads "Unable to sync subscriptions with the service plan" along with a yellow exclamation mark.

If I go into the plan there is another message near the "Update & Sync" button stating that syncing will take time and therefore be run in the background. When I click the "Update & Sync" button nothing appears to happen. If I then click on the plan again, as if to edit the settings I get the following "Warning: Subscriptions are currently syncing with the service plan. Please wait until the sync process is finished." and it prevents me from accessing the plan settings.

If I wait a while, I can eventually get into the plan settings again, which should mean that the Update & Sync has completed. However the "Unable to sync subscriptions with the service plan" warning is still present under my custom plan on the 'Service Plans' page and if I navigate to a subscription to check if it has been updated it hasn't.

If I change the subscription plan to another plan and then change it back to my original plan again, then the changes are reflected. But this is obviously a workaround.

Why doesn't the "Update & Sync" button do as it should?

Why is my plan "Unable to sync subscriptions with the service plan"?

View 2 Replies View Related

Plesk 12.x / Linux :: Slave DNS Manager - Still Tries To Sync Zones That Are Switched Off

May 5, 2015

I have recently started using the slave DNS manager in the Plesk extension library. I've found that even for DNS zones that are switched off in Plesk, failed sync/transfers still try to take place between the slave and master. Why is this so?

Shouldn't turning the DNS functionality off in Plesk remove the zone from the slave DNS server?

When a domains DNS functionality is turned off, it removed the zone info from the master, but no command is issued to remove it from the slave??

Domain that is trying to sync/transfer: example.com
Plesk/Master server: 111.11.11.111
Slave DNS: 222.222.22.222

Code:
May 6 08:51:39 ns2 named[1178]: zone example.com/IN: refresh: unexpected rcode (REFUSED) from master 111.11.11.111#53 (source 0.0.0.0#0)
May 6 08:51:39 ns2 named[1178]: zone example.com/IN: Transfer started.
May 6 08:51:40 ns2 named[1178]: transfer of 'example.com/IN' from 111.11.11.111#53: connected using 222.222.22.222#53166

[Code] ...

View 3 Replies View Related

Plesk 12.x / Linux :: Migrate Tool Doesn't Sync Per-domain PHP Settings

Dec 1, 2014

I'm using the migrate tool to clone our production server to a backup server.

I'm using the following command

Code:
cd /opt/psa/bin/
./migrate --migrate-server -host x.x.x.x -password mypwd

I've noticed that the per-domain PHP settings (like open_basedir and include_path) are not transmit to the backup server. Is that the expected behavior ? I would have prefer the migrate tool to include all settings....

View 1 Replies View Related

Plesk 12.x / Linux :: Upgrade From 11.5 To 12.0.18 Completed OK But No Interface Page - File Not Found

Jul 11, 2014

Upgrade from 11.5 reported it had completed but when I log in, I get the grey bar on the left with various options - Hosting Services, Tools & Settings etc. (only Profile & Preferences works) and a main white screen with the words 'File Not Found' in large font black lettering.

see attached screen shot and log file.

trying to restart psa gives the following

[root@eateasy /]# /etc/init.d/psa start
Starting psa... Starting sw-engine-fpm: done
Starting xinetd service... done
Starting sw-cp-server service... failed

[Code].....

View 1 Replies View Related

Plesk 12.x / Linux :: Web Admin Edition / How To Set Interface To Service Provider View

Sep 11, 2014

I just installed Plesk 12 Web Admin Edition, installed and activated all licence keys and everything works fine.The only thing, I can't find the "Service Provider View" in the Interface Settings, there is only a "Power-User" view provided, even I've selected the Service Provider View during Plesk Setup, I was moved to the Power User view and now I can't switch the interface.I am really missing the server health monitoring from this Service Provider View like got it on all other servers I have.

View 4 Replies View Related

Zip From Command Line

Feb 15, 2009

Im trying to zip up an sqlite database backup.

I execute this command

Code:
zip ../d/db/backup.zip ../d/db/09-02-15.sqlite
backup.zip never appears. Instead, I get some random filename in the directory. Like ziOHokOw

If I try to zip a smaller file(last weeks backup) everything runs fine?

Code:
zip ../d/db/backup.zip ../d/db/09-02-08.sqlite
So the 134mb file zips fine, but the 200mb one seems like its failing and im left with some type of temporary file. I tried downloading the weird filename and unzipping it. It has partial info like directory structure, the filename but the actual file inside is corrupt.

View 1 Replies View Related

What Is The Command Line

May 10, 2008

What is the Command Line, hoe do I get to it, when I do how do I update Perl to 5.88

View 5 Replies View Related

Ip Adjustment Via Command Line

Feb 9, 2008

Got a centos / cpanel box. Had to change the block of IP's with an entirely new block of 8. Problem is I cannot access cpanel/whm due to this, but only via ssh. If I run the below, it shows the old IP's

/etc/init.d/ipaliases start

How do I replace the old block with the new? I've never done it via command line before.

View 1 Replies View Related

Plesk 11.x / Linux :: Different IP For Domains In Same Subscription

Jun 5, 2014

I understand it is not possible to move a domain to another subscription, or to create a new subscription with an existing domain name.The problem I have is I wish to use a different IP address for a domain within a single subscription. I need to do this to establish SSL cert on one of the domains.

View 1 Replies View Related

Plesk 12.x / Linux :: Error After Add Subscription

Jul 21, 2014

I have plesk 12.0.18 Update #9 Fresh installation. When i'm done with adding an subscription i get this error:

New configuration files for the Apache web server were not created due to the errors in configuration templates:

Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = Template_Exception: No data. file: /usr/local/psa/admin/plib/Template/Processor.php line: 28 code: 0 Previous error: Template_Variable_Exception: No data. file: /usr/local/psa/admin/plib/Template/Variable/AbstractCachedData.php line: 67 code: 0. Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter

View 5 Replies View Related

Plesk 12.x / Linux :: API Subscription Not Working

Aug 31, 2014

I have an Issue with API.

I have mine Custom billing Panel Today my Developer start code API for it by Docs that Parallels given but we got stuck on Subscription...

if we set login name and password
API shows this error
While creating subscription

Error 2204 Unable to update hosting preferences. Unable to check system user existence: login name is empty
It happens only while creating the subscription...

Creating of user is working fine only subscription don't want work and we don't know why we tried many things and none of it works.

View 4 Replies View Related

Tortoise SVN :: Install SVN By Command Line

Oct 3, 2009

how i can install SVN by command line on centos OS

View 1 Replies View Related

KVMoIP - Visual OR Command Line

Jul 9, 2008

is KVMoIP like Remote Desktop or is it just command lines?

View 5 Replies View Related

Command Line On Shared Hosting

Sep 25, 2008

I have been looking around for a new shared host, I am currently with GoDaddy =( And it would be helpful to have command line access for some things I am trying to do.

Particularly with Zend Gdata API (which GoDaddy has trouble with anyway) Is this reasonable to ask for? I also need at least 150GB/month bandwidth for some relatively high quality streaming video.

View 13 Replies View Related

Website Backup Over Command Line

Nov 7, 2008

We have a dedicated server, with chroot access enabled.

We are wanting to backup each site on this server, as well as all mysql dbs on a weekly basis.

Is it possible for us to run a cron job to do this? If so, what commands would we want to use?

We have a local FTP server here, so would like to ftp these backups this machine.

I know it all sounds a little vague, but I just need to know where to get started.

View 3 Replies View Related

Plesk 12.x / Linux :: Mail Tab Is Not Showing For 1 Subscription

Aug 27, 2014

I have a problem with e-mail management. I have 4 subscriptions and for 3 of them I do not have problem.

For one of them, mail tab not showing. Obviously I check the checkbox "Enable mail management functions in Panel"...

View 1 Replies View Related

Plesk 12.x / Linux :: API Subscription Response Timeout

Apr 9, 2015

I'm using the API to dynamically create new subscriptions. However, I frequently never receive a response back for my request.

I have enabled graceful restart, which has made an improvement, but my requests still fail to return a response every now and then.

This is problematic, because the script needs to know whether the subscription has been successfully created or not. Often times, when the script times out, the subscription was successfully created. But Once and and a while that's not true, and it is causing inconsistencies in my system.

View 1 Replies View Related

Plesk 12.x / Linux :: Cannot Transfer Subscription To Another Customer

Jun 1, 2015

I am trying to transfer a subscription to another customer but it fails with this error message...

this subscription requires more resources than can be provided by the new owner's provider

I can't find any limits for a customer so I don't know why it won't transfer. This is plesk 12.

Is there a limit somewhere as to how many subscriptions a customer can have?

View 1 Replies View Related

Plesk 11.x / Linux :: IP Settings - How To Associate Different IPs In 1 Subscription

Oct 9, 2014

I manage 1 server with 5 domains. I use the panel as power user (unique user)

I want to assign a new IP to a domain. In the hosting setting there is no IP to choose and in the IP tab if I click on the IP there is no domains to choose becouse all the domains are assigned to the primary IP...

I'd like to set IP in the hosting setting of the domain...

View 1 Replies View Related

Plesk 12.x / Linux :: Error When Creating New Subscription

Jun 18, 2015

We get this same error on every subscription we create. It doesn't seem to affect anything but it's more of an annoyance than anything. It did it on plesk 11.5 and now with plesk 12.

[2015-06-18 08:35:13] ERR [util_exec] proc_close() failed
PHP Fatal error: Uncaught exception 'PleskUtilException' with message 'glmng failed: ' in /usr/local/psa/admin/plib/Service/Agent.php:243
Stack trace:

[Code] .....

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved