It is well known that joint pilot and data power control, often known as JPDPC, has a significant effect on cell-free massive multiple-input multiple-output (CFmMIMO) system performance. In this paper, the uplink performance of the CFmMIMO system is evaluated under two conflicting optimization objectives (sum spectral efficiency and proportional fairness) by considering JPDPC as an optimization variable. In the CFmMIMO system with imperfect channel state information (CSI), we first formulate a multi-objective optimization (MOO) problem that can handle the fairness sum-SE trade-off problems. Then, taking into account a total energy budget for each access point, we propose a power control approach that optimally allocates power between data symbols and pilot symbols. Due to the fact that the problem is non-convex, new algorithms based on a combination of successive convex approximation and geometric programming are used to handle it. The numerical results demonstrate the benefit of optimizing the power control over both the pilot and data powers, as contrasted to the scenarios of employing full power and simply optimizing the data powers, as was done in prior studies. Furthermore, the advantage of optimal joint power control in the low SNR regime is confirmed and demonstrated to be significant.