# Grafana migration from centos to Ubuntu

**URL:** <https://community.grafana.com/t/grafana-migration-from-centos-to-ubuntu/72567>\
**Category:** Installation\
**Created:** [September 17, 2022, 6:57am UTC](https://community.grafana.com/t/grafana-migration-from-centos-to-ubuntu/72567 "2022-09-17T06:57:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![prashantnitt07](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@prashantnitt07](https://community.grafana.com/u/prashantnitt07)\
**Post date:** [September 17, 2022, 6:57am UTC](https://community.grafana.com/t/grafana-migration-from-centos-to-ubuntu/72567/1 "2022-09-17T06:57:57Z")

</div>

Dear All ,

I want to migrate Grafana from Centos VM to Ubuntu VM.

what is procedure grafana migration?

version: 7.5.9 os : linux cent os

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [September 17, 2022, 9:45am UTC](https://community.grafana.com/t/grafana-migration-from-centos-to-ubuntu/72567/2 "2022-09-17T09:45:07Z")

</div>

Welcome

What hypervisor or virtualization are you using?

---

<div class="post-metadata">

**Author:** ![prashantnitt07](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@prashantnitt07](https://community.grafana.com/u/prashantnitt07)\
**Post date:** [September 19, 2022, 7:48am UTC](https://community.grafana.com/t/grafana-migration-from-centos-to-ubuntu/72567/3 "2022-09-19T07:48:23Z")

</div>

using Centos VM ,

Grafana need to be migrate to Ubuntu

---

<div class="post-metadata">

**Author:** ![prashantnitt07](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@prashantnitt07](https://community.grafana.com/u/prashantnitt07)\
**Post date:** [October 25, 2022, 8:06am UTC](https://community.grafana.com/t/grafana-migration-from-centos-to-ubuntu/72567/5 "2022-10-25T08:06:28Z")

</div>

thanks above steps are working

1. installed new version
2. copy old grafana.ini and grafna.db file from centos to ubnutu os
3. start grafana
4. all dasbhoard are visiable

---

<div class="post-metadata">

**Author:** ![norbertbiedermann](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/norbertbiedermann/32/28880_2.png) [@norbertbiedermann](https://community.grafana.com/u/norbertbiedermann)\
**Post date:** [January 2, 2023, 5:13pm UTC](https://community.grafana.com/t/grafana-migration-from-centos-to-ubuntu/72567/6 "2023-01-02T17:13:06Z")

</div>

Hi,  
I tried the same procedure as @ [prashantnitt07](https://community.grafana.com/u/prashantnitt07).

1. installed grafana 8 at the new Ubuntu server
2. copied grafana.db and grafana.ini from centOS to Ubuntu
3. restarted grafana, but that failed:

```auto
root@influx-grafana:/var/lib/grafana# systemctl status grafana-server
× grafana-server.service - Grafana instance
     Loaded: loaded (/lib/systemd/system/grafana-server.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2023-01-02 18:03:36 CET; 6s ago
       Docs: http://docs.grafana.org
    Process: 36598 ExecStart=/usr/sbin/grafana-server --config=${CONF_FILE} --pidfile=${PID_FILE_DIR}/grafana-server.pid --packaging=deb cfg:>
   Main PID: 36598 (code=exited, status=1/FAILURE)
        CPU: 218ms

Jan 02 18:03:36 influx-grafana systemd[1]: grafana-server.service: Scheduled restart job, restart counter is at 5.
Jan 02 18:03:36 influx-grafana systemd[1]: Stopped Grafana instance.
Jan 02 18:03:36 influx-grafana systemd[1]: grafana-server.service: Start request repeated too quickly.
Jan 02 18:03:36 influx-grafana systemd[1]: grafana-server.service: Failed with result 'exit-code'.
Jan 02 18:03:36 influx-grafana systemd[1]: Failed to start Grafana instance.

```

Any idea?

---

<div class="post-metadata">

**Author:** ![prashantnitt07](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@prashantnitt07](https://community.grafana.com/u/prashantnitt07)\
**Post date:** [January 2, 2023, 5:43pm UTC](https://community.grafana.com/t/grafana-migration-from-centos-to-ubuntu/72567/7 "2023-01-02T17:43:10Z")

</div>

Check for grafana.ini

Share grafana log detail

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [January 2, 2023, 6:09pm UTC](https://community.grafana.com/t/grafana-migration-from-centos-to-ubuntu/72567/8 "2023-01-02T18:09:21Z")

</div>

what version was the previous one?  
did you copy those files to their respective folders?

---

<div class="post-metadata">

**Author:** ![norbertbiedermann](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/norbertbiedermann/32/28880_2.png) [@norbertbiedermann](https://community.grafana.com/u/norbertbiedermann)\
**Post date:** [January 3, 2023, 1:21pm UTC](https://community.grafana.com/t/grafana-migration-from-centos-to-ubuntu/72567/9 "2023-01-03T13:21:45Z")

</div>

Issue is solved.  
I copied grafana.ini and grafana.db again.  
Now it works, no idea what was wrong…

---

<div class="post-metadata">

**Author:** ![prashantnitt07](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@prashantnitt07](https://community.grafana.com/u/prashantnitt07)\
**Post date:** [January 3, 2023, 1:58pm UTC](https://community.grafana.com/t/grafana-migration-from-centos-to-ubuntu/72567/10 "2023-01-03T13:58:52Z")

</div>

I think copy both file was not properly.

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [September 3, 2024, 3:47pm UTC](https://community.grafana.com/t/grafana-migration-from-centos-to-ubuntu/72567/11 "2024-09-03T15:47:50Z")

</div>

Closed on September 3, 2024, 3:47pm UTC


