geth-dev
geth-dev copied to clipboard
Lots of index.html files being created
What's creating all the index.html* files within the /opt directory of the miner nodes? They're all 0 byte sized but I just want to know so I can turn it off.
Thanks for sharing this btw!
Hi waylandc,
I did not notice this, yet. Good catch, I will see what I can do.
I checked this too.
They are all empty.
It only occurs on the miners and node. It doesn't happen on the swarm , explorer or monitor containers.
nico@nico-Aspire-A515-51G:~$ docker run -t -i mysnap /bin/bash
root@933d19c17441:/opt# ls
COPYING index.html.112 index.html.13 index.html.147 index.html.164 index.html.181 index.html.199 index.html.215 index.html.24 index.html.41 index.html.59 index.html.76 index.html.93
genesis.json index.html.113 index.html.130 index.html.148 index.html.165 index.html.182 index.html.2 index.html.216 index.html.25 index.html.42 index.html.6 index.html.77 index.html.94
geth index.html.114 index.html.131 index.html.149 index.html.166 index.html.183 index.html.20 index.html.217 index.html.26 index.html.43 index.html.60 index.html.78 index.html.95
index.html index.html.115 index.html.132 index.html.15 index.html.167 index.html.184 index.html.200 index.html.218 index.html.27 index.html.44 index.html.61 index.html.79 index.html.96
index.html.1 index.html.116 index.html.133 index.html.150 index.html.168 index.html.185 index.html.201 index.html.219 index.html.28 index.html.45 index.html.62 index.html.8 index.html.97
index.html.10 index.html.117 index.html.134 index.html.151 index.html.169 index.html.186 index.html.202 index.html.22 index.html.29 index.html.46 index.html.63 index.html.80 index.html.98
index.html.100 index.html.118 index.html.135 index.html.152 index.html.17 index.html.187 index.html.203 index.html.220 index.html.3 index.html.47 index.html.64 index.html.81 index.html.99
index.html.101 index.html.119 index.html.136 index.html.153 index.html.170 index.html.188 index.html.204 index.html.221 index.html.30 index.html.48 index.html.65 index.html.82
index.html.102 index.html.12 index.html.137 index.html.154 index.html.171 index.html.189 index.html.205 index.html.222 index.html.31 index.html.49 index.html.66 index.html.83
index.html.103 index.html.120 index.html.138 index.html.155 index.html.172 index.html.19 index.html.206 index.html.223 index.html.32 index.html.5 index.html.67 index.html.84
index.html.104 index.html.121 index.html.139 index.html.156 index.html.173 index.html.190 index.html.207 index.html.224 index.html.33 index.html.50 index.html.68 index.html.85
index.html.105 index.html.122 index.html.14 index.html.157 index.html.174 index.html.191 index.html.208 index.html.225 index.html.34 index.html.51 index.html.69 index.html.86
index.html.106 index.html.123 index.html.140 index.html.158 index.html.175 index.html.192 index.html.209 index.html.226 index.html.35 index.html.52 index.html.7 index.html.87
index.html.107 index.html.124 index.html.141 index.html.159 index.html.176 index.html.193 index.html.21 index.html.227 index.html.36 index.html.53 index.html.70 index.html.88
index.html.108 index.html.125 index.html.142 index.html.16 index.html.177 index.html.194 index.html.210 index.html.228 index.html.37 index.html.54 index.html.71 index.html.89
index.html.109 index.html.126 index.html.143 index.html.160 index.html.178 index.html.195 index.html.211 index.html.229 index.html.38 index.html.55 index.html.72 index.html.9
index.html.11 index.html.127 index.html.144 index.html.161 index.html.179 index.html.196 index.html.212 index.html.23 index.html.39 index.html.56 index.html.73 index.html.90
index.html.110 index.html.128 index.html.145 index.html.162 index.html.18 index.html.197 index.html.213 index.html.230 index.html.4 index.html.57 index.html.74 index.html.91
index.html.111 index.html.129 index.html.146 index.html.163 index.html.180 index.html.198 index.html.214 index.html.231 index.html.40 index.html.58 index.html.75 index.html.92
root@933d19c17441:/opt# cat index.html
Just reporting back, that this is not forgotten. I just have no idea what's causing this. The file count increases, the longer the docker container is running, but there is only one process in the container: geth. I am trying to find some creative ways of checking the root cause of this, I even started checking geths source code, but I can't find any hints.
Appreciate that you're looking into. It's not a big deal as there's no functional defect but it's just weird to see it happening but have no idea what's causing it.
@javahippie Possibly these are created by some http proxy? I don't think this is geth related but rather docker/nginx. Then again the others dont have it when not running geth.
I'll try some different flags and remove verbosity.
Hello,
I have found the fix.
In docker-compose.yml there is healthcheck option
healthcheck:
test: wget http://localhost:8545
interval: 2s
timeout: 5s
retries: 30
it wgets every 2 seconds localhost:8545 to check if it is alive and this wget is downloading localhost:8545 content which is empty index.html file.
To stop creating files just remove healthcheck section or change wget to ping (but remember to install iputils-ping first)
Thank you for finding this, @Adam-Kielkowski! I will add the change to the next release.
Ah yes indeed, wget is for files of http/https good spot.
Should use a custom script apparently.
https://blog.sixeyed.com/docker-healthchecks-why-not-to-use-curl-or-iwr/