-
Notifications
You must be signed in to change notification settings - Fork 188
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
error building x-road 7.4.2 #2155
Comments
Hello @mghase, Based on the error it seems that for some reason the jar files have not been built. Could you review the output to see if there were any issues with the build and also check the build directories to see if the jar files have been created. |
Now am getting this error [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested |
Unfortunately the ARM architecture is not yet fully supported and part of that is the signer process, which requires native libraries that don't currently support ARM. You could run |
How about Intel processor does it support? |
I believe Intel processors should all be x86 based at this time, so it should work. |
Sorry, you mean only x86 or even Intel x64 can work? |
Yes, the 64bit version is recommended. |
is there any initial configuration before start buulding the image? we still get error in runing build_package.sh |
hello, dpkg-source --before-build . |
Hey, Could you clarify the OS you are building on now and if you are trying to build the code available in the repository or has it been modified? Additionally, please provide the command you are using to build as well. |
OS: and comand used: No any modification made on source code and we use release branch version 7.4.2 |
and we follow this documentation: https:/nordic-institute/X-Road/blob/develop/src/BUILD.md also we try with docker we get the same error ./build_package -d |
Hello,
The Central Server acts as an administrative node for the instance as well as a configuration store and a sort of address book for the Security Servers. It does not play an active role in the data exchange itself. I suggest taking a look at the free courses in the X-Road academy to get a better understanding of the system: https://x-road.thinkific.com/ Regarding the original question, have you now been able to build the software? If not could you please provide the full log of the build as a text file? |
hello @
@raits still we get this error |
|
I am having a bit of trouble reproducing this, could you please also share the output of |
ubuntu@DESKTOP:~/X-Road/src$ git status Untracked files: nothing added to commit but untracked files present (use "git add" to track) |
Could you also provide the output of |
Thanks for your support. We are now able to run the project using ansible. But we could not find the port numbers for CS and SS Servers listed with ip addresses |
Hello, I am glad you were able to run it. I am not quite sure what your question is related to the ports and IP addresses. The IP addresses you would have had to set up yourself with ansible (or if you used LXD, then you can just use the command to list LXD containers to view them). As for the different ports that are in use, please refer to the Central Server and Security Server manuals, as they are documented there. |
running lxc commands shows the ip address for CA, CS and ss1 and ss2. But when I put into browser the ip address does not run and we believe we are not using correct ports. |
Hello, that's strange. Did you have any errors or issues with running the Ansible command? Also please clarify the command you used to set the environment up. As I wrote previously, the ports can be found in the manuals:
The user interface uses port 4000 on both the Central Server and the Security Server. |
@raits Can I know what native library you use in signer that support only amd processor? |
It is the PKCS11 wrapper we use for communicating with HSM-s. It's not that it only supports AMD, it should support any processor (including Intel) that uses the x86-64 instruction set. The library itself is located here in the source code: https:/nordic-institute/X-Road/tree/develop/src/libs As a comment, if you just want to try running the development version of the code, then the simplest way would be to use the Docker compose environment as documented here: https:/nordic-institute/X-Road/tree/develop/Docker/xrd-dev-stack It uses pre-built images from GitHub and also does the initial setup process. Just mind the port mappings in the compose file to figure see how port mappings work. |
Hello, we are building using dev so as to build imeaes locally. Can you please assist what is the error according to attached error messages |
Based on the error it seems like you have built X-Road as one user and are now trying to package it using another user, but the user rights for the build results don't allow you to copy the file. |
after giving it permission to the file due to the permission denied we get this error now -exc format error |
Most likely it is not enough to change the permissions on a single file. The error probably stems from the fact that you are building the source as one user and then trying to package it under another. Probably the simplest thing to do would be to start from scratch and make sure you use the same user to clone, build and package the source code. So please try to delete your current source folder, clone the code again and try running the build_packages.sh script under your own user (not the root user). To simplify things, it would also be best to try with the |
am getting this error when running ./build_package.sh -d in ubuntu 22.04
dpkg-source --before-build .
fakeroot debian/rules clean
dh clean
dh_clean
debian/rules build
dh build
dh_update_autotools_config
dh_autoreconf
create-stamp debian/debhelper-build-stamp
fakeroot debian/rules binary
dh binary
dh_testroot
dh_prep
dh_install
dh_install: warning: Cannot find (any matches for) "../../../../../addons/proxymonitor/metaservice/build/libs/proxymonitor-metaservice-1.0.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-centralserver-monitoring missing files: ../../../../../addons/proxymonitor/metaservice/build/libs/proxymonitor-metaservice-1.0.jar
dh_install: warning: Cannot find (any matches for) "../../../../../central-server/admin-service/application/build/libs/centralserver-admin-service-1.0.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-center missing files: ../../../../../central-server/admin-service/application/build/libs/centralserver-admin-service-1.0.jar
dh_install: warning: Cannot find (any matches for) "../../../../../common/common-db/build/libs/common-db-1.0.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-base missing files: ../../../../../common/common-db/build/libs/common-db-1.0.jar
dh_install: warning: Cannot find (any matches for) "../../../../../security-server/admin-service/application/build/unpacked-libs/postgresql-42.5.4.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-base missing files: ../../../../../security-server/admin-service/application/build/unpacked-libs/postgresql-42.5.4.jar
dh_install: warning: Cannot find (any matches for) "../../../../../signer/build/libs/signer-1.0.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-signer missing files: ../../../../../signer/build/libs/signer-1.0.jar
dh_install: warning: Cannot find (any matches for) "../../../../../signer-console/build/libs/signer-console-1.0.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-signer missing files: ../../../../../signer-console/build/libs/signer-console-1.0.jar
dh_install: warning: Cannot find (any matches for) "../../../../../lib/libpasswordstore.so" (tried in ., debian/tmp)
dh_install: warning: xroad-signer missing files: ../../../../../lib/libpasswordstore.so
dh_install: warning: Cannot find (any matches for) "../../../../../proxy/build/libs/proxy-1.0.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-proxy missing files: ../../../../../proxy/build/libs/proxy-1.0.jar
dh_install: warning: Cannot find (any matches for) "../../../../../configuration-proxy/build/libs/configuration-proxy-1.0.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-confproxy missing files: ../../../../../configuration-proxy/build/libs/configuration-proxy-1.0.jar
dh_install: warning: Cannot find (any matches for) "../../../../../addons/messagelog/messagelog-addon/build/libs/messagelog-addon.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-addon-messagelog missing files: ../../../../../addons/messagelog/messagelog-addon/build/libs/messagelog-addon.jar
dh_install: warning: Cannot find (any matches for) "../../../../../addons/messagelog/messagelog-archiver/build/libs/messagelog-archiver.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-addon-messagelog missing files: ../../../../../addons/messagelog/messagelog-archiver/build/libs/messagelog-archiver.jar
dh_install: warning: Cannot find (any matches for) "../../../../../addons/messagelog/messagelog-archive-verifier/build/libs/messagelog-archive-verifier.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-addon-messagelog missing files: ../../../../../addons/messagelog/messagelog-archive-verifier/build/libs/messagelog-archive-verifier.jar
dh_install: warning: Cannot find (any matches for) "../../../../../addons/metaservice/build/libs/metaservice-1.0.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-addon-metaservices missing files: ../../../../../addons/metaservice/build/libs/metaservice-1.0.jar
dh_install: warning: Cannot find (any matches for) "../../../../../addons/proxymonitor/metaservice/build/libs/proxymonitor-metaservice-1.0.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-addon-proxymonitor missing files: ../../../../../addons/proxymonitor/metaservice/build/libs/proxymonitor-metaservice-1.0.jar
dh_install: warning: Cannot find (any matches for) "../../../../../monitor/build/libs/monitor-1.0.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-monitor missing files: ../../../../../monitor/build/libs/monitor-1.0.jar
dh_install: warning: Cannot find (any matches for) "../../../../../addons/wsdlvalidator/build/libs/wsdlvalidator-1.0.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-addon-wsdlvalidator missing files: ../../../../../addons/wsdlvalidator/build/libs/wsdlvalidator-1.0.jar
dh_install: warning: Cannot find (any matches for) "../../../../../addons/op-monitoring/build/libs/op-monitoring-1.0.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-addon-opmonitoring missing files: ../../../../../addons/op-monitoring/build/libs/op-monitoring-1.0.jar
dh_install: warning: Cannot find (any matches for) "../../../../../op-monitor-daemon/build/libs/op-monitor-daemon-1.0.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-opmonitor missing files: ../../../../../op-monitor-daemon/build/libs/op-monitor-daemon-1.0.jar
dh_install: warning: Cannot find (any matches for) "../../../../../security-server/admin-service/application/build/libs/proxy-ui-api-1.0.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-proxy-ui-api missing files: ../../../../../security-server/admin-service/application/build/libs/proxy-ui-api-1.0.jar
dh_install: warning: Cannot find (any matches for) "../../../../../central-server/registration-service/build/libs/centralserver-registration-service-1.0.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-center-registration-service missing files: ../../../../../central-server/registration-service/build/libs/centralserver-registration-service-1.0.jar
dh_install: warning: Cannot find (any matches for) "../../../../../central-server/management-service/application/build/libs/centralserver-management-service-1.0.jar" (tried in ., debian/tmp)
dh_install: warning: xroad-center-management-service missing files: ../../../../../central-server/management-service/application/build/libs/centralserver-management-service-1.0.jar
dh_install: error: missing files, aborting
make: *** [debian/rules:3: binary] Error 255
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
*** Error building deb-focal packages.
The text was updated successfully, but these errors were encountered: