• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Resolved cfgmon file difference returning "missing operand"/"Errno 32 broken pipe"

Bitpalast

Plesk addicted!
Plesk Guru
According to the example in https://docs.plesk.com/en-US/17.0/a...racking-changes-in-configuration-files.73233/ we tried to list the changes in ssl.conf. However, this failed with "ERROR:cfgmon:[Errno 32] Broken pipe". Why is that / what is the "missing operand" after the file name?

[root@XXXX psa]# plesk sbin cfgmon -s /etc/httpd/conf.d/ssl.conf
Rev. TimeStamp File path In Storage
66 2016-07-22 15:39:05 /etc/httpd/conf.d/ssl.conf /var/lib/plesk/cfgmon/ssl.conf_2016_07_22_17_39_05_447661
225 2016-09-03 01:38:27 /etc/httpd/conf.d/ssl.conf /var/lib/plesk/cfgmon/ssl.conf_2016_09_03_03_38_27_887370

[root@XXXX psa]# plesk sbin cfgmon -r 225 | diff /etc/httpd/conf.d/ssl.conf
diff: missing operand after '/etc/httpd/conf.d/ssl.conf'
diff: Try 'diff --help' for more information.
ERROR:cfgmon:[Errno 32] Broken pipe
exit status 1
 
The documentation seems to be missing a single dash "-" to represent the STDIN for the diff command.

False:
# plesk sbin cfgmon -r 48 | diff /etc/httpd/conf.d/ssl.conf

Instead, the Plesk documentation should read:
# plesk sbin cfgmon -r 48 | diff /etc/httpd/conf.d/ssl.conf -n

For the example given above:
[root@XXXX psa]# plesk sbin cfgmon -r 225 | diff /etc/httpd/conf.d/ssl.conf -
 
Hi Peter Debik,

you could as well use for example:

Code:
diff -u /var/lib/plesk/cfgmon/ssl.conf_2016_09_03_03_38_27_887370 /var/lib/plesk/cfgmon/ssl.conf_2016_07_22_17_39_05_447661
;)
 
Back
Top