Sounds typical of gum and varnish residue caused by evaporation of old fuel.
stabilising additives are available for long term fuel storage to help prevent the occurrence. (Typically used in lawnmowers , generators and other machinery infrequently used.) I wouldn't know whether it would advisable to use such additives for fuel to be used for aircraft though