How to handle the situation when the background interface does not update or the project starts abnormally after AnQiCMS upgrade?

Calendar 👁️ 76

The daily operations of website management cannot be separated from the system upgrade and maintenance.When AnQiCMS (AnQi CMS) is upgraded, we sometimes encounter a situation where the backend interface does not move, or the project is directly **, refusing to start.Don't worry, as an experienced website operation expert, I know this anxiety well, and I am also clear that the methods to solve these problems are not complicated.Today, I will come and explain in detail how we should calmly respond when these situations occur after the AnQiCMS upgrade.


After the upgrade, the background interface did not update? It may be that these 'little devils' are playing around

The website upgrade is something that is eagerly anticipated, meaning new features and more stable performance, but if the back-end interface is still the same after the upgrade, it really makes one feel puzzled.In fact, this is mostly not a big problem with AnQiCMS itself, but several 'little guys' are causing trouble behind the scenes.

Firstly, the most common culprit isBrowser cache. Your browser stores the content of visited web pages (including JS, CSS, etc.) locally to speed up loading.When AnQiCMS is upgraded, especially when the backend interface has been updated with UI changes (for example, AnQiCMS v2.1.0 version has replaced the new backend management interface), the browser may still be loading old cached files, causing you to see the old interface.

The solution is:Simple and direct. Try to force refresh the browser (usually on Windows systems isCtrl + F5, on macOS isCmd + Shift + RIf invalid, then you need to completely clear the browser cache and cookies.There are slight differences in the operation path of different browsers, but they are largely the same. Usually, you can find the option to 'Clear browsing data' in 'Settings' or 'History records'.After cleaning up, re-visit the AnQiCMS backend, you are likely to see a brand new interface.

Secondly, if the background interface does not update after clearing the browser cache, then consider that the old process may still be running.The old process may still be running.. AnQiCMS is developed in Go language, and the program is compiled into an independent binary file.An upgrade usually involves replacing this binary file. However, if the old process is not terminated correctly, the new binary file cannot take effect, and the website is still served by the old version of the program.

The solution is:It is necessary to manually restart the AnQiCMS service. If you have deployed it using visual management tools such as Baota Panel, 1Panel, etc., usually you can find the AnQiCMS service in the corresponding Go project or Docker container management interface, select the "restart" operation.These panels usually help you automatically stop old processes and start new ones.

If you are deploying manually via the command line, there will usually be astart.shThe script to start AnQiCMS. In this case, you need to manually stop the old AnQiCMS process first, and then run itstart.shStart a new process. How do you stop it? Usually, you can do it bykillcommand, combinedlsoforps -efto find the process ID (PID) of AnQiCMS.

For example, to find the process occupying the default AnQiCMS port 8001:lsof -i:8001After finding the process ID (PID), usekill -9 PIDThe command forces the process to terminate. Then, run your startup script (such as./start.sh), or directly execute the AnQiCMS binary file to take over the service of the new version program.


Project startup exception? Check step by step, the problem is nowhere to hide

After AnQiCMS is upgraded, the project fails to start directly, the website cannot be accessed, which is often a more serious problem.But this is not the end of the world, we can investigate step by step like detectives, and eventually make the problem disappear.

First, and the most important step is,Check the AnQiCMS runtime log。AnQiCMS starts up and, if errors occur, it usually outputs them to the console or writes them to a log file. If you usestart.shscript starts up, the logs are usually redirected torunning.log(Referencestart.shin the scriptnohup $BINPATH/$BINNAME >> $BINPATH/running.log 2>&1 &Read the error messages in the log carefully, as this can often directly locate the problem, such as database connection failure, configuration errors, missing files, etc.

secondly,Port conflictOne of the common reasons for project startup exceptions. Especially when installing multiple AnQiCMS instances on the same server, each instance needs to occupy a different port.If you do not notice this during the upgrade process, or if another program is using the port required by AnQiCMS (the default is 8001), AnQiCMS will not be able to start.

The solution is:Uselsof -i:{端口号}for examplelsof -i:8001Command to check which process is using the port. If you find other processes using it, you can choose to terminate the process(kill -9 PID) or modify the AnQiCMS configuration fileconfig.json, and assign itportChange the parameter to an unoccupied port number and then restart AnQiCMS.

Moreover,Database connection issueIt may also cause the startup to fail. Upgrading AnQiCMS sometimes involves changes to the database structure, or incorrect database configuration information may be entered during a new installation.The solution is:Checkconfig.jsonThe database connection configuration in the file, ensure that the database type, host address, port, username, password, and database name are all correct.At the same time, also confirm that the database service itself is running normally, for example, whether the MySQL service has been started.If using MySQL deployed with Docker, ensure that the MySQL container is running normally.

Furthermore,File or directory permission issueIt is also a common fault point on Linux servers. Especially after manually uploading or extracting the AnQiCMS installation package, if the file and directory permissions are not set correctly, AnQiCMS may not be able to read the configuration files or write logs, etc., leading to startup failure.The solution is:Ensure the AnQiCMS running user (usuallywwwThe user or the user you customize has read and write permissions for the AnQiCMS installation directory and its subdirectories. You can usechmod -R 755 /path/to/anqicmsandchown -R www:www /path/to/anqicms(Please move the/path/to/anqicmsReplace it with the actual installation path) to correct the permissions.

Finally,configuration fileconfig.jsonFormat errorIt may also confuse AnQiCMS when it starts up.Although AnQiCMS configuration is relatively simple, the JSON format has strict syntax requirements, such as missing commas, mismatched quotes, and unclosed curly braces, all of which can cause parsing failures.The solution is:Check with an online JSON validation toolconfig.jsonCheck if the file syntax is correct. Even the slightest spelling error can cause the startup to fail.


Prevention first: Make the upgrade process smoother

To avoid the occurrence of these problems, some good operational habits and preventive measures are crucial:

  • Backup, backup, and backup:Before performing any upgrade operations, be sure to back up the AnQiCMS program files and database.This is the golden rule of any system upgrade, which allows you to survive in the worst case.
  • Read the update log and upgrade guide:AnQiCMS'changelog.mdDetails of each version update will be recorded. In particular, for major version upgrades, developers will usually provide detailed upgrade guides.Read these documents carefully, and it will allow you to understand in advance the possible problems and precautions you may encounter.
  • Restart after clearing the cache:After the upgrade, develop the habit of clearing the browser cache first, then restarting the AnQiCMS service. This ensures that you are using the latest version of the program and interface.

Having mastered these knowledge and skills, you will be able to calmly deal with any "little incidents" after the AnQiCMS upgrade and ensure the continuous and stable operation of the website.


Frequently Asked Questions (FAQ)

  1. Ask: Why does the backend interface not change after I upgrade AnQiCMS according to the steps? Answer:This is usually due to the browser cache not being cleared, the browser is still loading old interface files. It is recommended that you try to force refresh the browser (Windows pressCtrl + F5, macOS pressCmd + Shift + R), or completely clear the browser cache and cookies.If still invalid, please check if the old process of AnQiCMS has been stopped and restarted correctly, and ensure that the new version of the program has taken effect.

  2. Ask: When AnQiCMS starts, it prompts that the port is occupied, how can I solve it? Answer:Port conflict is a common startup problem. You can uselsof -i:{端口号}for examplelsof -i:8001)Command to find the process that occupies the port required by AnQiCMS. After finding the process ID (PID), usekill -9 PIDCommand to terminate it. Then, you can try to restart AnQiCMS. If you want to solve this problem permanently, you can modify AnQi

Related articles

What is the specific operation process for merging multiple sites during the upgrade from AnQiCMS 2.x to 3.x?

AnQi CMS, as a content management system favored by small and medium-sized enterprises and content operation teams, has been continuously evolving to provide more efficient and flexible services.The upgrade from version 2.x to 3.x is not just an update of the version number, but also brings optimization of the underlying architecture and a leap in multi-site management mode.For those who have deployed multiple sites in the 2.x period and wish to achieve unified and efficient merged deployment in 3.x, this is undoubtedly an important milestone.

2025-11-06

How AnQiCMS v2.x users can smoothly upgrade to v3.x version?

How do users of the v2.x version of AnQi CMS smoothly upgrade to the v3.x version?Deep Analysis and Practical Guide As an experienced website operations expert, I am well aware of the importance of a stable and efficient CMS system for business.AnQiCMS (AnQiCMS) has become a powerful assistant for many small and medium-sized enterprises and content operation teams with its efficient architecture in Go language and rich features.With AnQiCMS continuously iterating and upgrading, the v3.x version brings more powerful performance, simplified deployment, and a more unified management experience.

2025-11-06

What does it mean to reuse database information when adding a new site in the background of AnQiCMS deployed by Docker?

As an experienced website operations expert, I am well aware that an efficient and flexible content management system is the key to a company's success in an increasingly complex network environment.AnQiCMS, with its high-performance architecture in Go language and multi-site management capabilities, has become a powerful assistant for many operators.Especially when combined with container technologies like Docker, the convenience of deploying and managing websites is greatly enhanced.

2025-11-06

How to obtain and fill in the MySQL root password when installing AnQiCMS with Baota panel Docker?

## AnQiCMS Docker installation using Panel: Easily obtain and fill in the MySQL root password guide As an experienced website operations expert, I am well aware that how to efficiently and accurately handle database configuration is the key to success when quickly deploying a content management system.AnQiCMS (AnQiCMS) has won the favor of many small and medium-sized enterprises and self-media operators with its efficient and concise features based on the Go language.Installing AnQiCMS through the Docker container feature of Baota panel is undoubtedly an efficient way to achieve this goal. However

2025-11-06

How does the modular design of AnQiCMS facilitate secondary development and customization?

## Deep Dive into AnQiCMS: How Modular Design Empowers Secondary Development and Personalization?In the digital wave, websites are no longer just simple information display platforms, but are the core positions of corporate brand image, business promotion, and even revenue growth.To stand out in the fierce market competition, in addition to content quality, efficient secondary development capabilities and flexible personalized customization are also crucial.As an experienced website operations expert, I know that the modular design of a good CMS system is the key to achieving these goals. Today

2025-11-06

How does the high concurrency feature of AnQiCMS based on Go language manifest in the system architecture?

In the digital age, the performance and stability of a website have become key indicators of its success or failure.AnQiCMS (AnQiCMS) is an enterprise-level content management system based on the Go language, and its excellent performance in handling high-concurrency scenarios is a core manifestation of its technical advantages.As an experienced website operations expert, I fully understand the importance of a smooth and efficient system for content operations.Today, let us unveil the mystery of AnQiCMS's high-performance architecture and delve into how the concurrent features of Go language are ingeniously integrated into its system architecture.

2025-11-06

What advanced SEO tools does AnQiCMS provide, and how do they help optimize the website?

In today's highly competitive online environment, whether a website can be discovered by search engines and achieve a good ranking is the key to its success.As an experienced website operation expert, I know the importance of a powerful CMS system in SEO optimization.AnQiCMS, as a system dedicated to providing efficient content management solutions, naturally does not spare any effort in SEO, built-in a variety of advanced tools, aimed at helping users improve their website's performance in search engines.

2025-11-06

How does AnQiCMS implement unified management and resource integration of multiple sites?

Today, with the increasing complexity of digital marketing, many companies or content operators face a common challenge: how to efficiently manage the vast content of multiple websites or sub-brand sites while maximizing the utilization and integration of resources?Repetitive work not only consumes a lot of time and energy, but may also lead to uneven content quality and inconsistent brand image.AnQiCMS (AnQiCMS) understands this well, one of its design philosophies is to provide users with a set of elegant and powerful multi-site content unified management and resource integration solutions.AnQi CMS based on the high-performance architecture of the Go language

2025-11-06