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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

[SOLVED] Standard emoticons not rendered Edited

I have a fresh Confluence 6.3 install (official Docker image) and when I edit a page and want to insert new emoticons, I can't see any pictograms/images. Tried it with three browsers - the images are always missing.

Screenshots:

 safari.pngfirefox.pngchrome.pngpage.png

 

 

Thanks!

 

UPDATE:

The isssue is solved now. User error :/

Since I am using Docker, I have created a docker-compose.yaml file. The relevant part looks like this:

version: '2'
services:
  confluence:
    image: atlassian/confluence-server:6.3
    restart: always
    ports:
      - "127.0.0.1:8090:8090"
    depends_on:
      - postgres
    volumes:
      - confluence-data:/var/atlassian/application-data/confluence
      - /opt/docker/mount/confluence-cfg-mount/server.xml:/opt/atlassian/confluence/conf/server.xml
      - /opt/docker/mount/confluence-cfg-mount/server.xml:/opt/atlassian/confluence/conf/web.xml

 

As you can see the last line mounts the *contents* of server.xml into the web.xml file. Confluence rightly complains about a directive missing - well the entire web.xml was missing but ok:

 

23-Aug-2017 16:14:52.643 SEVERE [localhost-startStop-1]org.springframework.web.servlet.DispatcherServlet.initServletBean Context initialization failed
confluence_1 | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultServletHandlerMapping' defined in class org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.HandlerMapping]: Factory method 'defaultServletHandlerMapping' threw exception; nested exception is java.lang.IllegalStateException: Unable to locate the default servlet for serving static content. Please set the 'defaultServletName' property explicitly.

 

 

The weird thing though is that I did edit the web.xml file before because I changed the session timeout. I don't understand how Confluence was able to change my session timeout even though the web.xml file had the wrong contents...

However, if anybody else stumbles over this - you're welcome. Thank you all for your help. Special thanks to Ann for her dedication and perseverence :)

1 answer

1 accepted

0 votes
Answer accepted
AnnWorley Atlassian Team Aug 17, 2017

The screenshots you linked indicate that your Confluence instance must be integrated with HipChat to make the emoticons available. Here is the guide for linking the two applications: Use HipChat and Confluence together

I just want the standard emoticons, nothing else.

According to Atlassian's reponse via Twitter, this should work without HipChat integration:

https://twitter.com/nicolinux/status/896504683069681664

Thomas Schlegel Community Leader Aug 17, 2017

Standard Emoticons should be no problem at all.

Could you please add your screenshot in the community, because from my working place, I am not allowed to look at the imgur.com-site.

Thomas Schlegel Community Leader Aug 17, 2017

what happens, if you just type (/) on your confluence page?

It should change immediately to:

image.png

It doesn't - that's why I have the slight suspicion that something is broken :)

Right after typing it the following happens:

in Chrome:

chrome.png

 

in Safari:

safari.png

thanks for the screenshots. It looks like Confluence can't reach the emoji images on its server. Could you please have a look at the url, where your page tries to load the image?

Maybe a full reindex might also help.

Started a search re-index but it didn't help.

I tried to access a direct image url:

http://myserver/cf/s/en_GB/7202/2b917bf474320363b63231a29396d24a46356543/_/images/icons/emoticons/smile.png

But then I get a Java Nullpointer exception:

lovely_java.png

 

As I mentioned, this is a fairly straightforward setup with the default Docker image. I did import some space, but this problem existed even before importing stuff.

Here is my nginx proxy conf:

user nginx;
worker_processes 1;

#error_log /dev/null;
error_log /var/log/nginx/error.log warn;

pid /var/run/nginx.pid;


events {
worker_connections 1024;
}

http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" "$proxy_host"';

access_log /dev/null;
#access_log /var/log/nginx/access.log main;

#sendfile on;
#tcp_nopush on;

keepalive_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;

gzip on;

include /etc/nginx/conf.d/*.conf;

server {
listen 80 default_server;
server_name myserver;
location /cf {
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://confluence:8090/cf;
client_max_body_size 500M;
}

location / {
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://pihole;
}
}
}
AnnWorley Atlassian Team Aug 17, 2017

@StefanN Sorry I misunderstood earlier.

What if you bypass the proxy to access the instance? 

Please also check the permissions on the file system to make sure the user running Confluence can access the images.

Thomas Schlegel Community Leader Aug 17, 2017

I compared your url with an url from my system's thumbs_up.png

 

image.png

What happens, if you remove the "cf" part from the URL? 

But anyway, I think, you have to contact Atlassian Support with this problem.

They can take a deeper look into the problem. You can then refer to this ticket, so you don't have to explain it all again.

Sorry, I couldn't help, good luck :-)

Tried to remove the "cf" part from the URL, now no image can be found.

Sadly I can't contact Atlassian Support because I am on the starter license and they killed official support for that a few weeks ago :(

Help me Atlassian Community, you're my only hope :)

AnnWorley Atlassian Team Aug 17, 2017

Thanks very much for your input, Thomas. Stefan's license makes him eligible for support here in the Community. He cannot open a ticket but I will be happy to take a deeper look here.

@AnnWorley exactly...

Permissions are fine - just checked. As I said this is the default Docker image made by Atlassian. If the permissions were off, then every other Confluence instance powered by that image would have broken standard emoticons.

I accessed the confluence server on port 8090 via an ssh tunnel (server is headless...) and I have the same problem. So it is not related to the nginx proxy server.

AnnWorley Atlassian Team Aug 17, 2017

Though you didn't upgrade, the symptoms are similar to what is described in: Broken avatars/icons in Confluence after an upgrade due to corrupted cache

Please try the resolutions in that article. I look forward to hearing how it goes.

Nope, still no luck. I performed all steps mentioned there and double-checked that I have set the correct context path as detailed here (Notes section at the bottom):

https://confluence.atlassian.com/doc/configuring-the-server-base-url-148592.html

One remark - I am *not* using https though, just plain http.

AnnWorley Atlassian Team Aug 18, 2017

You should receive an email from our support portal shortly; it's me asking for logs. :)

AnnWorley Atlassian Team Aug 23, 2017

@StefanN I am happy the issue was resolved and appreciate your circling back to let the Community know. Also, thanks for the kind words. :)

@AnnWorley @StefanN  I started to face the same issue after upgrading to confluence 6.15.2. Can you please provide the resolution here, so that others can benefit from it.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

402 views 23 8
Join discussion

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