# Error: Can't notify admin while restoring backup during a migration to a fresh install

**URL:** <https://meta.discourse.org/t/error-cant-notify-admin-while-restoring-backup-during-a-migration-to-a-fresh-install/139606>\
**Category:** Bug\
**Created:** [January 24, 2020, 7:09am UTC](https://meta.discourse.org/t/error-cant-notify-admin-while-restoring-backup-during-a-migration-to-a-fresh-install/139606 "2020-01-24T07:09:17Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [January 24, 2020, 4:57pm UTC](https://meta.discourse.org/t/error-cant-notify-admin-while-restoring-backup-during-a-migration-to-a-fresh-install/139606/7 "2020-01-24T16:57:57Z")

</div>

Looked into this a bit further.

```
#<NoMethodError: undefined method `join' for nil:NilClass>
Backtrace:
     lib/discourse.rb:45:in `pretty_logs'
     /var/www/discourse/lib/backup_restore/restorer.rb:134:in `notify_user'

```

Seems like @logs is not initialized?

---

_[View the full topic](https://meta.discourse.org/t/error-cant-notify-admin-while-restoring-backup-during-a-migration-to-a-fresh-install/139606)._
