HTTP_SERVICE_UNAVAILABLE

Moderators: Site Moderators, FAHC Science Team

Post Reply
Greatnessguru
Posts: 5
Joined: Wed Feb 12, 2025 2:20 am
Hardware configuration: Raspberry Pi 5, 8GB, aluminum case, small external fan, all four cores.
Location: Cadillac MI USA
Contact:

HTTP_SERVICE_UNAVAILABLE

Post by Greatnessguru »

01:04:58:I1:WU352:Requesting WU assignment for user Anonymous team 0
01:04:58:I1:OUT22:> POST https://assign2.foldingathome.org/api/assign HTTP/1.1
01:04:58:I1:OUT22:< HTTP/1.1 503 HTTP_SERVICE_UNAVAILABLE
01:04:58:E :OUT22:HTTP_SERVICE_UNAVAILABLE: {"error":"No appropriate assignment"}
01:04:58:I1:WU352:Retry #20 in 8 mins 32 secs

This error msg repeats every 8 mins 32 secs.
I have no running WUs.
Can someone fix the server, pls?
The assign2 link above says: error "Key 'data' not found"
Joe_H
Site Admin
Posts: 8127
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Studio M1 Max 32 GB smp6
Mac Hack i7-7700K 48 GB smp4
Location: W. MA

Re: HTTP_SERVICE_UNAVAILABLE

Post by Joe_H »

The "No appropriate assignment" means there are no WUs available suitable for your system with the hardware available and client settings you have made. If this is your Raspberry Pi 5, that could mean that all of the WUs from the smaller projects are assigned or they are currently inactive.
Image
Greatnessguru
Posts: 5
Joined: Wed Feb 12, 2025 2:20 am
Hardware configuration: Raspberry Pi 5, 8GB, aluminum case, small external fan, all four cores.
Location: Cadillac MI USA
Contact:

Re: HTTP_SERVICE_UNAVAILABLE

Post by Greatnessguru »

OK. Thank you.
Paul_M
Posts: 2
Joined: Tue May 27, 2025 6:15 pm

Re: HTTP_SERVICE_UNAVAILABLE

Post by Paul_M »

I hope it's OK me ju,ping on here rather than starting a new thread.
I've got the same issue in that I haven't received a WU for at least 7 days and I get the 'no appropriate assignment' message.
I'm running on a mac - are there no assignments available for mac hardware, or is something messed up in my settings?
Thanks
Joe_H
Site Admin
Posts: 8127
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Studio M1 Max 32 GB smp6
Mac Hack i7-7700K 48 GB smp4
Location: W. MA

Re: HTTP_SERVICE_UNAVAILABLE

Post by Joe_H »

Well, it is not because you are running on a Mac, if that was the case I wouldn't be getting any WUs either. There is currently a 3 CPU thread minimum setting on most CPU projects though. So if your settings are for 2 threads, it is possible to not get any work at the current time.

If that is not the case, could you post the beginning section of your log file that shows the system setup and a section where a WU request is not filled.
Image
Paul_M
Posts: 2
Joined: Tue May 27, 2025 6:15 pm

Re: HTTP_SERVICE_UNAVAILABLE

Post by Paul_M »

Ah - bingo. I'm only running 2 cores. I'll take it up to 3 and see what happens.
Thanks

edit - straight away a WU starts up. I wish I'd known that sooner ...
Last edited by Paul_M on Thu May 29, 2025 5:17 pm, edited 1 time in total.
Joe_H
Site Admin
Posts: 8127
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Studio M1 Max 32 GB smp6
Mac Hack i7-7700K 48 GB smp4
Location: W. MA

Re: HTTP_SERVICE_UNAVAILABLE

Post by Joe_H »

Hopefully that 3 thread minimum will go away at some point, it is a workaround for a problem that can show up with the v7 client. If the client is configured wrong it tries to load a CPU WU instead of a GPU WU.
Image
toTOW
Site Moderator
Posts: 6443
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France
Contact:

Re: HTTP_SERVICE_UNAVAILABLE

Post by toTOW »

No, the issue is with v8 default resource group that allow to mix GPU and CPU allocations. v7 client is perfectly fine as CPU and GPU slots are exclusive.
Image

Folding@Home beta tester since 2002. Folding Forum moderator since July 2008.
arisu
Posts: 498
Joined: Mon Feb 24, 2025 11:11 pm

Re: HTTP_SERVICE_UNAVAILABLE

Post by arisu »

toTOW wrote: Thu May 29, 2025 8:40 pm No, the issue is with v8 default resource group that allow to mix GPU and CPU allocations. v7 client is perfectly fine as CPU and GPU slots are exclusive.
Why not allow <=2 threads if the client is making a request that doesn't indicate a GPU in the JSON sent to /api/assign? That would solve it for everyone who is doing CPU-only folding, which is probably almost everyone who wants to fold on so few threads anyway.

Example function (in Python) that would do this server-side:

Code: Select all

def should_assign(request: dict) -> bool:
    resources = request['resources']
    if resources['cpus']['cpu'] < 3:
        for resource in resources.keys():
            if resource.startswith('gpu'):
                return False
    return True
muziqaz
Posts: 1745
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 9950x, 7950x3D, 5950x, 5800x3D
7900xtx, RX9070, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: HTTP_SERVICE_UNAVAILABLE

Post by muziqaz »

arisu wrote: Fri May 30, 2025 1:10 am
toTOW wrote: Thu May 29, 2025 8:40 pm No, the issue is with v8 default resource group that allow to mix GPU and CPU allocations. v7 client is perfectly fine as CPU and GPU slots are exclusive.
Why not allow <=2 threads if the client is making a request that doesn't indicate a GPU in the JSON sent to /api/assign? That would solve it for everyone who is doing CPU-only folding, which is probably almost everyone who wants to fold on so few threads anyway.

Example function (in Python) that would do this server-side:

Code: Select all

def should_assign(request: dict) -> bool:
    resources = request['resources']
    if resources['cpus']['cpu'] < 3:
        for resource in resources.keys():
            if resource.startswith('gpu'):
                return False
    return True
There are many ways of constraining the assignments. 99% of them are not simple and/or easy :)
FAH Omega tester
Image
arisu
Posts: 498
Joined: Mon Feb 24, 2025 11:11 pm

Re: HTTP_SERVICE_UNAVAILABLE

Post by arisu »

That would fix it and would be simple though. Or is the server-side code too convoluted to make a change like that?
muziqaz
Posts: 1745
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 9950x, 7950x3D, 5950x, 5800x3D
7900xtx, RX9070, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: HTTP_SERVICE_UNAVAILABLE

Post by muziqaz »

arisu wrote: Fri May 30, 2025 6:17 am That would fix it and would be simple though. Or is the server-side code too convoluted to make a change like that?
Server code is not us here, but the person who has too many responsibilities :)
FAH Omega tester
Image
Greatnessguru
Posts: 5
Joined: Wed Feb 12, 2025 2:20 am
Hardware configuration: Raspberry Pi 5, 8GB, aluminum case, small external fan, all four cores.
Location: Cadillac MI USA
Contact:

Re: HTTP_SERVICE_UNAVAILABLE

Post by Greatnessguru »

I'm getting WUs again. I'm using all four cores.
Thanks.
Post Reply