You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2023/01/05 13:48:11 UTC

[GitHub] [skywalking] XiamenGeek opened a new issue, #10236: Exception alias sw_log missing on 9.3.0 [Bug]

XiamenGeek opened a new issue, #10236:
URL: https://github.com/apache/skywalking/issues/10236

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Apache SkyWalking Component
   
   OAP server (apache/skywalking)
   
   ### What happened
   
   After I startup OAPServer, there are Exceptions on OAPServer log periodically.  Exception log as bellow:
   
   > 2023-01-0520:37:42,216-org.apache.skywalking.oap.servercore.storage.ttl.DataTTLKeeperTimer - 66 [pool-6-thread-1] ERROR [] Remove data in background failure. 
   java.util.concurrent.ExecutionException:java.lang.RuntimeException:{"error":"alias [sw_log] missing", "status":404
   ....
   
   I have checked ES index. There's no sw_log index. 
   ES version: 6.8
   
   ### What you expected to happen
   
   Should no such Exception on OAP server log.
   
   ### How to reproduce
   
   Skywalking OAP server: 9.3.0
   Elasticsearch Version: 6.8
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] wu-sheng commented on issue #10236: Exception alias sw_log missing on 9.3.0 [Bug]

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #10236:
URL: https://github.com/apache/skywalking/issues/10236#issuecomment-1375156575

   This is an ElasticSearch concept, not us. Learn from their docs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] wu-sheng closed issue #10236: Exception alias sw_log missing on 9.3.0 [Bug]

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #10236: Exception alias sw_log missing  on 9.3.0 [Bug] 
URL: https://github.com/apache/skywalking/issues/10236


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] wu-sheng commented on issue #10236: Exception alias sw_log missing on 9.3.0 [Bug]

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #10236:
URL: https://github.com/apache/skywalking/issues/10236#issuecomment-1372362241

   Whether do you use indices/templates from an old version?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] XiamenGeek commented on issue #10236: Exception alias sw_log missing on 9.3.0 [Bug]

Posted by GitBox <gi...@apache.org>.
XiamenGeek commented on issue #10236:
URL: https://github.com/apache/skywalking/issues/10236#issuecomment-1375031514

   Looks like all are with prefix "sw_", including the template sw_ui_template. @wu-sheng 
   <html>
   <body>
   <!--StartFragment-->
   
   index | number_of_shards | number_of_replicas
   -- | -- | --
   sw_ui_template | indexShardsNumber | indexReplicasNumber
   sw_metrics-all-${day-format} | indexShardsNumber | indexReplicasNumber
   sw_log-${day-format} | indexShardsNumber * superDatasetIndexShardsFactor | superDatasetIndexReplicasNumber
   sw_segment-${day-format} | indexShardsNumber * superDatasetIndexShardsFactor | superDatasetIndexReplicasNumber
   sw_browser_error_log-${day-format} | indexShardsNumber * superDatasetIndexShardsFactor | superDatasetIndexReplicasNumber
   sw_zipkin_span-${day-format} | indexShardsNumber * superDatasetIndexShardsFactor | superDatasetIndexReplicasNumber
   sw_records-all-${day-format} | indexShardsNumber | indexReplicasNum
   
   <!--EndFragment-->
   </body>
   </html>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] XiamenGeek commented on issue #10236: Exception alias sw_log missing on 9.3.0 [Bug]

Posted by GitBox <gi...@apache.org>.
XiamenGeek commented on issue #10236:
URL: https://github.com/apache/skywalking/issues/10236#issuecomment-1373473575

   > Whether do you use indices/templates from an old version?
   
   No, before reinstall skywalking 9.3.0 I have cleaned all indices of Skywalking on ES, which with sw_ prefix. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] wu-sheng commented on issue #10236: Exception alias sw_log missing on 9.3.0 [Bug]

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #10236:
URL: https://github.com/apache/skywalking/issues/10236#issuecomment-1374970509

   https://skywalking.apache.org/docs/main/v9.3.0/en/setup/backend/backend-storage/#elasticsearch
   
   Document has listed the indices. The prefix(without day-format) names are templates.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] XiamenGeek commented on issue #10236: Exception alias sw_log missing on 9.3.0 [Bug]

Posted by GitBox <gi...@apache.org>.
XiamenGeek commented on issue #10236:
URL: https://github.com/apache/skywalking/issues/10236#issuecomment-1374958249

   > How about templates? Try on a new and empty ElasticSearch. I feel you have some legacy in your ElasticSearch.
   
   Could you tell me what is templates name ? Besides indices with sw_ prefix, any other  indices are left? @wu-sheng 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] wu-sheng commented on issue #10236: Exception alias sw_log missing on 9.3.0 [Bug]

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #10236:
URL: https://github.com/apache/skywalking/issues/10236#issuecomment-1372361560

   @XiamenGeek Could you provide more context? I can't tell what happens.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] wu-sheng commented on issue #10236: Exception alias sw_log missing on 9.3.0 [Bug]

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #10236:
URL: https://github.com/apache/skywalking/issues/10236#issuecomment-1372353386

   @wankai123 Do we have this index? I never faced this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] XiamenGeek commented on issue #10236: Exception alias sw_log missing on 9.3.0 [Bug]

Posted by GitBox <gi...@apache.org>.
XiamenGeek commented on issue #10236:
URL: https://github.com/apache/skywalking/issues/10236#issuecomment-1375149826

   @wankai123  sw_log index is not found on ES, where can I remove?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] wu-sheng commented on issue #10236: Exception alias sw_log missing on 9.3.0 [Bug]

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #10236:
URL: https://github.com/apache/skywalking/issues/10236#issuecomment-1375150685

   > @wankai123  sw_log index is not found on ES, where can I remove?
   
   This is a template, not an index.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] wankai123 commented on issue #10236: Exception alias sw_log missing on 9.3.0 [Bug]

Posted by GitBox <gi...@apache.org>.
wankai123 commented on issue #10236:
URL: https://github.com/apache/skywalking/issues/10236#issuecomment-1375064408

   @XiamenGeek I think you removed all `sw_log` index manually before, you can try remove the index_template `sw_log` and restart OAP. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] XiamenGeek commented on issue #10236: Exception alias sw_log missing on 9.3.0 [Bug]

Posted by GitBox <gi...@apache.org>.
XiamenGeek commented on issue #10236:
URL: https://github.com/apache/skywalking/issues/10236#issuecomment-1375206647

   It works! Thanks! @wu-sheng @wankai123 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] XiamenGeek commented on issue #10236: Exception alias sw_log missing on 9.3.0 [Bug]

Posted by GitBox <gi...@apache.org>.
XiamenGeek commented on issue #10236:
URL: https://github.com/apache/skywalking/issues/10236#issuecomment-1375154415

   > > @wankai123  sw_log index is not found on ES, where can I remove?
   > 
   > This is a template, not an index.
   
   Where is this sw_log template located? @wu-sheng 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] wankai123 commented on issue #10236: Exception alias sw_log missing on 9.3.0 [Bug]

Posted by GitBox <gi...@apache.org>.
wankai123 commented on issue #10236:
URL: https://github.com/apache/skywalking/issues/10236#issuecomment-1372358064

   > @wankai123 Do we have this index? I never faced this.
   
   Yes, we have this index in `LogRecord`, but I never saw this exception.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] wu-sheng commented on issue #10236: Exception alias sw_log missing on 9.3.0 [Bug]

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #10236:
URL: https://github.com/apache/skywalking/issues/10236#issuecomment-1373483366

   How about templates? Try on a new and empty ElasticSearch.
   I feel you have some legacy in your ElasticSearch.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org