The Sun's activity is rising again after decades of decline, surprising scientists and raising concerns about space weather.