ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/up2date_client/__pycache__/up2dateErrors.cpython-36.pyc
3

c8h)!@sddlZejdddZeeds(eje_ejZddlZddlmZddl	m
Z
ddl	mZdd	lm
Z
ddlZejd
dejdd
e_yddlmZWnJek
ryddlmZWn$ek
rGd
ddeZYnXYnXGdddeZGdddeZyddlmZWnBek
rZyddlmZWnek
rTeZYnXYnXGdddeZGdddeZGdddeZGdddeZGdddeZGdddeZGd d!d!eZGd"d#d#eZ Gd$d%d%eZ!Gd&d'd'eZ"Gd(d)d)e!eZ#Gd*d+d+e!Z$Gd,d-d-e!eZ%Gd.d/d/e%Z&Gd0d1d1eZ'Gd2d3d3e!Z(Gd4d5d5e!Z)Gd6d7d7e!eZ*Gd8d9d9e!eZ+Gd:d;d;e!eZ,Gd<d=d=eZ-Gd>d?d?e!Z.Gd@dAdAeZ/GdBdCdCeeZ0GdDdEdEeZ1GdFdGdGe%Z2GdHdIdIeZ3GdJdKdKeZ4GdLdMdMe!Z5GdNdOdOe!Z6GdPdQdQe!Z7GdRdSdSe!Z8GdTdUdUe!Z9GdVdWdWeZ:GdXdYdYe!Z;GdZd[d[e!Z<dS)\Nzrhn-client-toolsT)Zfallbackugettext)ustr)config)
up2dateLog)getPlatform)YumBaseError)Errorc@s$eZdZddZddZddZdS)PmBaseErrorcCs
||_dS)N)value)selferrmsgr#/usr/lib/python3.6/up2dateErrors.py__init__-szPmBaseError.__init__cCsttd|jj|fdS)Nzclass %s has no attribute '%s')AttributeError_	__class____name__)rnamerrr__getattr__/szPmBaseError.__getattr__cCs"|dkr||jd<n
||j|<dS)Nr
r)r
r)__dict__)rrrrrr__setattr__1szPmBaseError.__setattr__N)r
__module____qualname__rrrrrrrr
,sr
c@s4eZdZdZdZddZddZddZd	d
ZdS)r	zbase class for errorscCs2t|}tj||d|j||_tj|_dS)Nzrhn-plugin: )rr
rpremsgrrZinitLoglog)rr
rrrr;szError.__init__cCs|jj|j|jS)N)rZlog_mer)rrrr__repr__AszError.__repr__cCsT|dkr|jSttdr$tj||S||jkr8|j|Sttd|jj|fdS)zG Spacewalk backend still use errmsg, let have errmsg as alias to value r
rzclass %s has no attribute '%s'N)	rhasattrr
rrrrrr)rrrrrrEs


zError.__getattr__cCs<|dkr||jd<n$ttdr.tj|||n
||j|<dS)zG Spacewalk backend still use errmsg, let have errmsg as alias to value r
rrN)rrr
r)rrrrrrrSs

zError.__setattr__N)	rrr__doc__rrrrrrrrrr	8sr	c@seZdZdS)DebAndSuseRepoErrorN)rrrrrrrr!^sr!)	RepoErrorc@seZdZdZedZdS)RpmErrorz$rpm itself raised an error conditionzRPM error.  The message was:
N)rrrr rrrrrrr#jsr#c@seZdZdS)RhnServerExceptionN)rrrrrrrr$nsr$c@seZdZdZedZdS)
PasswordErrorz@Raise when the server responds with that a password is incorrectz!Password error. The message was:
N)rrrr rrrrrrr%qsr%c@s"eZdZdZedZdddZdS)DependencyErrorz7Raise when a rpm transaction set has a dependency errorz'RPM dependency error. The message was:
NcCstj||||_dS)N)r	rdeps)rmsgr'rrrrxszDependencyError.__init__)N)rrrr rrrrrrrr&usr&c@seZdZdZedZdS)CommunicationErrorzDIndicates a problem doing xml-rpc http communication with the serverz2Error communicating with server. The message was:
N)rrrr rrrrrrr)sr)c@seZdZdZedZdS)FileNotFoundErrorzR
    Raise when a package or header that is requested returns
    a 404 error codezFile Not Found: 
N)rrrr rrrrrrr*sr*c@seZdZdZedZdS)
DelayErrorzO
    Raise when the expected response from a xml-rpc call
    exceeds a timeoutz+Delay error from server.  The message was:
N)rrrr rrrrrrr+sr+c@s eZdZdZddZddZdS)RpmRemoveErrorzP
    Raise when we can't remove a package for some reason
    (failed deps, etc)cCs`tj|d||_x@|jjD]2}t|j||j|<|jd||j|f|_qW|j|_dS)Nrz%s failed because of %s
)r	rargskeysrrdata)rr-keyrrrrszRpmRemoveError.__init__cCs|jS)N)r)rrrrrszRpmRemoveError.__repr__N)rrrr rrrrrrr,sr,c@seZdZddZddZdS)
NoLogErrorcCst|}|j||_dS)N)rrr)rr(rrrrszNoLogError.__init__cCs|jS)N)r)rrrrrszNoLogError.__repr__N)rrrrrrrrrr1sr1c@seZdZdS)
AbuseErrorN)rrrrrrrr2sr2c@seZdZdS)AuthenticationTicketErrorN)rrrrrrrr3sr3c@seZdZdS)AuthenticationErrorN)rrrrrrrr4sr4c@seZdZdZedZdS)ValidationErrorz1indicates an error during server input validationz!Error validating data at server:
N)rrrr rrrrrrr5sr5c@seZdZdS)InvalidRegistrationNumberErrorN)rrrrrrrr6sr6c@s$eZdZddZddZddZdS)RegistrationDeniedErrorcCstj||jdS)N)r$rchangeExplanation)rrrrrsz RegistrationDeniedError.__init__cCs|jS)N)r)rrrrrsz RegistrationDeniedError.__repr__cCstdS)Nz
CloudLinux Network Classic is not supported.
To register with CloudLinux Subscription Management please run:

    subscription-manager register --auto-attach

Get more information at www.cloudlinux.com
    )r)rrrrr8sz)RegistrationDeniedError.changeExplanationN)rrrrrr8rrrrr7sr7c@seZdZdZedZdS)InvalidProductRegistrationErrorz1indicates an error during server input validationz"The installation number is invalidN)rrrr rrrrrrr9sr9c@seZdZedZdS)OemInfoFileErrorz)Error parsing the oemInfo file at field:
N)rrrrrrrrrr:sr:c@seZdZdZdS)NoBaseChannelErrorz/No valid base channel was found for this systemN)rrrr rrrrr;sr;c@seZdZdS)UnknownMethodExceptionN)rrrrrrrr<sr<c@seZdZdS)RhnUuidUniquenessErrorN)rrrrrrrr=sr=c@seZdZdddZddZdS)ServerCapabilityErrorNcCs tj||g|_|r||_dS)N)r	r	errorlist)rr(r?rrrrszServerCapabilityError.__init__cCs|jS)N)r)rrrrrszServerCapabilityError.__repr__)N)rrrrrrrrrr>s
r>c@seZdZdS)NoChannelsErrorN)rrrrrrrr@sr@c@seZdZdZedZdS)NetworkErrorzD some generic network error occurred, e.g. connection reset by peer zNetwork error: N)rrrr rrrrrrrAsrAc@seZdZddZejZdS)SSLCertificateVerifyFailedErrorcCsftj}|d}t|d}|j}|jtjjtjj|}|j	rVt
j|d|nt
j|ddS)NZ	sslCACertrznThe certificate %s is expired. Please ensure you have the correct certificate and your system time is correct.z(The SSL certificate failed verification.)rZinitUp2dateConfigopenreadcloseOpenSSLZcryptoZload_certificateZFILETYPE_PEMZhas_expiredr"r)rZ
up2dateConfigZcertFilefZbufZtempCertrrrrs

z(SSLCertificateVerifyFailedError.__init__N)rrrrr	rrrrrrBsrBc@seZdZdS)SSLCertificateFileNotFoundN)rrrrrrrrIsrIc@seZdZdZdS)$AuthenticationOrAccountCreationErrora%Class that can represent different things depending on context:
    While logging in with an existing user it represents a username or password
    being incorrect.
    While creating a new account, it represents the username already being
    taken or the user not being allowed to create an account.
    Optimally these different things would be different exceptions, but there
    are single fault codes the server can return to the client that can mean
    more than one of them so we have no way of knowing which is actually
    intended.

    N)rrrr rrrrrJsrJc@seZdZdS)NotEntitlingErrorN)rrrrrrrrKsrKc@seZdZdS)InvalidProtocolErrorN)rrrrrrrrLsrLc@seZdZdS)UnableToCreateUserN)rrrrrrrrMsrMc@seZdZdS)ActivationKeyUsageLimitErrorN)rrrrrrrrNsrNc@seZdZdS)LoginMinLengthErrorN)rrrrrrrrOsrOc@seZdZdS)PasswordMinLengthErrorN)rrrrrrrrPsrPc@seZdZdS)PasswordMaxLengthErrorN)rrrrrrrrQ!srQc@s$eZdZddZddZddZdS)InsuffMgmntEntsErrorcCstj||j|dS)N)r$rr8)rr(rrrr&szInsuffMgmntEntsError.__init__cCs|jS)N)r)rrrrr)szInsuffMgmntEntsError.__repr__cCs.td}d}|j|t|}|d||S)Na
    Your organization does not have enough Management entitlements to register this
    system to CloudLinux Network. Please notify your organization administrator of this error.
    You should be able to register this system after your organization frees existing
    or purchases additional entitlements. Additional entitlements may be purchased by your
    organization administrator by logging into CloudLinux Network and visiting

    A common cause of this error code is due to having mistakenly setup an
    Activation Key which is set as the universal default.  If an activation key is set
    on the account as a universal default, you can disable this key and retry to avoid
    requiring a Management entitlement.zExplanation:)rrindexlen)rr(ZnewExplnZtermlocrrrr8,s

z&InsuffMgmntEntsError.changeExplanationN)rrrrrr8rrrrrR%srRc@seZdZdS)NoSystemIdErrorN)rrrrrrrrV<srVc@seZdZdZdS)InvalidRedirectionErrorz7 Raise when redirect requests could'nt return a packageN)rrrr rrrrrW?srW)=gettextZtranslationtrrrrGZrhn.i18nrZup2date_clientrrZup2date_client.pkgplatformrsyspathZ
yum.Errorsrr
ImportErrorZdnf.exceptionsr		Exceptionr!r"r#r$r%r&r)r*r+r,r1r2r3r4r5r6r7r9r:r;r<r=r>r@rArBrIrJrKrLrMrNrOrPrQrRrVrWrrrr<module>s~
&