create account

steempy下授权操作异常排查和处理 by rivalhw

View this thread on: hive.blogpeakd.comecency.com
· @rivalhw · (edited)
$27.97
steempy下授权操作异常排查和处理
<html>
<p>&nbsp;&nbsp;steempy的文档资料非常少,出现了问题一般都要自己摸索,我将自己碰到的一些问题和解决方法陆续都记录下来,以便给大家做借鉴,希望大家以后在操作steempy碰到类似问题时能少走些弯路。<br>
</p>
<p>&nbsp;&nbsp;早上在给@shenchensucc 授权茶馆店小二操作身份时,本以为会像先前一样顺利,谁知却出现如下图错误信息:</p>
<p><br>
<img src="https://steemitimages.com/DQmdwQQtDZoPpnNBUWgYfCv9aEo91PX1hnK6DLamkYLQSnm/error1.png" width="1888" height="899"/><br>
</p>
<p>真是有些奇怪,按了Ctrl+c终止后,又出现如下信息:</p>
<p><img src="https://steemitimages.com/DQmQ7cJRn5eAtuaEMRJxdbEzEFCpe1dXntt1pED9t6rf8HB/error2.png" width="1884" height="899"/></p>
<p><br>
以为allow操作出了问题,于是换个命令:listkeys 试下,仍然同上错误。</p>
<p><br>
改换了下输入:steempy --help 测试了下,见下图:</p>
<p><br>
<img src="https://steemitimages.com/DQmaHFZRpb2NYKfyuWGbVLSB6syDxAoWtUHq3z1pbbTqLw8/steempy.png" width="1270" height="616"/></p>
<p><br></p>
<p>看这样子steempy是正常的呀,那会是哪里出了问题呢?</p>
<p><br></p>
<p>毛主席教导我们,看问题一定要善于抓住主要矛盾,于是仔细在错误的异常里查看,发现有如下一句异常提示:</p>
<p><em><strong>Failed to establish a new connection: [Errno -3] Temporary failure in name resolution</strong></em></p>
<p><br></p>
<p>看这样子是出现在网络连接方面的原因,于是输入命令测试下网络:ping baidu.com</p>
<p><br>
系统返回:</p>
<p>ping: unknown host baidu.com<br>
</p>
<p>果然是外网不通的原因引起的。<br>
</p>
<p>于是修改 /etc/resolv.conf 文件,增加如下:<br>
</p>
<p>nameserver 8.8.8.8<br>
</p>
<p>然后再输入命令 ping baidu.com ,返回如下图:<br>
</p>
<p><img src="https://steemitimages.com/DQmbCczQ5aaLqKBfpgN9sfKm1fuN3epkiWsNTUiAjvHhTTv/ping.png" width="1264" height="191"/></p>
<p><br>
网络恢复正常。</p>
<p><br>
这时候再重新操作steempy 同时进行授权操作,一切正常。</p>
<p><img src="https://steemitimages.com/DQmQHpQ18HEy9t9MuxbHiocPbxnDJEtsAQTz6ACDtNnZrxW/allow.png" width="1206" height="262"/></p>
</html>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 8 others
properties (23)
authorrivalhw
permlinksteempy
categorysteempy
json_metadata{"tags":["steempy","steemit","cn-reader","cn"],"users":["shenchensucc"],"image":["https://steemitimages.com/DQmdwQQtDZoPpnNBUWgYfCv9aEo91PX1hnK6DLamkYLQSnm/error1.png","https://steemitimages.com/DQmQ7cJRn5eAtuaEMRJxdbEzEFCpe1dXntt1pED9t6rf8HB/error2.png","https://steemitimages.com/DQmaHFZRpb2NYKfyuWGbVLSB6syDxAoWtUHq3z1pbbTqLw8/steempy.png","https://steemitimages.com/DQmbCczQ5aaLqKBfpgN9sfKm1fuN3epkiWsNTUiAjvHhTTv/ping.png","https://steemitimages.com/DQmQHpQ18HEy9t9MuxbHiocPbxnDJEtsAQTz6ACDtNnZrxW/allow.png"],"app":"steemit/0.1","format":"html"}
created2018-04-30 02:00:45
last_update2018-04-30 02:03:12
depth0
children16
last_payout2018-05-07 02:00:45
cashout_time1969-12-31 23:59:59
total_payout_value26.008 HBD
curator_payout_value1.966 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,574
author_reputation1,801,793,843,221,928
root_titlesteempy下授权操作异常排查和处理
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,937,146
net_rshares4,476,445,100,617
author_curate_reward""
vote details (72)
@aungbala ·
$0.15
我们必须学习很长一段时间
👍  
properties (23)
authoraungbala
permlinkre-rivalhw-steempy-20180430t021319127z
categorysteempy
json_metadata{"tags":["steempy"],"app":"steemit/0.1"}
created2018-04-30 02:13:24
last_update2018-04-30 02:13:24
depth1
children0
last_payout2018-05-07 02:13:24
cashout_time1969-12-31 23:59:59
total_payout_value0.142 HBD
curator_payout_value0.011 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length12
author_reputation617,983,160,632
root_titlesteempy下授权操作异常排查和处理
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,938,895
net_rshares25,122,291,788
author_curate_reward""
vote details (1)
@cn-cutie.pie ·
$0.15
@rivalhw, 写得好好哇~~~ ![img](https://i.imgur.com/MO8w421.png)

BTW, @cn-naughty.boy 淘气包你好好说话可以吗,就知道调皮,哼~~ _(:3 」∠)_ 
👍  
properties (23)
authorcn-cutie.pie
permlink20180430t020807081z-post
categorysteempy
json_metadata{"tags":["cn"]}
created2018-04-30 02:08:09
last_update2018-04-30 02:08:09
depth1
children0
last_payout2018-05-07 02:08:09
cashout_time1969-12-31 23:59:59
total_payout_value0.150 HBD
curator_payout_value0.003 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length113
author_reputation717,169,219,933
root_titlesteempy下授权操作异常排查和处理
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,938,203
net_rshares25,122,291,788
author_curate_reward""
vote details (1)
@cn-naughty.boy ·
$0.15
@rivalhw, 看到你的帖子,真是我的幸运啊!太棒了!
👍  
properties (23)
authorcn-naughty.boy
permlink20180430t020606450z-post
categorysteempy
json_metadata{"tags":["cn"]}
created2018-04-30 02:06:06
last_update2018-04-30 02:06:06
depth1
children0
last_payout2018-05-07 02:06:06
cashout_time1969-12-31 23:59:59
total_payout_value0.150 HBD
curator_payout_value0.003 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length29
author_reputation803,970,857,060
root_titlesteempy下授权操作异常排查和处理
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,937,908
net_rshares25,122,291,788
author_curate_reward""
vote details (1)
@fr3eze ·
$0.39
Nameserver 8.8.8.8 是设定 Dns 的意思?
👍  
properties (23)
authorfr3eze
permlinkre-rivalhw-steempy-20180430t021427101z
categorysteempy
json_metadata{"tags":["steempy"],"app":"steemit/0.1"}
created2018-04-30 02:14:27
last_update2018-04-30 02:14:27
depth1
children2
last_payout2018-05-07 02:14:27
cashout_time1969-12-31 23:59:59
total_payout_value0.360 HBD
curator_payout_value0.031 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length31
author_reputation62,201,653,753,684
root_titlesteempy下授权操作异常排查和处理
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,939,024
net_rshares62,805,729,471
author_curate_reward""
vote details (1)
@rivalhw ·
对。
properties (22)
authorrivalhw
permlinkre-fr3eze-re-rivalhw-steempy-20180430t022433312z
categorysteempy
json_metadata{"tags":["steempy"],"app":"steemit/0.1"}
created2018-04-30 02:24:33
last_update2018-04-30 02:24:33
depth2
children1
last_payout2018-05-07 02:24:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2
author_reputation1,801,793,843,221,928
root_titlesteempy下授权操作异常排查和处理
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,940,313
net_rshares0
@fr3eze ·
原来大陆也可以用 google dns...
properties (22)
authorfr3eze
permlinkre-rivalhw-re-fr3eze-re-rivalhw-steempy-20180430t061010423z
categorysteempy
json_metadata{"tags":["steempy"],"community":"busy","app":"busy/2.4.0"}
created2018-04-30 06:10:21
last_update2018-04-30 06:10:21
depth3
children0
last_payout2018-05-07 06:10:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length22
author_reputation62,201,653,753,684
root_titlesteempy下授权操作异常排查和处理
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,970,388
net_rshares0
@gabyjc ·
Excellent thanks for sharing, interesting your post.
properties (22)
authorgabyjc
permlinkre-rivalhw-steempy-20180430t030420504z
categorysteempy
json_metadata{"tags":["steempy"],"app":"steemit/0.1"}
created2018-04-30 02:35:09
last_update2018-04-30 02:35:09
depth1
children0
last_payout2018-05-07 02:35:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length52
author_reputation449,801,800,639,350
root_titlesteempy下授权操作异常排查和处理
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,941,720
net_rshares0
@jawad09 ·
$0.08
English Version Of Today's Article by Teacher @rivalhw!
----

***steempy licensed under abnormal operation Troubleshooting and process***


steempy the documentation is very less, there is a problem generally to find their own way, I will own some of the problems encountered and solutions one after another are recorded, in order to give everyone do draw, hope you all later in the operation steempy encounter similar problems when can less take some detours.
Morning to@shenchensucc authorized teahouse waiter the operation of identity, the thought that will be like the previous as smooth, but it appeared the figure below error message:

*picture*

Really strange, press Ctrl+c after the termination, and appear the following message:

*picture*

Thought allow operation out of the question, then change the command:listkeys try, still above error.

*picture*

Change the following inputs: steempy --help test the next, see the following figure:

*Picture*

See this steempy is normal Yeah, that would be wrong?

*picture*

Chairman Mao teaches us that see the problem have to be good at to seize the main contradiction, so carefully in the error exception in the view, and found the following sentence in the exception tip:

*picture*

Failed to establish a new connection: [Errno -3] Temporary failure in name resolution.


Look like this is to appear in the network connected reasons, then the input command to test the network: ping baidu.com

*picture*

The system returns:

*picture*

ping: unknown host baidu.com
It really is outside the network is not the cause.
Then modify /etc/resolv. conf file, add the following:
nameserver 8.8.8.8
Then enter the command ping baidu.com returns as shown below:

*picture*

The network returned to normal.


This time the re-operation steempy at the same time be authorized to operate, everything is normal.

------------

That's all from this Article by @rivalhw. Thanks dear friend!
-----
👍  
properties (23)
authorjawad09
permlinkre-rivalhw-steempy-20180430t081015882z
categorysteempy
json_metadata{"tags":["steempy"],"users":["rivalhw"],"app":"steemit/0.1"}
created2018-04-30 08:10:21
last_update2018-04-30 08:10:21
depth1
children0
last_payout2018-05-07 08:10:21
cashout_time1969-12-31 23:59:59
total_payout_value0.079 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,939
author_reputation34,832,615,044,215
root_titlesteempy下授权操作异常排查和处理
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,986,672
net_rshares13,102,484,327
author_curate_reward""
vote details (1)
@rabeel ·
$0.55
Well written.helpful lines and gave awareness. Your efforts are awesome for whole community specially Chinese Community. Always glad to comment on your post. Although i could not understand cn language. Thnx @rivalhw for your Always Support back.
👍  
properties (23)
authorrabeel
permlinkre-rivalhw-steempy-20180430t020651450z
categorysteempy
json_metadata{"tags":["steempy"],"community":"busy","app":"busy/2.4.0"}
created2018-04-30 02:06:57
last_update2018-04-30 02:06:57
depth1
children0
last_payout2018-05-07 02:06:57
cashout_time1969-12-31 23:59:59
total_payout_value0.528 HBD
curator_payout_value0.019 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length246
author_reputation136,994,730,017,550
root_titlesteempy下授权操作异常排查和处理
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,938,031
net_rshares87,928,021,260
author_curate_reward""
vote details (1)
@shawn4745 ·
cn-reader great to share..........
amazing

resteem done
👍  
properties (23)
authorshawn4745
permlinkre-rivalhw-steempy-20180430t022651191z
categorysteempy
json_metadata{"tags":["steempy"],"app":"steemit/0.1"}
created2018-04-30 02:26:48
last_update2018-04-30 02:26:48
depth1
children0
last_payout2018-05-07 02:26:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length56
author_reputation174,230,277,826
root_titlesteempy下授权操作异常排查和处理
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,940,605
net_rshares521,192,491
author_curate_reward""
vote details (1)
@shenchensucc ·
$0.55
感谢感谢大伟哥。
👍  
properties (23)
authorshenchensucc
permlinkre-rivalhw-steempy-20180430t020159826z
categorysteempy
json_metadata{"tags":["steempy"],"app":"steemit/0.1"}
created2018-04-30 02:02:00
last_update2018-04-30 02:02:00
depth1
children2
last_payout2018-05-07 02:02:00
cashout_time1969-12-31 23:59:59
total_payout_value0.540 HBD
curator_payout_value0.007 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length8
author_reputation100,205,759,373,709
root_titlesteempy下授权操作异常排查和处理
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,937,317
net_rshares87,928,021,260
author_curate_reward""
vote details (1)
@rivalhw ·
$0.10
我也是碰到问题顺便学习了下。
👍  
properties (23)
authorrivalhw
permlinkre-shenchensucc-re-rivalhw-steempy-20180430t020346246z
categorysteempy
json_metadata{"tags":["steempy"],"app":"steemit/0.1"}
created2018-04-30 02:03:48
last_update2018-04-30 02:03:48
depth2
children1
last_payout2018-05-07 02:03:48
cashout_time1969-12-31 23:59:59
total_payout_value0.072 HBD
curator_payout_value0.023 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length14
author_reputation1,801,793,843,221,928
root_titlesteempy下授权操作异常排查和处理
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,937,595
net_rshares15,705,013,096
author_curate_reward""
vote details (1)
@shenchensucc ·
你这种认真的精神也真是值得我学习。
properties (22)
authorshenchensucc
permlinkre-rivalhw-re-shenchensucc-re-rivalhw-steempy-20180430t024431299z
categorysteempy
json_metadata{"tags":["steempy"],"app":"steemit/0.1"}
created2018-04-30 02:44:30
last_update2018-04-30 02:44:30
depth3
children0
last_payout2018-05-07 02:44:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length17
author_reputation100,205,759,373,709
root_titlesteempy下授权操作异常排查和处理
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,942,987
net_rshares0
@shucona ·
That's great post.
I like this your all post.
Thanks for sharing this post.
properties (22)
authorshucona
permlinkre-rivalhw-steempy-20180430t023223755z
categorysteempy
json_metadata{"tags":["steempy"],"app":"steemit/0.1"}
created2018-04-30 02:32:27
last_update2018-04-30 02:32:27
depth1
children0
last_payout2018-05-07 02:32:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length75
author_reputation1,988,897,267,403
root_titlesteempy下授权操作异常排查和处理
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,941,353
net_rshares0
@ssjaryan ·
English Version Of This Article By @rivalhw!

Title: Steempy authorized operations under abnormal investigation and processing
Steempy's documentation is very few. When problems arise, I must try my own. I will record some of the problems and solutions I have encountered in succession so that I can learn from them. I hope that everyone will be able to handle similar issues when operating steempy. Take less detours.

   In the morning, when she gave @shenchensucc an authorization to operate the identity of the teahouse shop, she thought she would be as smooth as before. Who knows but there is an error message as follows:
Picture 
It's a bit strange. After pressing Ctrl+c, the following message appears:
Picture
I thought that there was a problem with the allow operation, so I changed the order: listkeys tried, still the same as above.
Changed the next input: steempy --help tested, see below:

picture

It's normal to see this kind of steempy. What would be the problem?


Chairman Mao taught us to look at the problem must be good at grasping the main contradiction, so carefully look in the wrong exception and found that there is an abnormal note as follows:

Failed to establish a new connection: [Errno -3] Temporary failure in name resolution


Look at this kind of reason that appears in the network connection, so enter the command test network: ping baidu.com


The system returns:

Ping: unknown host baidu.com

Sure enough, it was caused by the reason that the external network was unreasonable.

Then modify the /etc/resolv.conf file and add the following:

Nameserver 8.8.8.8

Then enter the command ping baidu.com to return to the following picture:
Picture
The network is back to normal.


At this time, re-operation steempy at the same time authorized operations, everything is normal.

picture


That's all from this Article. Thanks dear @rivalhw for writing such a great Article. Keep us updated by your amazing ideas with your words. All the best!
👍  
properties (23)
authorssjaryan
permlinkre-rivalhw-steempy-20180430t060137027z
categorysteempy
json_metadata{"tags":["steempy"],"users":["rivalhw","shenchensucc"],"app":"steemit/0.1"}
created2018-04-30 06:02:03
last_update2018-04-30 06:02:03
depth1
children0
last_payout2018-05-07 06:02:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,976
author_reputation119,190,273,376
root_titlesteempy下授权操作异常排查和处理
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,969,310
net_rshares605,149,204
author_curate_reward""
vote details (1)
@zamanngn ·
我通过谷歌翻译阅读你的文章。 我看到你总是写得很好,很有帮助的文章。 所以我让你成为我的最爱。
properties (22)
authorzamanngn
permlinkre-rivalhw-steempy-20180430t043926002z
categorysteempy
json_metadata{"tags":["steempy"],"app":"steemit/0.1"}
created2018-04-30 04:39:42
last_update2018-04-30 04:39:42
depth1
children0
last_payout2018-05-07 04:39:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length47
author_reputation105,080,254,888
root_titlesteempy下授权操作异常排查和处理
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,958,655
net_rshares0