2.1 not detecting Settings.txt and will only load the nopCommerce Installation page. PLEASE HELP

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 年 前
I installed nop 2.1 on a local machine, everything worked fine. I then removed all of my old site (nop 1.9) files from my godaddy root. Using MS WebMatrix to FTP all nop 2.1 files to godaddy. I set up sql server 2008 on godaddy and imported my local nop 2.1 db into it.
When I navigate to my URL the nop install page opens opens. I've checked, double checked and triple checked the setup.txt file in the App_Data folder and believe the settings are correct.
I've tried other ideas I’ve located in this forum and nothing worked....
Any other ideas/help would be greatly appreciated.
If I did run the install on godaddy then overwrite everything with my local files accept the setup.txt file would it work
I do have iis7 and sql 2008 with remote access.
Thank you
13 年 前
Make sure you copy Settings.txt and InstalledPlugins.txt from ~/App_Data folder when you move your site, in addition to transfering the database.

Also, the settings.txt file contains your connection string which should match the sql server on your hosting service. With these files in place it should not try to reinstall.
13 年 前
Thank you murad.

I uploaded my site (including installedPlugins.tax and settings.txt in ~/App_Data). I modified the Settings.txt file with the connection setting for my DB on godaddy.com. I also imported my DB from my local SQL 2008 into the DB (SQL 2008) on godaddy.com. It still goes to the Install page.

I then deleted the DB on godaddy and created another blank one. I ran the nop 2.1 installer (that come up when going to my site), the store installed and worked.
I was able to change to my custom theme. Of course there were many things missing because of the default DB.
I then tried importing my local DB into the godaddy DB but I recieved errors.
I deleted and recreated a blank DB on godaddy using the same name as before (I also checked the connection settings and they were the same).
I imported my local DB into the blank DB on godaddy.
When I try to bring up my website it again goes to the install screen.

Sorry if this was confusing to read but I've been banging my head against the wall over this all day and I am very frustrated (to say the least).

Do you or anyone have any other suggestions?

Thanks
13 年 前
pcmdplus wrote:
Thank you murad.

I uploaded my site (including installedPlugins.tax and settings.txt in ~/App_Data). I modified the Settings.txt file with the connection setting for my DB on godaddy.com. I also imported my DB from my local SQL 2008 into the DB (SQL 2008) on godaddy.com. It still goes to the Install page.

I then deleted the DB on godaddy and created another blank one. I ran the nop 2.1 installer (that come up when going to my site), the store installed and worked.
I was able to change to my custom theme. Of course there were many things missing because of the default DB.
I then tried importing my local DB into the godaddy DB but I recieved errors.
I deleted and recreated a blank DB on godaddy using the same name as before (I also checked the connection settings and they were the same).
I imported my local DB into the blank DB on godaddy.
When I try to bring up my website it again goes to the install screen.

Sorry if this was confusing to read but I've been banging my head against the wall over this all day and I am very frustrated (to say the least).

Do you or anyone have any other suggestions?

Thanks


Like murad said, you need to make sure that the settings file exists inside of ~/App_Data. If your install process overwrites that folder you need to ensure the file is added back. After ensuring the file exists restart the website. Without restarting the website nopCommerce will continue to make decisions based off of cached information (e.g. it will continue taking you back to the install page). Also ensure the tables were created correctly during the initial install.
13 年 前
Thanks skyler.severns...
I did make sure that the settings file existed and the connections settings in it were pointing to the correct DB.

Another thing I tried that I don't unerstand:
1. Why can I install a new (nop 2.1 default) site directly on godaddy, copy the settings.txt file creating (during that install) into a temporary location
2. Delete the all the files from godaddy
3. Upload my files
4. Delete the DB on godaddy
5. Create a new, emtpy DB on godaddy (same name, SAME connection string)
6. Import my local DB into the new empty DB on godaddy
7. move the settings file into ~/App_data folder (from the temporary location I moved it to earlier- default install- step 1)
8. try to bring up the web site and get the 'Install' page

Ugh....

I don't think I can restart a shared hosting site.

Anything else to try???
13 年 前
pcmdplus wrote:
Thanks skyler.severns...
I did make sure that the settings file existed and the connections settings in it were pointing to the correct DB.

Another thing I tried that I don't unerstand:
1. Why can I install a new (nop 2.1 default) site directly on godaddy, copy the settings.txt file creating (during that install) into a temporary location
2. Delete the all the files from godaddy
3. Upload my files
4. Delete the DB on godaddy
5. Create a new, emtpy DB on godaddy (same name, SAME connection string)
6. Import my local DB into the new empty DB on godaddy
7. move the settings file into ~/App_data folder (from the temporary location I moved it to earlier- default install- step 1)
8. try to bring up the web site and get the 'Install' page

Ugh....

I don't think I can restart a shared hosting site.

Anything else to try???


I just went and reviewed the code for determining if the database is installed. If the file doesn't exist it will take you to the install controller. The website doesn't see your settings.txt file. Did you rename it? Are the properties set correctly within the file?
13 年 前
skyler.severns- I appreciate you trying to help me out with this.

No I did not rename it and I'm 98% sure the settings were correct (I was able to connect with those settings with the default nop 2.1 installation)

I have deleted the DB and site files already... It's late and I need to call it a night.

I am going to try again tomorrow, hopefully with better luck. If not I'll post the actual string I'm using.

If your still at it tonight and have any suggestions on a plan of attack for me feel free....


Thanks again!
13 年 前
I tried again this morning... still getting the install screen.

In the ~/App_Data folder these files exist:

       defaultResources.admin.nopres.xml
       defaultResources.plugins.nopres.xml
       defaultResources.public.nopres.xml
       GeoIP.dat
       InstalledPlugins.txt
       Settings.txt

The Settings.txt file reads:

      DataProvider: sqlserver
      DataConnectionString: Data Source=pcmdixxxx.db.6255441.hostedresource.com;Initial Catalog=pcmdixxxx;User ID=pcmdixxxx;Password=**************;

(i did change the user name and password to post here)

I can log into the database usine the ID and Password contained in the string.
I can connect to DB Shared Server and my DB with SQL Server Management Studio using these settings also.

In the root is:

   Adminstration
   App_Data
   bin
   Content
   Scripts
   Themes
   Veiws
   ErrorPage.htm
   favicon.ico
   FileNotFound.htm
   Global.asax
   license.txt
   robots.txt
   Web.config
   Web.Debug.config
   Web.Release.config

all folders set to read/write sub-folders: inherit

Does Anyone have any ideas??
13 年 前
I don't know how you are executing the app, but I am trying to get my local
Visual Studio install to run against a COPY of my production database.

I am running into the exact same issues.

I found that I had to add the two files mentioned into the NOP.WEB/APP_DATA folder in the
Visual Studio Solution Explorer.
NOT just copy them to the directory on the Disk.

This 'May' break the build by ALWAYS creating a 'Pre-configured' install, but that's what I am after at the moment.
13 年 前
dfsinc,
I never could get 2.1 to run in VB. I downloaded and used the Web Matrix version. The Setting firlew is in ~/App_Data folder. I have not had a problem running it locally, my problems are when I move everything to godaddy. I cand install a clean base nop 2.1 store on godaddy but cannot upload and use mine.... I am still struggling to figure this out but have not found anything that will work. Sorry I can't help you out but i'm realy not a programmer or DB guy. And could obviously use some help myself, good luck...
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.