# Case Study

### Case 1

<figure><img src="https://362083554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBPzEwQWF8yFmEtNtg2pz%2Fuploads%2FUmZHusOppJwewMTBbil0%2Fimage.png?alt=media&#x26;token=025d2c29-1651-4704-a141-92a094bcf3ee" alt=""><figcaption></figcaption></figure>

```jsx
git clone https://github.com/occlum/enable_rdfsbase.git
cd enable_rdfsbase 
make && make install  #if still error，remake && reinstall
```

### Case 2

<figure><img src="https://362083554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBPzEwQWF8yFmEtNtg2pz%2Fuploads%2Fi4TQPpTbOZ8jC36HfIYx%2Fimage.png?alt=media&#x26;token=bdfc9c03-7464-422f-a1bc-cd845dfb5889" alt=""><figcaption></figcaption></figure>

* Mirror is incorrect.
* Curl is not installed in the container.

### Case 3

<figure><img src="https://362083554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBPzEwQWF8yFmEtNtg2pz%2Fuploads%2FJglnk7d9G8Pnnbbz3Rag%2Fimage.png?alt=media&#x26;token=8b8ee467-131b-492d-9426-e96df3641ce8" alt=""><figcaption></figcaption></figure>

* Install curl within the container.
* Missing sgx\_default\_gcnl.conf or sgx\_default\_qcnl.conf file

### Case 4

<figure><img src="https://362083554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBPzEwQWF8yFmEtNtg2pz%2Fuploads%2FhHpbgcoIVtGc6LMq4O42%2Fimage.png?alt=media&#x26;token=7a18b17f-ee3b-4ddb-9a53-3b443a2d3f8f" alt=""><figcaption></figcaption></figure>

* Mirror version is not correct, please check the mirror ID.
* Wrong version

### Case 5

<figure><img src="https://362083554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBPzEwQWF8yFmEtNtg2pz%2Fuploads%2FJOwL2SZi4vgqy2tRabAi%2Fimage.png?alt=media&#x26;token=e1e0329f-9a2f-47bc-b0fb-c8c61f9ed7fb" alt=""><figcaption></figcaption></figure>

Mirroring is wrong, this time apply epid mirroring on Azure.

### Case 6

<figure><img src="https://362083554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBPzEwQWF8yFmEtNtg2pz%2Fuploads%2FW6Iw4aOOpPWv5ASZiohS%2Fimage.png?alt=media&#x26;token=88e6d42e-7072-4779-a88e-ea86619a65ef" alt=""><figcaption></figcaption></figure>

Configuration file error, private key length is not correct.

### Case 7

<figure><img src="https://362083554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBPzEwQWF8yFmEtNtg2pz%2Fuploads%2FFEXXuQLrJFrpnkVKPqXU%2F1111.png?alt=media&#x26;token=9809f900-0cad-431e-b475-f62adc894c1e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://362083554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBPzEwQWF8yFmEtNtg2pz%2Fuploads%2FjZYnFegvQslHBEX9BXLO%2F20240809113915.png?alt=media&#x26;token=68fbb92b-769e-479f-8629-87008b1d3272" alt=""><figcaption></figcaption></figure>

Check current configuration of max\_map\_count:&#x20;

`cat /proc/sys/vm/max_map_count`

Not persistent way to modify the max\_map\_count:&#x20;

`sysctl -w vm.max_map_count=3097152`&#x20;

To make the changes persistent you should modify `/etc/sysctl.conf` and then (optionally) execute `sysctl -p` to apply the changes without reboot

```
echo "vm.max_map_count=3097152" >> /etc/sysctl.conf
sysctl -p
```

### Case 8

<figure><img src="https://362083554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBPzEwQWF8yFmEtNtg2pz%2Fuploads%2FGeKZHhm4hlbILe2eAy4O%2F14125ef010050b4d528ac2f5a861ba8.jpg?alt=media&#x26;token=cbcb33a2-89b6-48f3-9d8d-8f47dbc3c010" alt=""><figcaption></figcaption></figure>

If you are using the v0.11.9 image version of DHC, the Linux kernel version of the Operating System must be greater than 6.2.  Another option is to reinstall the operating system, using at least 22.04 Ubuntu version.

### Case9

<figure><img src="https://362083554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBPzEwQWF8yFmEtNtg2pz%2Fuploads%2F9g8cGPA08fe5wpt1R1kk%2Fff51fe713f5c3f3d93c7830c6274a57d.png?alt=media&#x26;token=92242c25-a418-4350-b3d4-dd0ef35fb456" alt=""><figcaption></figcaption></figure>

If the "current peers" is **0**, it means your device can not be connected through the P2P network. You should check the internet connection and the public IP first. Then you should check the security configuration of the cloud service which you can refer to the official docs for help.

### Case 10

<figure><img src="https://362083554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBPzEwQWF8yFmEtNtg2pz%2Fuploads%2FwX5egKeX4E8WRUptGjUz%2FlQLPJwQHNx2AdnXNAerNBlCwm2DCqFnsW_kHDtfTj5cXAA_1616_490.png?alt=media&#x26;token=18e45068-b24d-4eec-93f2-e086eeb36443" alt=""><figcaption></figcaption></figure>

For images with versions greater than `v0.12.8`, you need to add the `run` command to the startup command line, for example `occlum run /bin/bnk-watcher run /host/keyring.toml`.
