Skip to content

solana program close still freezes Surfpool block production on v1.0.1 and fails to close program #575

@Tinkercad580

Description

@Tinkercad580

Environment

Surfpool version: 1.0.1
Solana CLI: 2.3.10
OS: Ubuntu (WSL2)
RPC: http://localhost:8899

Description

When running solana program close against a Surfpool validator, the transaction fails with:

Error: Close failed: RPC response error -32002:
Failed to process transaction: receiving on an empty and disconnected channel

After this error occurs, Surfpool stops producing blocks (~400ms block production halts) and the validator becomes stuck. The RPC becomes unresponsive and the Surfpool process must be restarted.

This appears to be the same behavior originally reported in Issue #454, which was supposedly fixed in PR #457. However, the issue still occurs in Surfpool v1.0.1.

Steps to Reproduce

Start Surfpool
Deploy an upgradeable program
Attempt to close the program

solana program close GFr2d7PgU5QHHrpjpsV2iWb1wH4N19Ud7R5KaiUzuEh3
--bypass-warning
--url http://localhost:8899

Program Info
Program Id: GFr2d7PgU5QHHrpjpsV2iWb1wH4N19Ud7R5KaiUzuEh3
Owner: BPFLoaderUpgradeab1e11111111111111111111111
ProgramData Address: CByeemGwRyfyCJCDei3PHLX5gnRzHYouJy3vAyRjoTSA
Authority: 7txKdn6kUtELPCNSSESPX8kiSk9RFUyxLjx9rdyNrp9C
Data Length: 216808 bytes
Balance: 1.51 SOL

Error Output
Error: Close failed: RPC response error -32002:
Failed to process transaction: receiving on an empty and disconnected channel

Debug :
[2026-03-15--12-02-40 INFO actix_server::builder] starting 5 workers
[2026-03-15--12-02-40 INFO actix_server::server] Tokio runtime found; starting in existing Tokio runtime
[2026-03-15--12-02-40 INFO actix_server::server] starting service: "actix-web-service-0.0.0.0:18488", workers: 5, listening on: 0.0.0.0:18488
[2026-03-15--12-02-40 INFO parity_ws] Listening for new connections on 0.0.0.0:8900.
[2026-03-15--12-02-42 INFO txtx::svm::deploy_program] [Recovery Instructions] - An ephemeral authority account will be created and funded to write to the buffer account.
[2026-03-15--12-02-42 INFO txtx::svm::deploy_program] [Recovery Instructions] - Please save the following information in case the deployment fails and the account needs to be recovered:
[2026-03-15--12-02-42 INFO txtx::svm::deploy_program] [Recovery Instructions] - Ephemeral authority public key: 2rM1S9FgZv8FB5CJ6szuKEVzhoDEzJPWrmF4uAJ9U4q7
[2026-03-15--12-02-42 INFO txtx::svm::deploy_program] [Recovery Instructions] - Ephemeral authority secret key: [222, 39, 160, 188, 211, 144, 30, 170, 231, 186, 12, 192, 202, 252, 151, 40, 228, 134, 133, 104, 160, 180, 190, 9, 156, 144, 141, 84, 40, 192, 95, 197, 27, 127, 196, 227, 86, 219, 40, 251, 148, 228, 159, 251, 29, 238, 32, 95, 42, 93, 100, 170, 56, 52, 143, 160, 65, 89, 18, 19, 122, 242, 61, 234]
[2026-03-15--12-02-42 INFO txtx::svm::deploy_program] Account Created - Ephemeral authority account created and funded to write to buffer
[2026-03-15--12-02-42 INFO txtx::svm::deploy_program] [Recovery Instructions] - Creating program buffer account at pubkey CT8tK3HoVJ1dB6ZfNwg5vpa1kRZswiPcwWjNm2uabnV3
[2026-03-15--12-02-43 INFO txtx::svm::deploy_program] Account Created - Program buffer account created
[2026-03-15--12-02-48 INFO txtx::svm::deploy_program] Buffer Ready - Writing to buffer account is complete
[2026-03-15--12-02-49 INFO txtx::svm::deploy_program] Program Created - Program GFr2d7PgU5QHHrpjpsV2iWb1wH4N19Ud7R5KaiUzuEh3 has been deployed
[2026-03-15--12-02-50 INFO txtx::svm::deploy_program] Complete - Ephemeral authority account closed and leftover funds returned to payer
[2026-03-15--12-03-02 ERROR litesvm::accounts_db] Program data account CByeemGwRyfyCJCDei3PHLX5gnRzHYouJy3vAyRjoTSA not found
[2026-03-15--12-04-43 INFO actix_server::accept] accept thread stopped
[2026-03-15--12-04-43 INFO actix_server::worker] shutting down idle worker
[2026-03-15--12-04-43 INFO actix_server::worker] shutting down idle worker
[2026-03-15--12-04-43 INFO actix_server::worker] shutting down idle worker
[2026-03-15--12-04-43 INFO actix_server::worker] shutting down idle worker
[2026-03-15--12-04-43 INFO actix_server::worker] shutting down idle worker

Related Issues

#454 : solana program close` stops Surfpool block production
#457 : Fix merged to address the above issue

@MicaiahReid @subhdotsol

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions