Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring back system registration #1806

Open
imobachgs opened this issue Dec 4, 2024 · 4 comments
Open

Bring back system registration #1806

imobachgs opened this issue Dec 4, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@imobachgs
Copy link
Contributor

We need to bring back the ability to register. We have started to work on the product-registration branch. Let's use this issue for coordinating our work.

@imobachgs imobachgs added the enhancement New feature or request label Dec 4, 2024
@imobachgs imobachgs changed the title The system cannot be registered Bring back system registration Dec 4, 2024
@imobachgs
Copy link
Contributor Author

imobachgs commented Dec 4, 2024

I have tried to run the registration using cURL, but it fails with the following error:

{"error":"Agama service error: D-Bus service error: org.freedesktop.DBus.Error.Failed: Refreshing service 'SUSE_Linux_Enterprise_Server_15_SP6_x86_64' failed.; caused by 1 sender=:1.1 -> dest=org.opensuse.Agama.Software1 serial=169 reply_serial= path=/org/opensuse/Agama/Software1/Product; interface=org.opensuse.Agama1.Registration; member=Register error_name="}

I am attaching the logs.

@jreidinger
Copy link
Contributor

I have tried to run the registration using cURL, but it fails with the following error:

{"error":"Agama service error: D-Bus service error: org.freedesktop.DBus.Error.Failed: Refreshing service 'SUSE_Linux_Enterprise_Server_15_SP6_x86_64' failed.; caused by 1 sender=:1.1 -> dest=org.opensuse.Agama.Software1 serial=169 reply_serial= path=/org/opensuse/Agama/Software1/Product; interface=org.opensuse.Agama1.Registration; member=Register error_name="}

I am attaching the logs.

Reason is really that credentials file I already point you out. See these related files in y2log:

2024-12-04 11:04:31 <2> agama(2726) [zypp-media] credentialmanager.cc(getCredFromFile):264 /run/agama/zypp/etc/zypp/credentials.d/SUSE_Linux_Enterprise_Server_15_SP6_x86_64{[2-No such file or directory]} does not contain valid credentials or is not readable.
2024-12-04 11:04:31 <1> agama(2726) [zypp::media++] MediaCurl.cc(authenticate):1542 callback answer: cancel
2024-12-04 11:04:31 <5> agama(2726) [zypp-core] Exception.cc(log):219 MediaCurl.cc(evaluateCurlCode):893 THROW:    Login failed. (https://scc.suse.com/access/services/2493/repo/repoindex.xml?credentials=SUSE_Linux_Enterprise_Server_15_SP6_x86_64): The requested URL returned error: 401
2024-12-04 11:04:31 <5> agama(2726) [zypp-core] Exception.cc(log):219 MediaCurl.cc(doGetDoesFileExist):1084 RETHROW:  Login failed. (https://scc.suse.com/access/services/2493/repo/repoindex.xml?credentials=SUSE_Linux_Enterprise_Server_15_SP6_x86_64): The requested URL returned error: 401
2024-12-04 11:04:31 <1> agama(2726) [zypp-media++] credentialmanager.cc(init_globalCredentials):155 global cred file does not existGot 0 global records.

and this part of logs shows that it writes properly service and only in refresh step it failed:

2024-12-04 11:04:31 <1> agama(2726) [zypp::repomanager] repomanager.cc(filenameFromAlias):144 generating filename for service [SUSE_Linux_Enterprise_Server_15_SP6_x86_64] : './SUSE_Linux_Enterprise_Server_15_SP6_x86_64.service'
2024-12-04 11:04:31 <1> agama(2726) [zypp::repomanager] repomanager.cc(saveService):1217 saving service in /run/agama/zypp/etc/zypp/services.d/SUSE_Linux_Enterprise_Server_15_SP6_x86_64.service
2024-12-04 11:04:31 <1> agama(2726) [zypp::repomanager] repomanager.cc(saveService):1226 done
2024-12-04 11:04:31 <1> agama(2726) [zypp::repomanager] repomanager.cc(addService):1022 added service SUSE_Linux_Enterprise_Server_15_SP6_x86_64
2024-12-04 11:04:31 <1> agama(2726) [Pkg] software/manager.rb:368 Pkg Builtin called: ServiceForceRefresh

@jreidinger
Copy link
Contributor

@imobachgs I create quick POC for fix, but sadly does not have time to properly test it. Please give it a try. I think it is not rocket science in that fix #1807

@imobachgs
Copy link
Contributor Author

Updated logs:
agama-logs-1733350034.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants