Skip to Content
Menu
This question has been flagged
1 Reply
280 Views

previously when I backed up my filestore folder and sql dump, after restoring everything to my local host machine, everything was fine except that some few images were missing from my attachments I don't know how. Anyways, I noticed that when entering the editor, whenever I drag any block element that contains an image, upon clicking on the block element, it throws an Uncaught promise error without any indication as to where the issue lies. And because of this, I'm unable to continue working on the site. I wanted to attach a screenshot right here, but even in this trash forum, images cannot be uploaded and throws an error saying:  File could not be saved. don't know what to say. odoo is beyond buggy and terrible.


Avatar
Discard

Images of error messages usually don't help too much, so doesn't flaming in community forum that does not allow image uploads for new users as a spam protection measure. Anyways, back to topic, open the developer console (usually F12) and attempt to reproduce the issue. Copy and paste the error message from the exception and from the dev console here.
Also, as a side note, the fact that your filestore appears to be missing stuff usually stems from an incorrect approach of taking the backup. Since you have a dump file and folder I would assume you're not using https://your_host/web/database/manager to take the backup of your database but rather do it manually. In that case you should always first stop the server, perform the backup and only then restart it.

Also, you should stop your local server, clear the log file (to have a clearer picture), and then restart it. I wouldn't be surprised if the error is tracked in there already, maybe due to missing addons, not up-to-date local source/repo, etc.

Author Best Answer

First of all, I wasn't going to upload the error message as that would be stupid. I wanted to show how the image thumbnails are appearing. Second of all, I disagree with you that new users who rarely post on the forum should not be allowed to post screenshots which can always be helpful in many situations. " spam protection measure" can be used with captchas not disallowing users to post screenshots. Here's my console file anyways for when the error happens:


ContentMain.js:18 [ContentMain]

ContentMain.js:18 [ContentService] document.readyState: loading

ContentMain.js:5 [ContentService.SetContentInitData] target: { TabId: 1198434016, FrameId: 0}

tour_interactive.js:100 click .o_app[data-menu-xmlid="crm.crm_menu_root"]

ContentMain.js:18 [ContentMain]

ContentMain.js:18 [ContentService] document.readyState: loading

ContentMain.js:5 [ContentService.SetContentInitData] target: { TabId: 1198434016, FrameId: 265}

ContentMain.js:18 [ContentMain]

ContentMain.js:18 [ContentService] document.readyState: loading

ContentMain.js:5 [ContentService.SetContentInitData] target: { TabId: 1198434016, FrameId: 266}

web/image/website.s_card_default_image_1:1

           

           

           Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)

web/image/website.s_card_default_image_1:1

           

           

           Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)

__odoo__unknown__src__/:1

           

           

           Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)

web/image/web.image_placeholder:1

           

           

           Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)

__odoo__unknown__src__/:1

           

           

           Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)

roadmap:1 Uncaught (in promise) Event


               

         

         

         

         Chrome is moving towards a new experience that allows users to choose to browse without third-party cookies.


Regarding the issue with backups, I never had an issue at all except this time. But I agree with you, it would be better to stop the server before taking any backups as that could potentially corrupt the filestore or sql file.

Avatar
Discard

So, I'm just wondering, that server the backup came from - still up and running, meaning, does that issue exist there as well? I'm just not sure about your setup at that point and whether it could potentially be solve by a "clean" backup. Also, a difference in source code revisions checked out on where the backup came from and your local setup is a likely source of errors. Information is limited, so I'm just guessing at the moment, you see. An "upgrade all" on cli could be a thing to too.

Author

I first was building my site locally then I moved to a vps. I used to take the same backups I did locally, but upon restoring, the images which I only uploading from the vps were not restored perhaps due to a backup failure most probably. So when odoo tries to fetch the image, it does not find it in the attachment. Now the missing images I have deleted the HTML content and I can reupload them which is not an issue. But the issue of why new images cannot be uploaded is something that I'm not quite understanding. I tried rebuilding the assets in developer mode, but that didn't help either.