Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important information on the platform change.

cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

The AMD64 snap is working on virtual core but ARM64 snap not on the core

The AMD64 snap is working on virtual core but ARM64 snap not on the core

srsps
Member

I created a snap with amd64 arch and deployed it on the virtual core. The app is running as expected.

Now when we tried to deploy the it in the core (arm64) the snap is not initializing. I'm getting this messege.

Screenshot 2023-09-13 112312.png

 

 

I checked the logbook and tried to find the unit which also I cannot find. Do you know what might be the reason?

 

-app is a fastAPI server

-I am getting this warning frequently: Trace warning web.common.logger;;Failed update status: failed to update the status on device portal. Error: Patch "https://cert.device.deviceportal.bosch.com/bulk/v2/devicestatus": dial tcp: lookup cert.device.deviceportal.bosch.com: Temporary failure in name resolution

 

8 REPLIES 8

nickH
Community Moderator
Community Moderator

Hi, 

it seems like you were not able to crossbuild for the arm64 architecture properly. Can you give me some more information on your snap? 

Which SDK-sample did you use? Which programming language did you use? How did you build it?

You can also filter in the logbook for the log messages for your snap (filter: unit). Please have a look, here if you can see some logs. 

 

Best regards, 

Nick

Sgilk
Frequent Contributor

If you have SSH access, I'd suggest restarting your snap and watching the logs on startup.

Ex: sudo snap restart ctrlx-node-red; sudo snap logs -f ctrlx-node-red

I used python for the snap. and arm64 was built using the shell script in other examples. In the log I cannot find the unit for my snap. I can share the snap log if you wan to take a look.

Here is the log of the snapcraft. And Im adding the yaml file for your reference.

nickH
Community Moderator
Community Moderator

I think the problem comes with some python libraries you are using, which are difficult to cross compile. 

Have a look at this post from @MauroRiboniMX, he already explaind the issue: Community Post - Python install packages.

Best regards, 

Nick 

Hello,

Python cannot be cross compiled. so if you use purely "interpreted" libs then it works otherwise not.
It is a snapcraft problem and not a ctrlX deficit. Which libs are you using by the way?

cross compile python 

i am using following libraries: python-packages:
- wheel
- requests
- flask
- fastapi
- uvicorn
- pydantic
- pyomo
- networkx
- pandas
- typing

 

among these which would bw the ones that need to be modified?

Try to remove pandas. i think that this could be the problem. Anyway better if you run a simple script with just flask and then try to add the libraries one by one. 

Edit: also pydantic has this problem. check here: https://pypi.org/project/pydantic-core/#files

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist