You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
augeas error with apache config files - unable to save to file #24274
ConfirmedSalt engineer has confirmed bug/feature - often including a MCVEPlatformRelates to OS, containers, platform-based utilities like FS, system based appsState-Modulebugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Wanting to try out augeas' integration with salt, I run into this problem. After working my way up the stack, I realized that you will get this error if you try to make changes to a file that augeas can not parse.
Since there is no check prior to editing the file that augeas is able to parse it, the error message is one of not being able to save the changed file.
As I mention above, if I take out - lens: httpd.lns, it works. The file is saved correctly. I also verified this via augtool directly:
augtool set '/files/etc/apache2/sites-available/default-ssl.conf/IfModule/VirtualHost/directive[. = "SSLCertificateFile"]/arg' /etc/ssl/certs/cert1.pem
This works as well.
Thinking about it some more, it's possible that the problem in this case may have something to do with only loading the httpd.lns lens (and not others that it may depend on?). But I have seen other salt augeas issues that don't necessarily fit into this exact pattern, so I'm not sure whether there may be multiple issues involved.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
I cannot confirm any change to this issue. I haven't had a chance to test out the most recent version of salt, but I'd like to keep this issue open if possible until it can be confirmed that the issue has been fixed/resolved.
Closing this issue due to age and lack of activity. Please test this on version 3006.2 and create a new issue if the problem persists. The new issue template has more information and will allow us to track and reproduce the issue more effectively. Thanks!
ConfirmedSalt engineer has confirmed bug/feature - often including a MCVEPlatformRelates to OS, containers, platform-based utilities like FS, system based appsState-Modulebugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Activity
jfindlay commentedon Jun 5, 2015
@kartiksubbarao, thanks for the report.
eseyman commentedon May 3, 2016
Wanting to try out augeas' integration with salt, I run into this problem. After working my way up the stack, I realized that you will get this error if you try to make changes to a file that augeas can not parse.
Since there is no check prior to editing the file that augeas is able to parse it, the error message is one of not being able to save the changed file.
kartiksubbarao commentedon May 3, 2016
As I mention above, if I take out
- lens: httpd.lns, it works. The file is saved correctly. I also verified this via augtool directly:augtool set '/files/etc/apache2/sites-available/default-ssl.conf/IfModule/VirtualHost/directive[. = "SSLCertificateFile"]/arg' /etc/ssl/certs/cert1.pemThis works as well.
Thinking about it some more, it's possible that the problem in this case may have something to do with only loading the httpd.lns lens (and not others that it may depend on?). But I have seen other salt augeas issues that don't necessarily fit into this exact pattern, so I'm not sure whether there may be multiple issues involved.
stale commentedon May 1, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
kartiksubbarao commentedon May 1, 2018
I cannot confirm any change to this issue. I haven't had a chance to test out the most recent version of salt, but I'd like to keep this issue open if possible until it can be confirmed that the issue has been fixed/resolved.
stale commentedon May 1, 2018
Thank you for updating this issue. It is no longer marked as stale.
kartiksubbarao commentedon May 30, 2018
The issue is still there in version 2017.7
18 remaining items
twangboy commentedon Aug 31, 2023
Closing this issue due to age and lack of activity. Please test this on version 3006.2 and create a new issue if the problem persists. The new issue template has more information and will allow us to track and reproduce the issue more effectively. Thanks!
kartiksubbarao commentedon Sep 21, 2023
@twangboy Reopened as #65254, can you take a look?