There should be a warranty on the component of your solar system, in addition to the workmanship of the installer.
1- The Panels. Panels are not meant to go bad easily. They are meant to last 40+ years! If they go bad it is very rare, and usually due to physical damage to the panel from a tree branch, a rock, a fall, or maybe a squirrel or racoon chewing the cable. Besides that a panel should not give you any issues. There are two warranties normally on a solar panel, one to cover the workmanship of the panel if it stops working and should cover the costs of replacement including labor, an the other is as an output guarantee to protect the buyer from unusual degradation of the panel. The standard warranty in the market is 10 years for workmanship, and a 25 year production guarantee. This is standard with all panel manufacturers and is not usually something you have to be cautious with.
2- The inverter. Now this part of your system is the most important warranty you should pay close attention to. Inverters have computer components, sensors, transistors, and hundreds of components in them which are not meant to last as long as the solar panel itself. Almost all central/string inverters come with a 10 year warranty with an option to extend them to 20 or 25 years. The most common string inverters used in the industry are SolarEdge or SMA. Today most solar installers in the market use SolarEdge string inverters because it is much more cheaper cost wise, and easier to install, compared to micro-inverters, which is the second type of inverter you could get. Enphase Energy is the most common micro-inverter product on the market and is an American-based company. Enphase provides a 25 year warranty which will cover labor and parts for replacement for the entire 25 year period, and what’s even better about this technology, is if any issues occur with your system it can be remotely diagnosed. This minimizes future maintenance costs if any problems arise which can cost up to $250/hr for an electrician to come out and diagnose your system.
3- The Workmanship. The workmanship is going to cover any and all work directly related to the solar install on your home by the installer. Workmanship warranties for solar typically are for 10 years, but range from 2 years to 25 years. This includes any issues on your roof such as leaks or structural issues in the area where the solar system was installed. All the wiring on the roof, and conduit running from the roof to your breaker panel, breakers installed in your breaker panel, and all the mounting and rails, are all covered under the workmanship warranty.