<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Docker Config  option for Splunk web.conf error in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Docker-Config-option-for-Splunk-web-conf-error/m-p/309571#M58202</link>
    <description>&lt;P&gt;I am running the latest docker image and have a similar issue. Running 7.0.2 on Docker CE with Portainer.&lt;BR /&gt;
The user and group defined by the default variables are splunk splunk&lt;BR /&gt;
However when I check the files in the /etc volume they are all owned by docker with the exception of modified files which become owned by root.&lt;/P&gt;

&lt;P&gt;The container stops with error 13 access denied web.conf&lt;/P&gt;

&lt;P&gt;Running the container with environment variables set to root, allows the container to start.&lt;/P&gt;

&lt;P&gt;Something is a miss with the ownership when this container makes changes to the file system. For now I'm just running it as root:root&lt;/P&gt;</description>
    <pubDate>Thu, 15 Mar 2018 05:21:45 GMT</pubDate>
    <dc:creator>ggudgin</dc:creator>
    <dc:date>2018-03-15T05:21:45Z</dc:date>
    <item>
      <title>Docker Config  option for Splunk web.conf error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Docker-Config-option-for-Splunk-web-conf-error/m-p/309569#M58200</link>
      <description>&lt;P&gt;I am using Splunk/splunk:latest version(7.0.0) and docker compose version (3.4) .&lt;BR /&gt;
Also deploying an nginx proxy with context root as /splunk to forward to splunk web at 8000.&lt;/P&gt;

&lt;P&gt;The web.conf is added to the container as a docker config at /opt/splunk/etc/system/local/web.conf as root user, and also starting the container as root user.&lt;BR /&gt;
The splunk container fails to start with error: chown: changing ownership of ‘/opt/splunk/etc/system/local/web.conf’: Read-only file system&lt;/P&gt;

&lt;H2&gt;web.conf:&lt;/H2&gt;

&lt;P&gt;[settings]&lt;/P&gt;

&lt;H2&gt;root_endpoint=/splunk&lt;/H2&gt;

&lt;H2&gt;Docker-Compose:&lt;/H2&gt;

&lt;P&gt;version: "3.4"&lt;BR /&gt;
services:&lt;BR /&gt;
  enterprise:&lt;BR /&gt;
    image: splunk/splunk&lt;BR /&gt;
    environment:&lt;BR /&gt;
      SPLUNK_START_ARGS: --accept-license&lt;BR /&gt;
      SPLUNK_USER: root&lt;BR /&gt;
    ports:&lt;BR /&gt;
      - "8000"&lt;BR /&gt;
      - "8088"&lt;BR /&gt;
    configs:&lt;BR /&gt;
      - source: web.conf&lt;BR /&gt;
        target: /opt/splunk/etc/system/local/web.conf&lt;BR /&gt;
        uid: '0'&lt;BR /&gt;
        gid: '0'&lt;BR /&gt;
        mode: 0440&lt;BR /&gt;
    deploy:&lt;BR /&gt;
      replicas: 1&lt;BR /&gt;
      restart_policy:&lt;BR /&gt;
        condition: on-failure&lt;BR /&gt;
configs:&lt;BR /&gt;
  web.conf:&lt;BR /&gt;
    file: web.conf&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:16:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Docker-Config-option-for-Splunk-web-conf-error/m-p/309569#M58200</guid>
      <dc:creator>jjesudass</dc:creator>
      <dc:date>2020-09-29T16:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Docker Config  option for Splunk web.conf error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Docker-Config-option-for-Splunk-web-conf-error/m-p/309570#M58201</link>
      <description>&lt;P&gt;I am running the latest docker image and have a similar issue. Running 7.0.2 on Docker CE with Portainer.&lt;BR /&gt;
The user and group defined by the default variables are splunk splunk&lt;BR /&gt;
However when I check the files in the /etc volume they are all owned by docker with the exception of modified files which become owned by root.&lt;/P&gt;

&lt;P&gt;The container stops with error 13 access denied web.conf&lt;/P&gt;

&lt;P&gt;Running the container with environment variables set to root, allows the container to start.&lt;/P&gt;

&lt;P&gt;Something is a miss with the ownership when this container makes changes to the file system. For now I'm just running it as root:root&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 05:21:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Docker-Config-option-for-Splunk-web-conf-error/m-p/309570#M58201</guid>
      <dc:creator>ggudgin</dc:creator>
      <dc:date>2018-03-15T05:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Docker Config  option for Splunk web.conf error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Docker-Config-option-for-Splunk-web-conf-error/m-p/309571#M58202</link>
      <description>&lt;P&gt;I am running the latest docker image and have a similar issue. Running 7.0.2 on Docker CE with Portainer.&lt;BR /&gt;
The user and group defined by the default variables are splunk splunk&lt;BR /&gt;
However when I check the files in the /etc volume they are all owned by docker with the exception of modified files which become owned by root.&lt;/P&gt;

&lt;P&gt;The container stops with error 13 access denied web.conf&lt;/P&gt;

&lt;P&gt;Running the container with environment variables set to root, allows the container to start.&lt;/P&gt;

&lt;P&gt;Something is a miss with the ownership when this container makes changes to the file system. For now I'm just running it as root:root&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 05:21:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Docker-Config-option-for-Splunk-web-conf-error/m-p/309571#M58202</guid>
      <dc:creator>ggudgin</dc:creator>
      <dc:date>2018-03-15T05:21:45Z</dc:date>
    </item>
  </channel>
</rss>

