Swan Network
English
  • Getting Started
    • Overview
    • Protocol Stack
      • Cross-chain Consensus Layer
      • Peer-to-peer (P2P) Network
      • Payment Channels
      • Service Discovery
      • Data Marketplace
      • Indexing and Caching Marketplace
      • Web3 Task Auction
      • Storage Layer
      • Computing Layer
      • CDN Layer
      • Economic System
        • Grants
        • Computing Jobs
        • Universal Basic Income (UBI)
        • Swan Provider Income
      • Token
      • Governance
        • Treasure DAO
      • Glossary
    • Contact Us
      • Social Accounts & Communities
      • Business Partnerships
    • FAQ
  • QuickStarts
    • Dive into QuickStarts
      • Swan Chain: Developing Smart Contracts with Go
  • Swan Storage Market
    • Overview
      • Swan Auction System
      • Reputation System
    • Key functionalities
      • Task Management
        • Create a New Task
        • Navigate Tasks
        • Update Tasks
        • Assign Tasks
      • My Profile
        • Register as a storage provider
      • Find Storage Providers
        • Storage Provider Details
      • Extend DataCap Terms Service
  • Swan IPFS Storage
    • Overview
      • Flink
    • Swan IPFS Storage User Guide
      • Networks
      • Setup MetaMask
    • Developer Quickstart
      • SDK
        • js MCS SDK
          • Prerequisites
          • Get Started
          • Bucket Storage
          • Onchain Storage
          • SDK JS Installation Tutorial Video
        • python MCS SDK
          • Quickstart
          • Bucket Storage
          • Onchain Storage
          • SDK Python Installation Tutorial Video
      • Additional Resources
    • Best Practice
      • Use Swan IPFS Storage as Platform Storage Solution
        • Single Organization Design
        • Multiple Organization Design
    • FAQ
  • Swan Provider
    • Overview
    • Features
    • Tutorial
      • Prerequisites
      • Installation
      • Configure and Run
      • Swan Provider Tutorial Video
    • FAQ
      • 1. Change the linked Email
      • 2. Check Storage Provider connectivity/stability
      • 3. How to stop accepting "auto-bid" deals?
      • 4. `aria2_download_dir` vs. `aria2_candidate_dirs`
      • 5. How to configure "import deals from Swan Provider" when Boostd is running normally
      • 6. A rejection msg always appears during the deal-importing process
      • 7. How to check if aria2 is running?
      • 8. No response from Swan Platform?
      • 9. Why Storage Provider status shows offline?
      • 10. How to check the Task Status?
      • 11. How to configure the Storage Provider Market?
      • 12. How to set the "ask price"?
      • 13.aria2_download_dir VS. aria2_candidate_dirs
      • 14. How to control the number of deals imported?
  • Swan Client
    • Overview
    • Basic Concepts
    • Tutorial
      • Filecoin Deal Sender
        • Installation
        • Configuration
        • Prerequisites
        • Generate CAR Files
        • Meta-CAR
        • Upload CAR Files to IPFS
        • Create a Task
      • Blockchain RPC Service
        • Deploy RPC Service
        • RPC Command Service
      • Swan Client Tutorial Video
    • FAQ
      • How to prepare data?
  • FS3
    • Overview
    • Setup your FS3
      • Prerequisites
      • Install FS3
      • FS3 Set up Video
    • FS3 User Guide
    • FS3 User Guide (Cloud Version)
  • Lagrange DAO
    • Overview
  • Development Resource
    • Swan Token Contract
      • Acquire Testnet USDC and MATIC tokens
    • Swan API
    • Swan IPFS Storage API
    • Swan IPFS Storage 2.0 API
    • Flink API
    • FS3 API
    • API keys
  • Swan Testnet
    • Swan Jupiter Testnet
      • How to Participate
      • Before You Get Started
      • Network Early Adopter
      • Computing Provider Setup
        • Prerequisites
        • Install the Kubernetes
        • Install and config the Nginx
        • Install the Hardware resource-exporter
        • Install the Redis service
        • Build and config the Computing Provider
        • Install AI Inference Dependency(Optional)
        • Start the Computing Provider
        • CLI of Computing Provider
        • FAQ
      • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. Swan Testnet
  2. Swan Jupiter Testnet
  3. Computing Provider Setup

FAQ

Q: How to run a UBI task.

A:

1. Run the following command:

curl -k --location --request POST 'https://<public ip>:<port>/api/v1/computing/lagrange/cp/proof' \
--header 'Content-Type: application/json' \
--data-raw '{
"method": "mine",
"block_data": "this-is-a-ubi-test-task",
"exp": 230
}'

2. The returned result matches the example provided below, indicating that your Computing Provider has run successfully

Example result:

{"status":"success","code":200,"data":"{\"data\":\"this-is-a-ubi-test-task\",\"hash\":\"0000003885a242c2c6c82be3e0ef8adb8fff43ec2b990ae86b748d8566215a36\",\"nonce\":\"12387293\",\"target\":\"1725436586697640946858688965569256363112777243042596638790631055949824\"}\n"}

Q: How can I know if the status of the computing provider is normal?

A:

Run the following command:

*Note: Please replace <YOUR_MULTI_ADDRESS_IP>:<PORT> with your actual multi-address IP and port.

curl --location --request POST 'http://<YOUR_MULTI_ADDRESS_IP>:<PORT>/api/v1/computing/lagrange/jobs' \
--header 'Content-Type: application/json' \
--data-raw '{
"uuid": "5641877b-dc94-469a-bb3b-ecab6d10f7dd",
"name": "Job-5641877b-dc94-469a-bb3b-ecab6d10f7dd",
"status": "Submitted",
"duration": 900,
"job_source_uri": "https://api.lagrangedao.org/spaces/51d6abbb-f928-43e4-91fd-79e93e2b276f",
"storage_source": "lagrange",
"task_uuid": "92cd5595-9789-4af3-9100-7c7e4aacb456"
}'

After running this command, wait for 3-5 minutes, and then execute

kubectl get ing -n ns-0x6091b2f5678952cafbf02755d78973ebff302e11

Find the hosts corresponding to the name ing-minesweeper and ensure that the domain can be accessed in a browser to confirm its normal status.

Q: My node has been running for so long, yet the uptime is 0%.

A:

1. Run the following command:

Ensure that <YOUR_MULTI_ADDRESS_IP> is the Public IP.

curl http://<YOUR_MULTI_ADDRESS_IP>:<PORT>/api/v1/computing/host/info

2. Compare the returned result with the example provided below. If they are different, you should review your port mappings.

Example result:

{"status":"success","code":"","data":{"swan_miner_version":"","operating_system":"linux","architecture":"amd64","cpu_cores":48}}

3. If your port mappings are correct and the result matches the example, then proceed to check the configuration file of the computing provider.

Ensure that the MultiAddress is set exactly as "/ip4/<public_ip>/tcp/<port>".

Q: Which ports need to be mapped?

A: Here are the ports you need to map

1. You need to map the CP's internal IP and its port (default 8085), as well as the public IP and port.

2. Map your wildcard domain (*.example.com) to your public IP.

3. Additionally, you need to map port 80 of your internal IP to port 80 of your public IP, as well as port 443 of your internal IP to port 443 of your public IP.

Q: Where should I create the API key?

Q: What are the requirements for SSL certificates needed in CP?

A: Please use certificates issued by trusted Certificate Authorities (CA). Currently, certificates generated by Certbot are not functioning properly.

Otherwise, the application won't be displayed correctly on the Space App page.

Q: Is it possible to use a port other than 80 and 443 in the wildcard domain(*.exmaple.com)?

A: No, it is not possible.

Q: Is the "pod" used for communication, and "Calico" is used to manage this communication within the cluster?

A: Both are used for intra-cluster communication. You can use one of these approaches.

Q: If someone didn't apply for early bird, can they still join and run the computing provider tasks?

A: Of course, they can also follow the instruction to set up a Computing Provider.

Q: Can I move my computing provider to a new one while maintaining my previous server? Will this reset my uptime?

A: Yes, you need to move .swan_node to the new server. The uptime will not be reset.

PreviousCLI of Computing ProviderNextFAQ

Last updated 1 year ago

Was this helpful?

A: you must use the API of and login in it using Polygon mainnet wallet.

https://multichain.storage,