I moved hosting providers and having issues after manual migration

I moved my invoice ninja manually from one hosting provider to the next, I uploaded the files and created a new database with the new host, however since the move it seems that the dashboard is not working correctly and seems buggy in certain menus. Once example my company logo doesn’t display in the settings it has the default invoice ninja logo but on the actual invoice my logo displays. If I try doing and export I don’t get any email notifications as well to download the backup?

I am not sure where else to look or what to do to resolve it.

Any ideas or tips on what steps to take to resolve?

Hi,

If you moved the app to a new server it’s important to copy over the .env file.

Note: after moving you may need to re-upload your logo.

I did a complete backup of the entire folder I never did a new installation the only thing that changed was that I created a new database (new name and password) and imported the old data base into that newly created one.

Did you update the APP_URL value in the .env file?

The APP_URL is exactly the same. I did update it again now but still the same.

Any other suggestions?

Have you tried re-uploading your logo?

Are there any related errors in storage/logs?

This is the feedback from my hosting provider:

"On our side it looks like you are using Invoice Ninja version 5.11.44 and from where the website was moved from they were using Invoice Ninja version 11.42.1 which is why the interface is different and has more options.

You would unfortunately need to manually upgrade the version of Invoice Ninja from version 5.11.44 to Invoice Ninja version 11.42.1

We would suggest that you contact the Invoice Ninja support team to find out how to upgrade the version of Invoice Ninja."

Let me know if this could be right and if so the steps to do the update manually?

I’m not sure what they mean by version 11.42.1, maybe it’s a typo.

About a year ago we release a new web interface, you can access the old interface by either downloading the desktop app or running this SQL query.

UPDATE accounts SET set_react_as_default_ap = 0;

If you’re still having trouble with the logo I suggest checking the network tab in the browser console for the failed request to check the URL.

I managed to resolve the logo issue. So another issue came about, if I try exporting invoices or try to do a backup I do not get any email notification to download the backup? I am not sure where to check but I suspect in the code that it is trying to use the old server details to authenticate I could be wrong but no notifications come through.

Attached is the system logs. Where would one check these settings? I checked the .env file I also did a fresh install on another subdomain and that installation works perfectly. If I can get the email notifications to work then I don’t mind exporting the client data and invoice data and importing it to the new install.

The imported version does look like it is version 11.42.1 see the screenshot attached.

The new install as mentioned is working like a charm so if I can get the email notifications to work I can just use the new install and import the data from the download link (which I am not getting).

Are emails working in general?

Since you’re selfhosting the app we recommend using mysqldump to backup the database or you can use: GitHub - DrDBanner/inmanage: Easily install, update, and backup your self-hosted Invoice Ninja with a CLI shell script. Docker friendly.

Email notifications to clients work its just the admin notification that do not come to my registered email address.

Maybe they’re in the spam folder?

Checked that, they don’t even reach my incoming firewall.

If I were to manually download Invoice Ninja (a brand new fresh install) which files do I need to backup and not overwrite?

Do all notifications fail to send? You may want to check they’re enabled on Settings > Device Settings.

You need to copy the database and .env file, if you’re uploading files you’ll also need the storage folder.