Phabricator:请求的URL返回错误:使用git Push返回500

时间:2015-03-03 23:49:35

标签: git phabricator

我今天已经设置了Phabricator与Diffusion并且一直在争夺

  

请求的网址返回错误:500

尝试git push over http / s(也包含克隆请求)。

我知道遥控器是正确的,我设置了VCS密码,diffusion.allow-http-auth设置为true。我也没有在控制面板中收到任何(设置)错误。

Sudoer文件设置如下:

# User privilege specification
root         ALL=(ALL:ALL) ALL
daemon-user  ALL=(ALL:ALL) ALL
www-user     ALL=(daemon-user) SETENV: NOPASSWD: /usr/lib/git-core/git-http-backend
git          ALL=(daemon-user) SETENV: NOPASSWD: /usr/lib/git-core/git-upload-pack, /usr/lib/git-core/git-receive-pack

cloneremote是:

http://[SUB.DOMAIN]/diffusion/[CALLSIGN]/[REPO].git  

我不知道如何在ComputeEngine上设置SSH(因为GCE使用端口22进行在线终端...):所以现在我不习惯使用git over HTTP。

如果有任何人有任何想法,我们将不胜感激。

1 个答案:

答案 0 :(得分:0)

import pandas as pd import multiprocessing from functools import partial def checker(a,b,c,d,e): match = df[(df['a'] == a) & (df['b'] == b) & (df['c'] == c) & (df['d'] == d) & (df['e'] == e)] index_of_match = match.index.tolist() if len(index_of_match) == 1: #one match in df return index_of_match elif len(index_of_match) > 1: #not likely because duplicates will be removed prior to: if "__name__" == __main__: return [index_of_match[0]] else: #no match, returns a result which then gets processed by the else statement in log_result. this means that [a,b,c,d,e] get written to the df return [a,b,c,d,e] def log_result(result, dataf): if len(result) == 1: # dataf.loc[result[0]]['e'] += 1 else: #append new row to exisiting df new_row = pd.DataFrame([result],columns=cols) dataf = dataf.append(new_row,ignore_index=True) def apply_async_with_callback(parsing_material, dfr): pool = multiprocessing.Pool() for var_a, var_b, var_c, var_d, var_e in parsing_material: pool.apply_async(checker, args = (var_a, var_b, var_c, var_d, var_e), callback = partial(log_result,dataf=dfr)) pool.close() pool.join() if __name__ == '__main__': #setting up main dataframe cols = ['a','b','c','d','e'] existing_data = [["YES","A","16052011","13031999",3], ["NO","Q","11022003","15081999",3], ["YES","A","22082010","03012001",9]] #main dataframe df = pd.DataFrame(existing_data,columns=cols) #new data rows_to_parse = [['NO', 'A', '09061997', '06122003', 5], ['YES', 'W', '17061992', '26032012', 6], ['YES', 'G', '01122006', '07082014', 2], ['YES', 'N', '06081992', '21052008', 9], ['YES', 'Y', '18051995', '24011996', 6], ['NO', 'Q', '11022003', '15081999', 3], ['NO', 'O', '20112004', '28062008', 0], ['YES', 'R', '10071994', '03091996', 8], ['NO', 'C', '09091998', '22051992', 1], ['YES', 'Q', '01051995', '02012000', 3], ['YES', 'Q', '26022015', '26092007', 5], ['NO', 'F', '15072002', '17062001', 8], ['YES', 'I', '24092006', '03112003', 2], ['YES', 'A', '22082010', '03012001', 9], ['YES', 'I', '15072016', '30092005', 7], ['YES', 'Y', '08111999', '02022006', 3], ['NO', 'V', '04012016', '10061996', 1], ['NO', 'I', '21012003', '11022001', 6], ['NO', 'P', '06041992', '30111993', 6], ['NO', 'W', '30081992', '02012016', 6]] apply_async_with_callback(rows_to_parse, df) 中有一行Defaults requiretty吗?如果它在那里,它必须被注释掉,否则不允许phabricator在没有终端的情况下运行命令(当然它没有终端......)。