Open MNesche opened 7 months ago
I tried to set up by native install and was able to set users without problem. @heliocastro how do you set up users when you set sw360 via docker compose?
@MNesche did you show the result when you click someone action button in not in couchdb table?
@MNesche, users will be added to couchdb when they login to sw360
Good morning, thank you for your replies.
When updating a user inside Liferay, the following message is shown:
This is the container log from sw360 after that:
This is the container setup (couchdb 3.0 is used cause I thought it might've been a problem with the latest version):
This is the couchdb container log:
Please let me know, if you need any further screenshots or information. Kind regards. Enzo
I did another fresh and clean setup, added one user manually and made the import afterwards. Here are the logs: sw360, preImport: sw360_logs_preImport.txt
sw360, postImport: sw360_logs_postImport.txt
Postgre: sw360_git-postgresdb-1_logs.txt
CouchDB: sw360_git-couchdb-1_logs.txt
Thanks a lot in advance for your time and efforts in helping to resolve the issue. Kind regards.
I have same issue.
@MNesche @ShotaroYoshinaga Can you click actions pencil icon in the screenshot?
@KoukiHama, thank you for your reply. Here's the result of the actions pencil icon:
Preferences look like this:
@MNesche Can you update user info from this page? if not, can you share logs about the operation?
@KoukiHama Updating from this page leads to this error: The logs are in this comment: https://github.com/eclipse-sw360/sw360/issues/2393#issuecomment-2036684611
Hello, I've done another clean install from docker (docker compose up -d) and I'm attaching the output of the whole sw360 log and couchdb log, because the issues still exists. I do still have a bit of hope to be able to get it running with your help, so that I may do the presentation to introduce sw360 within the company on friday. Thanks a lot in advance. Kind regards. Enzo couchdb_log01.txt sw360_log02.txt
Hi. I'm back from vacation. Let me try to catch up from the beginning, but starts with the docker version. 18.0.0 was not ok, due to invalid thrift, and java set. So, sorry for being late, but the correct version ( also tagged as latest ) is this one:
If you please try this i'll appreciate.
Dear heliocastro,
thank you for your reply, hope you had a great and relaxing vacation :).
So here's what I did, after deleting all existing images and volumes:
git clone
According to the docker-compose file, it uses image: "ghcr.io/eclipse-sw360/sw360:latest" for the build. However, in sw360, the version number is:
The issue is still the same, the log is attached. Thanks a lot in advance for having a look. sw360-18.0.2-M1_log.txt
Version is correct, as is done in a post stage of 18.0.0. We did not make an official release because we're waiting from 18.1.0 be tagged soon.
Back to the issue, i smell some discrepancy on documentation and execution. On the logs are clear that there are multiple attempts to fetch users. By default, a zeroed sw360 has one single user, the liferay admin, setup@sw360.org, meaning you are importing users before use, or creating some users by hand.
So, help me here, how you effectively created the users after installed and configured from zero ?
I want to reproduce in a clean VM
Good morning heliocastro, thank you for your reply. The setup of liferay is done according to this description: https://eclipse.dev/sw360/docs/deployment/legacy/deploy-liferay7.4/
After import of the LAR-files, I've imported the users from the file, described in section "Import User Accounts for Testing". This is the user page after user import, logout of setup user and login as admin user:
Clicking on the pencil icon to update the user leads to this:
And clicking on update user follows:
However, none of these actions leads to an entry in the couchdb log, that's why I guessed there's no connection, but when I logged into the container shell of sw360 and made a request to the couchdb via curl to http://couchdb:5984, it was ok.
There we go, again the import issue coming from documentation. @ag4ums @KoukiHama Same issue presented weeks ago by different user, the template of import users are not ok and information on website is outdated.
@MNesche I would ask to you if possible, to remove the database and postgres volumes, restart and reconfigure but:
and DO NOT import users from the test template, just create some users by hand:
I guess this will work.
yes documents are outdated. we can renewal this after release 18.1 https://github.com/eclipse-sw360/sw360.website/pull/55
Dear Heliocastro and KoukiHama, thank you for your messages. I've done a clean install, imported the suggested LAR-Files and added two users.
This is the message after creating the admin with setup@sw360.org-user: This is how it looks in user view: Same happened after creating the user:
This is again, when trying to update the user after log in with previously created admin user account:
Here's the log. First, the download of the LAR-files was not right, that's why I got an "java.util.zip.ZipException: zip END header not found" in line 1196. However, that's a good marker in the log, cause after this, I did the import after redownloading, setup of admin & user, logged out and logged back in with admin. sw360_log090424_1734.txt
Hope that helps & please let me know, if you need any further informations. Kind regards and thanks a lot in advance.
Discussed in https://github.com/eclipse-sw360/sw360/discussions/2382
Update from today: I have set it up a few times, all with the same result. The connection to the CouchDB (latest, 3.3) is valid, tested from sw360 container shell via curl to http://couchdb:5984. It seems that importing or creating a user via liferay just doesn't get the user created in CouchDB also.
Is it possible to create a user in the couchdb directly? Could somebody please add the resulting JSON-form from couchdb with the test-users, so that I may insert it and try again?
Thanks a lot in advance, I wanted to present sw360 for an introduction next week but so far, I'm a bit lost to get it running in time.