There was nothing to shout about as 2,000 Newcastle fans saw nothing to give them encouragement for the coming season.
Steve McClaren selected £12m striker Aleksandar Mitrovic in his Newcastle line-up at York and saw the recent arrival twice go close to a goal.
But it was League Two York who came away with a win as Anthony Straker's fortunate opener and a second, more impressive, strike from a trialist gave them a 2-0 lead.
Ayoze Perez scrambled a late goal for the visitors on his 22nd birthday, but that was as good as it got.
While Newcastle were slipping to defeat at York, Sunderland were coming a cropper at the Keepmoat, where Doncaster won 2-0 thanks to goals from Cedric Evina and Harry Forrester.
One plus point for Dick Advocaat was a lively performance from Jeremain Lens, the Holland midfielder signed from Dynamo Kiev this summer.
Lens had several decent efforts on goal, and there was also a second-half debut for centre-half Younes Kaboul.