Post by musclerush » Fri Jul 29, 2022 2:36 am

Wondering what is it that is causing why the page isn't loading properly
Guest Os is Ubuntu 20 with mysql 8.0

any help or direction is highly appreciated
thank you
M

Attachments

open_cart_page.png

open_cart_page.png (80.26 KiB) Viewed 623 times


Newbie

Posts

Joined
Fri Jul 29, 2022 2:18 am

Post by halfhope » Fri Jul 29, 2022 6:46 am

Hi!

Obviously, page resources (css) are not loading. Open the developer tools (Ctrl+Shift+i) on the network tab and refresh the page. I think this is due to the fact that css resources refer to the domain name, and not to the ip address.

My extensions in marketplace. [ security | flexibility | speedup ]


User avatar
Active Member

Posts

Joined
Tue Dec 10, 2013 9:44 pm
Location - San Diego

Post by musclerush » Fri Jul 29, 2022 7:29 am

i did the refresh . same issue. .. the /var/www/opencart/config.php is set with the ip address

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://10.244.0.36/');

// HTTPS
define('HTTPS_SERVER', 'http://10.244.0.36/');

// DIR
define('DIR_APPLICATION', '/var/www/opencart/catalog/');
define('DIR_SYSTEM', '/var/www/opencart/system/');
define('DIR_IMAGE', '/var/www/opencart/image/');
define('DIR_STORAGE', DIR_SYSTEM . 'storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', '10.244.0.36');
define('DB_USERNAME', 'ocuser');
define('DB_PASSWORD', 'vRealiz3!');
define('DB_DATABASE', 'opencart');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');
<?php
// HTTP
define('HTTP_SERVER', 'http://10.244.0.36/');

// HTTPS
define('HTTPS_SERVER', 'http://10.244.0.36/');

Newbie

Posts

Joined
Fri Jul 29, 2022 2:18 am

Post by musclerush » Fri Jul 29, 2022 7:31 am

on the console also i m seeing a lot of err connection .. maybe its due to the fact i m going through a LB to get to the web site

Attachments

console errors.png

console errors.png (156.05 KiB) Viewed 614 times


Newbie

Posts

Joined
Fri Jul 29, 2022 2:18 am

Post by halfhope » Fri Jul 29, 2022 8:56 am

Server side issue. Try to load one of CSS resource using direct link, if not load - fix this.

My extensions in marketplace. [ security | flexibility | speedup ]


User avatar
Active Member

Posts

Joined
Tue Dec 10, 2013 9:44 pm
Location - San Diego

Post by musclerush » Sat Jul 30, 2022 2:46 am

the page loads fine if i hit the server directly but the issue where like you said css doesnt load is when i go through the load balancer over port 80
so i m wondering if there is anything that needs to be set on the open cart server to fix this like session affinity

since i can see that the url to the css is still using the internal ip behind the LB which is not accessible from my network

thank you
M

Newbie

Posts

Joined
Fri Jul 29, 2022 2:18 am

Post by halfhope » Sat Jul 30, 2022 8:17 pm

Hi!

Try to change in your config.php
10.244.0.36 to 172.16.200.6 or you need to change network configuration.

My extensions in marketplace. [ security | flexibility | speedup ]


User avatar
Active Member

Posts

Joined
Tue Dec 10, 2013 9:44 pm
Location - San Diego
Who is online

Users browsing this forum: hpwebdesign and 49 guests