Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

When I use the Nginx proxy Confluence, I write a document that I can't immediately see the content I

This problem has been bothering me for several months. I can't find the answer online. I have tried to configure it according to the official configuration, but it still doesn't work. We hope to get official assistance. Thank you very much.

my email:1016401546@qq.com

Please see the screenshot below:

Here is my nginx configuration:

server {
listen 80;
server_name confluence-lan.my.com;

location / {
proxy_pass http://192.168.30.207:8090;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 100m;
proxy_redirect default;
}
access_log /data/logs/confluence-lan.my.com.log access;
}

When I opened Confluence using the domain name conflulan.my.com. All right, then I'm going to edit a document.

1.png

I'll start modifying it now, insert CCC under BBB, and save it.

2.png

Here's the problem: I didn't see my updated CCC immediately after I saved it

I don't see the CCC I just wrote

3.png

When I refresh the page, the new CCC content will be displayed.

4.png

Is this a bug in Confluence?

 

2 answers

Will no one answer this question?

0 votes

Hi @陈土锋 , 

Please, check via ui the synchrony configuration. 

in your nginx conf I did not see, but behaviour like synchrony stucks. 

Could you also, double check the errors via console log in dev tools of your browser, please?

Cheers,

Gonchik

Hello, the browser console did not see an error:

5.png

Nginx has added a synchronization configuration, also does not work:

Now my full nginx configuration looks like this:

server {
listen 80;
server_name confluence-lan.my.com;

location / {
proxy_pass http://192.168.30.207:8090;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 100m;
proxy_redirect default;
}
location /synchrony {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8091/synchrony;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
access_log /data/logs/confluence-lan.my.com.log access;
}

Is this a bug? Have other people experienced this problem?

Catalina. out did not report an error,

GC-2021-02-01_17-08-46. log also has no error,

Confluence. log error:


2021-03-09 14:36:58,001 ERROR [http-nio-8090-exec-15] [renderer.internal.http.HttpClientFetcher] fetch Unable to perform a request to: http://confluence-lan.leniu.com/rest/gadgets/1.0/g/messagebundle/und/gadget.common%2Cgadget.confluence
-- referer: http://confluence-lan.leniu.com/display/SHDL/test | url: /plugins/macrobrowser/browse-macros.action | traceId: fb1723685165b1d9 | userName: admin | action: browse-macros
java.net.UnknownHostException: confluence-lan.leniu.com

2021-03-09 14:37:04,069 ERROR [http-nio-8090-exec-9] [atlassian.troubleshooting.confluence.ConfluenceApplicationInfo] addSynchronyConfiguration com.atlassian.confluence.core.ConfluenceSystemProperties.isSynchronyProxyEnabled()
-- referer: http://confluence-lan.leniu.com/plugins/servlet/troubleshooting/view?source=notification&healthCheck=auditLogCapacityCheck | url: /plugins/servlet/troubleshooting/view/atst-detect-issues/view | traceId: 23ae363378583a2b | userName: admin
2021-03-09 14:37:04,072 ERROR [http-nio-8090-exec-9] [confluence.status.service.DefaultSystemInformationService] getModifications
-- referer: http://confluence-lan.leniu.com/plugins/servlet/troubleshooting/view?source=notification&healthCheck=auditLogCapacityCheck | url: /plugins/servlet/troubleshooting/view/atst-detect-issues/view | traceId: 23ae363378583a2b | userName: admin
2021-03-09 14:37:04,076 INFO [read-only-transaction:thread-1] [atlassian.confluence.user.DefaultUserAccessor] getUserNamesWithConfluenceAccess Found USE permission with no associated username or group: [USECONFLUENCE,0,null,null,null]
2021-03-09 14:37:53,491 WARN [HealthCheckWatchdog:thread-2] [troubleshooting.healthcheck.concurrent.SupportHealthCheckTask] healthCheckTimeout Health check 审核日志容量 was unable to complete within the timeout of 30000.
2021-03-09 14:38:03,515 WARN [HealthCheck:thread-5] [internal.core.service.VCacheLock] lockWithTimeout Interrupted whilst waiting for a lock on cache:
java.lang.InterruptedException
2021-03-09 14:36:57,997 ERROR [http-nio-8090-exec-15] [renderer.internal.http.HttpClientFetcher] fetch Unable to perform a request to: http://confluence-lan.leniu.com/rest/gadgets/1.0/g/messagebundle/zh_CN/gadget.common%2Cgadget.quicknav
-- referer: http://confluence-lan.leniu.com/display/SHDL/test | url: /plugins/macrobrowser/browse-macros.action | traceId: fb1723685165b1d9 | userName: admin | action: browse-macros
java.net.UnknownHostException: confluence-lan.leniu.com

So please, share confluence version? 

And share the configuration of Synchrony in admin panel of confuence.

I think it's misconfiguration

Also, I see different proxy passes

 

proxy_pass http://localhost:8091/synchrony;

proxy_pass http://192.168.30.207:8090;

My Confluence version is 7.10.2:

7.png

 

Which configuration would you like to share?

The configuration of my page is as follows:

6.png8.png

I have set up several confluences and the situation is the same. The ones using Nginx proxy are not updated in real time. Proxy configuration 1 changed to the same:

As follows:

server {
listen 80;
server_name confluence-lan.my.com;

location / {
proxy_pass http://192.168.30.207:8090;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 100m;
proxy_redirect default;
}
location /synchrony {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://192.168.30.207:8091/synchrony;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
access_log /data/logs/confluence-lan.my.com.log access;
}

Has anyone ever encountered this situation?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Confluence Cloud

🎨 Add some visual life to your templates

Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...

151 views 1 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you