Town went down at in-form Glossop, who were unbeaten in their previous six games, manager Chris Willcock getting the December manager of the month accolade before the match.
Barnoldswick started well, dominating midfield, without threatening Andrew Jones in the Glossop goal.
Glossop had the first shot on goal after 12 minutes, the league’s top scorer Tom Bailey forcing a save out of Lyle Davy with a shot from the edge of the penalty area.
The hosts went close again as Sam Madeley crossed to Nicholas Allan, who side-footed just wide.
Glossop began to take control just before the half hour mark, Davy moving swiftly off his line to block a shot from Bailey on the edge of the area, the ball rebounding towards Matthew Russell, who saw Davy off his line, but sent his lob way off target.
The hosts took the lead on 30 minutes, as the ball was played down the middle, and Bailey easily slipped it past Davy.
Town were still in the game, having plenty of possession in midfield, and when a corner fell to Aaron Hollindrake on the edge of the penalty area, he drilled his shot wide of the Jones’ right hand post.
Davy had to come to Town’s rescue on 37 minutes, as Alexander Byrne’s cross was headed goal wards by David Young, Davy managing to tip it over.
Town’s best chance came a minute later, as the ball was played across the area to Connor Smith, and his shot rebounded off a defender to Sam Howell, but he was ruled off-side.
After the break, Walker was booked for dragging Bailey down just inside the Town half, and from the free kick, Bailey found himself unmarked at the far post but fired across the face of goal.
Madeley then saw his shot from 10 yards out hit Davy’s legs and go out for a corner.
On the hour Hollindrake had a shot charged down, but chances were at a premium for Town.
Glossop nearly increased their lead with four minutes left, Davy again making a good save from Allan.
With the match moving into injury time, Russell picked the ball up and played a delicate ball over the Town defence into the penalty area.
Bailey was twice denied by Davy, but he made no mistake the third time, firing into the roof of the net to make the game safe.
A difficult match for Town, but a similar performance against Stockport Sports at home tomorrow may reap dividends.