trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reindl Harald <h.rei...@thelounge.net>
Subject Re: upstart vs systemd: ATS best service practice
Date Mon, 30 Jan 2017 23:02:32 GMT


Am 30.01.2017 um 23:56 schrieb Steven R. Feltner:
> Reindl...
>
> I noticed in your config:
>
>> [root@proxy:~]$ cat records.config | grep disable
>> CONFIG proxy.config.disable_configuration_modification 1
>
> Shouldn't this be:
> CONFIG proxy.config.disable_configuration_modification INT 1
>
> I think you are missing the DATATYPE for the config value

yes, but it don't matter
changing that leads in the same weird stuff

[root@proxy:/var/log/trafficserver]$ cat manager.log
[Jan 31 00:01:17.407] Manager {0x7feb55f48940} STATUS: opened 
/var/log/trafficserver/manager.log
[Jan 31 00:01:17.407] Manager {0x7feb55f48940} NOTE: updated diags config
[Jan 31 00:01:17.407] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of log_hosts.config failed: Permission denied
[Jan 31 00:01:17.407] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of 
log_hosts.config : Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: log_hosts.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of log_hosts.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : log_hosts.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of logging.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of 
logging.config : Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: logging.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of logging.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : logging.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of storage.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of 
storage.config : Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: storage.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of storage.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : storage.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of socks.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of socks.config 
: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: socks.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of socks.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : socks.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of records.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of 
records.config : Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: records.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of records.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : records.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of vaddrs.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of vaddrs.config 
: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: vaddrs.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of vaddrs.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : vaddrs.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of cache.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of cache.config 
: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: cache.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of cache.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : cache.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of icp.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of icp.config : 
Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: icp.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of icp.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : icp.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of ip_allow.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of 
ip_allow.config : Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: ip_allow.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of ip_allow.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : ip_allow.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of parent.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of parent.config 
: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: parent.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of parent.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : parent.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of remap.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of remap.config 
: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: remap.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of remap.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : remap.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of volume.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of volume.config 
: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: volume.config
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of volume.config failed: Permission denied
[Jan 31 00:01:17.408] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : volume.config
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of hosting.config failed: Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of 
hosting.config : Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: hosting.config
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of hosting.config failed: Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : hosting.config
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of congestion.config failed: Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of 
congestion.config : Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: congestion.config
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of congestion.config failed: Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : congestion.config
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of plugin.config failed: Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of plugin.config 
: Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: plugin.config
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of plugin.config failed: Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : plugin.config
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of splitdns.config failed: Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of 
splitdns.config : Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: splitdns.config
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of splitdns.config failed: Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : splitdns.config
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of ssl_multicert.config failed: Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of 
ssl_multicert.config : Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: 
ssl_multicert.config
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of ssl_multicert.config failed: Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : ssl_multicert.config
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of metrics.config failed: Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of 
metrics.config : Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: metrics.config
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of metrics.config failed: Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : metrics.config
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of cluster.config failed: Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::internalUpdate] Unable to create new version of 
cluster.config : Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Automatic Roll of Version 1 failed: cluster.config
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::openFile] Open of cluster.config failed: Permission denied
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[Rollback::Rollback] Config file is read-only : cluster.config
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[ClusterCom::ClusterCom] Node running on OS: 'Linux' Release: 
'4.9.6-100.fc24.x86_64'
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[LocalManager::listenForProxy] Listening on port: 80 (IPv4)
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: 
[LocalManager::listenForProxy] Listening on port: 443 (IPv4)
[Jan 31 00:01:17.409] Manager {0x7feb55f48940} NOTE: [TrafficManager] 
Setup complete
[Jan 31 00:01:18.411] Manager {0x7feb55f48940} NOTE: 
[LocalManager::startProxy] Launching ts process
[Jan 31 00:01:18.418] Manager {0x7feb55f48940} NOTE: 
[LocalManager::pollMgmtProcessServer] New process connecting fd '15'
[Jan 31 00:01:18.418] Manager {0x7feb55f48940} NOTE: 
[Alarms::signalAlarm] Server Process born


> ------------------------------------------------------------------------
> *From:* Reindl Harald <h.reindl@thelounge.net>
> *Sent:* Monday, January 30, 2017 12:35:26 PM
> *To:* users@trafficserver.apache.org
> *Subject:* Re: upstart vs systemd: ATS best service practice
>
>
>
> Am 30.01.2017 um 16:57 schrieb David Carlin:
>> Reindl,
>>
>> I think there is a setting
>> 'proxy.config.disable_configuration_modification = 1' to prevent ATS
>> from modifying the config files:
>>
>> https://issues.apache.org/jira/browse/TS-315?focusedCommentId=14970110&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14970110
>>
>> I've not tried it
>
> i have set that for a very long time and it does *nothing* and even if -
> is it really that hard to behave like every other application on this
> planet and not doing such harmful things by default of if /etc is
> read-only as it should be for every network service just skip all that
> stuff and work proper?
>
> especially when i now complain at least for *5 years* about it?
>
> [root@proxy:~]$ cat records.config | grep disable
> CONFIG proxy.config.disable_configuration_modification 1
>
> [Jan 30 17:30:52.483] Manager {0x7f58d97ed700} WARNING: open file:
> /etc/trafficserver/records.config.tmp to write fail, errno: 13, error
> info: Permission denied
>
>
> [root@proxy:~]$ touch /etc/trafficserver/records.config
> [root@proxy:~]$ systemctl reload trafficserver.service
> [root@proxy:~]$ cat /var/log/trafficserver/manager.log
> [Jan 30 17:30:52.483] Manager {0x7f58d97ed700} WARNING: open file:
> /etc/trafficserver/records.config.tmp to write fail, errno: 13, error
> info: Permission denied
> [Jan 30 17:33:02.921] Manager {0x7f58d7bfe700} NOTE:
> [Rollback::openFile] Open of records.config failed: Permission denied
> [Jan 30 17:33:02.921] Manager {0x7f58d7bfe700} NOTE:
> [Rollback::internalUpdate] Unable to create new version of
> records.config : Permission denied
> [Jan 30 17:33:02.921] Manager {0x7f58d7bfe700} NOTE:
> [Rollback::checkForUserUpdate] Failed to roll changed user file
> records.config: System Call Error
> [Jan 30 17:33:02.921] Manager {0x7f58d7bfe700} NOTE: User has changed
> config file records.config
> [Jan 30 17:33:07.501] Manager {0x7f58d97ed700} WARNING: open file:
> /etc/trafficserver/records.config.tmp to write fail, errno: 13, error
> info: Permission denied
>
> [root@proxy:~]$ systemctl reload trafficserver.service
> [root@proxy:~]$ systemctl reload trafficserver.service
> [root@proxy:~]$ systemctl reload trafficserver.service
> [root@proxy:~]$ cat /var/log/trafficserver/manager.log
> [Jan 30 17:30:52.483] Manager {0x7f58d97ed700} WARNING: open file:
> /etc/trafficserver/records.config.tmp to write fail, errno: 13, error
> info: Permission denied
> [Jan 30 17:33:02.921] Manager {0x7f58d7bfe700} NOTE:
> [Rollback::openFile] Open of records.config failed: Permission denied
> [Jan 30 17:33:02.921] Manager {0x7f58d7bfe700} NOTE:
> [Rollback::internalUpdate] Unable to create new version of
> records.config : Permission denied
> [Jan 30 17:33:02.921] Manager {0x7f58d7bfe700} NOTE:
> [Rollback::checkForUserUpdate] Failed to roll changed user file
> records.config: System Call Error
> [Jan 30 17:33:02.921] Manager {0x7f58d7bfe700} NOTE: User has changed
> config file records.config
> [Jan 30 17:33:07.501] Manager {0x7f58d97ed700} WARNING: open file:
> /etc/trafficserver/records.config.tmp to write fail, errno: 13, error
> info: Permission denied
> [Jan 30 17:33:30.265] Manager {0x7f58d7bfe700} NOTE:
> [Rollback::openFile] Open of records.config failed: Permission denied
> [Jan 30 17:33:30.265] Manager {0x7f58d7bfe700} NOTE:
> [Rollback::internalUpdate] Unable to create new version of
> records.config : Permission denied
> [Jan 30 17:33:30.265] Manager {0x7f58d7bfe700} NOTE:
> [Alarms::signalAlarm] Skipping Alarm: '[TrafficManager] Configuration
> File Update Failed: Permission denied'
> [Jan 30 17:33:30.265] Manager {0x7f58d7bfe700} NOTE:
> [Rollback::checkForUserUpdate] Failed to roll changed user file
> records.config: System Call Error
> [Jan 30 17:33:30.265] Manager {0x7f58d7bfe700} NOTE: User has changed
> config file records.config
> [Jan 30 17:33:31.433] Manager {0x7f58d7bfe700} NOTE:
> [Rollback::openFile] Open of records.config failed: Permission denied
> [Jan 30 17:33:31.433] Manager {0x7f58d7bfe700} NOTE:
> [Rollback::internalUpdate] Unable to create new version of
> records.config : Permission denied
> [Jan 30 17:33:31.433] Manager {0x7f58d7bfe700} NOTE:
> [Alarms::signalAlarm] Skipping Alarm: '[TrafficManager] Configuration
> File Update Failed: Permission denied'
> [Jan 30 17:33:31.433] Manager {0x7f58d7bfe700} NOTE:
> [Rollback::checkForUserUpdate] Failed to roll changed user file
> records.config: System Call Error
> [Jan 30 17:33:31.433] Manager {0x7f58d7bfe700} NOTE: User has changed
> config file records.config
> [Jan 30 17:33:32.165] Manager {0x7f58d7bfe700} NOTE:
> [Rollback::openFile] Open of records.config failed: Permission denied
> [Jan 30 17:33:32.166] Manager {0x7f58d7bfe700} NOTE:
> [Rollback::internalUpdate] Unable to create new version of
> records.config : Permission denied
> [Jan 30 17:33:32.166] Manager {0x7f58d7bfe700} NOTE:
> [Alarms::signalAlarm] Skipping Alarm: '[TrafficManager] Configuration
> File Update Failed: Permission denied'
> [Jan 30 17:33:32.166] Manager {0x7f58d7bfe700} NOTE:
> [Rollback::checkForUserUpdate] Failed to roll changed user file
> records.config: System Call Error
> [Jan 30 17:33:32.166] Manager {0x7f58d7bfe700} NOTE: User has changed
> config file records.config
> [Jan 30 17:33:32.505] Manager {0x7f58d97ed700} WARNING: open file:
> /etc/trafficserver/records.config.tmp to write fail, errno: 13, error
> info: Permission denied
> [root@proxy:~]$

-- 

Reindl Harald
the lounge interactive design GmbH
A-1060 Vienna, Hofm├╝hlgasse 17
CTO / CISO / Software-Development
m: +43 676 40 221 40
p: +43 1 595 3999 33
http://www.thelounge.net/

Mime
View raw message