[SOLVED] Android App error

Frenchi

New Member
Sep 5, 2024
3
0
1
Hi,

I’m having an issue with the Proxmox mobile app. Every time I try to connect to my server, I get this error message:

Deserializing to 'PveClusterResourcesModel' failed due to: Deserializing to 'int' failed due to: type 'double' is not a subtype of type 'int' in type cast.

I’ve already updated both Proxmox and the app, cleared cache, and even reinstalled the app, but the issue persists. Is anyone else experiencing this issue? Any suggestions for fixing it?

Thanks in advance!
 

Attachments

  • Screenshot_20240905_083520.jpg
    Screenshot_20240905_083520.jpg
    208.2 KB · Views: 9
hi,

it seems there is some field we expect to be an integer, but it's returned as a floating point value from the api

could you post the output of
Code:
pvesh get /cluster/resources --output-format json
? Note that this includes vmids/names/etc of vms so you may want to anonymize the output a bit
 
Hi,
Yes but i dont understand why. The JSON seems correctly formatted


JSON:
[
  {"cpu":0.037946185911507,"disk":1489801216,"diskread":99667968,"diskwrite":5328896,"id":"lxc/XXX","maxcpu":1,"maxdisk":2040373248,"maxmem":536870912,"mem":116076544,"name":"VM1","netin":11845173,"netout":4750193,"node":"pve","status":"running","template":0,"type":"lxc","uptime":9231,"vmid":100},
  {"cpu":0.00403473177062779,"disk":0,"diskread":760882176,"diskwrite":227783680,"id":"qemu/XXX","maxcpu":4,"maxdisk":34359738368,"maxmem":4294967296,"mem":1887768576,"name":"VM2","netin":23858780,"netout":11836252,"node":"pve","status":"running","template":0,"type":"qemu","uptime":9230,"vmid":101},
  {"cpu":0.0310846838014811,"disk":39839928320,"diskread":2667696128,"diskwrite":1589469184,"id":"lxc/XXX","maxcpu":4,"maxdisk":88183242752,"maxmem":4294967296,"mem":2074562560,"name":"VM3","netin":827292866,"netout":756718947,"node":"pve","status":"running","template":0,"type":"lxc","uptime":9219,"vmid":102},
  {"cpu":0.000701744533979924,"disk":6267154432,"diskread":1106649088,"diskwrite":249348096,"id":"lxc/XXX","maxcpu":4,"maxdisk":21024690176,"maxmem":21474836480,"mem":314785792,"name":"VM4","netin":21883576,"netout":297017,"node":"pve","status":"running","template":0,"type":"lxc","uptime":9215,"vmid":103},
  {"cpu":0.00869989038041617,"disk":0,"diskread":1428877870,"diskwrite":295116800,"id":"qemu/XXX","maxcpu":8,"maxdisk":21474836480,"maxmem":6442450944,"mem":5056995328,"name":"VM5","netin":23946949,"netout":1906038,"node":"pve","status":"running","template":0,"type":"qemu","uptime":9213,"vmid":104},
  {"cpu":0.000467829689319949,"disk":1297678336,"diskread":194914816,"diskwrite":6285824,"id":"lxc/XXX","maxcpu":2,"maxdisk":2040373248,"maxmem":1073741824,"mem":119431168,"name":"VM6","netin":8507912,"netout":17774,"node":"pve","status":"running","template":0,"type":"lxc","uptime":9207,"vmid":105},
  {"cpu":0.000103962153182211,"disk":2115006464,"diskread":248340480,"diskwrite":8077312,"id":"lxc/XXX","maxcpu":1,"maxdisk":4143677440,"maxmem":536870912,"mem":86339584,"name":"VM7","netin":17168334,"netout":9316939,"node":"pve","status":"running","template":0,"type":"lxc","uptime":9204,"vmid":106},
  {"cpu":0,"disk":0,"diskread":0,"diskwrite":0,"id":"qemu/XXX","maxcpu":4,"maxdisk":17179869184,"maxmem":2147483648,"mem":0,"name":"VM8","netin":0,"netout":0,"node":"pve","status":"stopped","template":0,"type":"qemu","uptime":0,"vmid":107},
  {"cgroup-mode":2,"cpu":0.0459886291850916,"disk":14798053376,"id":"node/pve","level":"","maxcpu":8,"maxdisk":72722055168,"maxmem":33285906432,"mem":12967288832,"node":"pve","status":"online","type":"node","uptime":9265},
  {"content":"vztmpl,backup,iso","disk":14798053376,"id":"storage/pve/local","maxdisk":72722055168,"node":"pve","plugintype":"dir","shared":0,"status":"available","storage":"storage1","type":"storage"},
  {"content":"images,rootdir,backup,vztmpl,iso,snippets","disk":260413784064,"id":"storage/pve/hdd_interne","maxdisk":491107540992,"node":"pve","plugintype":"dir","shared":0,"status":"available","storage":"storage2","type":"storage"},
  {"content":"vztmpl,backup,snippets,iso,images,rootdir","disk":84748316672,"id":"storage/pve/FREEBOXSAVE","maxdisk":492025692160,"node":"pve","plugintype":"cifs","shared":1,"status":"available","storage":"storage3","type":"storage"},
  {"content":"rootdir,images,iso,snippets,backup,vztmpl","disk":77937803264,"id":"storage/pve/hdd_externe","maxdisk":1967814529024,"node":"pve","plugintype":"dir","shared":0,"status":"available","storage":"storage4","type":"storage"},
  {"content":"rootdir,images","disk":54848501527,"id":"storage/pve/local-lvm","maxdisk":151640866816,"node":"pve","plugintype":"lvmthin","shared":0,"status":"available","storage":"local-lvm","type":"storage"},
  {"content":"backup","disk":0,"id":"storage/pve/s3-swissbackup","maxdisk":18446744073692774400,"node":"pve","plugintype":"dir","shared":1,"status":"available","storage":"storage5","type":"storage"},
  {"id":"sdn/pve/localnetwork","node":"pve","sdn":"localnetwork","status":"ok","type":"sdn"}
]
 
Last edited:
ok it seems one of your storages report a very large size that does not fit into the 'integer' type of the app
{"content":"backup","disk":0,"id":"storage/pve/s3-swissbackup","maxdisk":18446744073692774400,"node":"pve","plugintype":"dir","shared":1,"status":"available","storage":"storage5","type":"storage"},

can you post the output of
Code:
df
on your pve? does it really report such a size?
 
Yes, indeed, Proxmox considers the size to be 18 exabytes. It's an S3 service mount used for backup, but it is not fully functional. I can send data to it from Proxmox, but Proxmox cannot retrieve data from it. I just unmounted the S3 drive, and I no longer have issues with the app. I didn't think the problem could come from there. Thank you very much!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!