Answers: <p>After <a href="https://github.com/ipfs/go-ds-s3/issues/213" rel="nofollow noreferrer">raising an issue</a> in the GitHub of <a href="https://github.com/ipfs/go-ds-s3" rel="nofollow noreferrer">go-ds-s3 plugin</a>, got to know from <a href="https://github.com/ipfs/go-ds-s3/issues/213#issuecomment-999061181" rel="nofollow noreferrer">Stebalien</a> that</p>
  <blockquote>
  <p>Ah, I see. At the moment, plugins only work on 64bit Linux for the pre-built binaries (because they're built on 64bit linux and building go-ipfs with CGO support for foreign architectures is tricky). For now, you'll have to build go-ipfs from source or use the 64bit version (or use the go-ipfs docker container).</p>
  <p>I've filed an issue to support this in our build system (<a href="https://github.com/ipfs/distributions/issues/546" rel="nofollow noreferrer">ipfs/distributions#546</a>).</p>
  </blockquote>
  
Answers: CC BY-SA 4.0
Answers: 2021-12-27T15:48:59.510Z
Answers: 2021-12-27T15:48:59.510Z
Answers: Tiago Peres
Body: <p>After</p>
  <ol>
  <li>cloning <a href="https://github.com/ipfs/go-ds-s3" rel="nofollow noreferrer">this repo</a></li>
  <li>run <code>make build</code> (getting as output <code>s3plugin.so</code>)</li>
  <li>run <code>make install</code></li>
  <li>make the appropriate changes in both <code>/data/ipfs/config</code></li>
  </ol>
  <pre><code>&quot;Datastore&quot;: {
      &quot;BloomFilterSize&quot;: 0,
      &quot;GCPeriod&quot;: &quot;1h&quot;,
      &quot;HashOnRead&quot;: false,
      &quot;Spec&quot;: {
        &quot;mounts&quot;: [
          {
           &quot;child&quot;: {
             &quot;type&quot;: &quot;s3ds&quot;,
             &quot;region&quot;: &quot;us-east-1&quot;,
             &quot;bucket&quot;: &quot;ipfs-test2-node&quot;,
             &quot;accessKey&quot;: &quot;******&quot;,
             &quot;secretKey&quot;: &quot;******&quot;
          },
          &quot;mountpoint&quot;: &quot;/blocks&quot;,
          &quot;prefix&quot;: &quot;s3.datastore&quot;,
          &quot;type&quot;: &quot;measure&quot;
         },
          {
            &quot;child&quot;: {
              &quot;compression&quot;: &quot;none&quot;,
              &quot;path&quot;: &quot;datastore&quot;,
              &quot;type&quot;: &quot;levelds&quot;
            },
  </code></pre>
  <p>and <code>/data/ipfs/datastore_spec</code>,</p>
  <pre><code>{&quot;mounts&quot;:[{&quot;bucket&quot;:&quot;ipfs-test2-node&quot;,&quot;mountpoint&quot;:&quot;/blocks&quot;,&quot;region&quot;:&quot;us-east-1&quot;,&quot;rootDirectory&quot;:&quot;&quot;},{&quot;mountpoint&quot;:&quot;/&quot;,&quot;path&quot;:&quot;datastore&quot;,&quot;type&quot;:&quot;levelds&quot;}],&quot;type&quot;:&quot;mount&quot;}
  </code></pre>
  <p>I restarted ipfs <code>sudo systemctl restart ipfs</code></p>
  <p>and then while checking that didn't have errors</p>
  <pre><code>systemctl status ipfs
  </code></pre>
  <p>then got</p>
  <blockquote>
  <p>Error: error loading plugins: loading plugin /data/ipfs/plugins/go-ds-s3.so: not built with cgo support</p>
  </blockquote>
  <p><img src="https://user-images.githubusercontent.com/13332903/146609600-6592c5ab-21f3-4db6-8aab-f8684842f501.png" alt="image" /></p>
  
Tags: <amazon-s3><ubuntu><go><ipfs>
Title: Error: error loading plugins: loading plugin /data/ipfs/plugins/go-ds-s3.so: not built with cgo support
UserDisplayName: Tiago Peres
ThreadText: # Error: error loading plugins: loading plugin /data/ipfs/plugins/go-ds-s3.so: not built with cgo support
  
  (Asked by: username_0 on 2021-12-17)
  
  After
  
  1. cloning [this repo](https://github.com/ipfs/go-ds-s3)
  2. run `make build` (getting as output `s3plugin.so`)
  3. run `make install`
  4. make the appropriate changes in both `/data/ipfs/config`
  
  ```
  "Datastore": {
      "BloomFilterSize": 0,
      "GCPeriod": "1h",
      "HashOnRead": false,
      "Spec": {
        "mounts": [
          {
           "child": {
             "type": "s3ds",
             "region": "us-east-1",
             "bucket": "ipfs-test2-node",
             "accessKey": "******",
             "secretKey": "******"
          },
          "mountpoint": "/blocks",
          "prefix": "s3.datastore",
          "type": "measure"
         },
          {
            "child": {
              "compression": "none",
              "path": "datastore",
              "type": "levelds"
            },
  
  ```
  
  and `/data/ipfs/datastore_spec`,
  
  ```
  {"mounts":[{"bucket":"ipfs-test2-node","mountpoint":"/blocks","region":"us-east-1","rootDirectory":""},{"mountpoint":"/","path":"datastore","type":"levelds"}],"type":"mount"}
  
  ```
  
  I restarted ipfs `sudo systemctl restart ipfs`
  
  and then while checking that didn't have errors
  
  ```
  systemctl status ipfs
  
  ```
  
  then got
  
  > Error: error loading plugins: loading plugin /data/ipfs/plugins/go-ds-s3.so: not built with cgo support
  
  ![image](https://user-images.githubusercontent.com/13332903/146609600-6592c5ab-21f3-4db6-8aab-f8684842f501.png)
  
  **Tags:** amazon-s3, ubuntu, go, ipfs
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2021-12-27. Score: 0 | Accepted answer
  
  After [raising an issue](https://github.com/ipfs/go-ds-s3/issues/213) in the GitHub of [go-ds-s3 plugin](https://github.com/ipfs/go-ds-s3), got to know from [Stebalien](https://github.com/ipfs/go-ds-s3/issues/213#issuecomment-999061181) that
  
  > Ah, I see. At the moment, plugins only work on 64bit Linux for the pre-built binaries (because they're built on 64bit linux and building go-ipfs with CGO support for foreign architectures is tricky). For now, you'll have to build go-ipfs from source or use the 64bit version (or use the go-ipfs docker container).
  >
  > I've filed an issue to support this in our build system ([ipfs/distributions#546](https://github.com/ipfs/distributions/issues/546)).
  
  
  ---
  
  