标签: redmine

Ruby - Gem - mysql - 无法构建gem原生扩展

因为两天我面临着一个我无法解决的问题.我正在尝试在debian机器上安装redmine.当涉及到gem mysql的安装时,它失败了.我不知道该怎么办了.我的最后一个例子是你的帮助.

错误

root@host:~# gem1.8 install mysql
Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
 ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
checking for mysql_ssl_set()... no
checking for rb_str_set_len()... no
checking for rb_thread_start_timer()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided …

ruby mysql gem debian redmine

4
推荐指数
1
解决办法
7833
查看次数

有没有办法将redmine评论与git commit连接起来

当使用redmine和svn repo时,在问题评论中你可以在评论消息中使用rXXX来创建指向修订版XXX的链接.有没有办法用git repo做同样的事情,其中​​版本ID看起来像"e013ae90"(短ID)?

git redmine

4
推荐指数
1
解决办法
2388
查看次数

通过 SES SMTP 的 Redmine 电子邮件

是否有人成功配置了 redmine 安装以通过 Amazon SES SMTP 发送邮件?

我的设置是:

production:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      tls: true
      enable_starttls_auto: true
      address: email-smtp.us-east-1.amazonaws.com
      port: 465
      domain: example.com
      authentication: :plain
      user_name: ***
      password: ***
Run Code Online (Sandbox Code Playgroud)

当我尝试通过 redmine 设置发送测试电子邮件时,它只是超时,日志或任何内容中都没有明显的错误。

请注意,如果我删除该enable_starttls_auto: true行,这也是一样的。

smtp redmine amazon-web-services

4
推荐指数
1
解决办法
4109
查看次数

Redmine 允许用户仅查看一期

我安装了 Redmine,并且希望能够授予用户查看(或许还可以更新)单个问题(并非项目中的所有问题)的能力。问题是这个问题是由其他人报告的。

使用案例:用户 A、B 和管理员 C

  1. admin C 创建两个错误报告 1 和 2
  2. 管理员 C 希望向用户 A 授予对 bug 1 的查看访问权限
  3. 管理员 C 希望向用户 B 授予错误 2 的查看访问权限
  4. 用户 A 不应该能够访问 bug2
  5. 用户 B 不应该能够访问 bug1

可以用Redmine来完成吗?我一直在摆弄这些设置,但我没有找到完成此用例的简单方法。

如果没有,是否有其他错误跟踪器允许这种用例?

permissions bug-tracking redmine user-permissions

4
推荐指数
1
解决办法
3734
查看次数

Redmine RailsBaseURI

我用这个方法安装了Redmine http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_using_Debian_package

ln -s /usr/share/redmine/public /var/www/redmine

chown -R www-data:www-data /var/www/redmine
echo "RailsBaseURI /redmine" > /etc/apache2/sites-available/redmine
a2ensite redmine
/etc/init.d/apache2 reload
/etc/init.d/apache2 restart
Run Code Online (Sandbox Code Playgroud)

但我得到以下消息重启apache2.

Syntax error on line 1 of /etc/apache2/sites-enabled/redmine:
Invalid command 'RailsBaseURI', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
 failed!
Run Code Online (Sandbox Code Playgroud)

最好的祝愿

linux redmine

4
推荐指数
2
解决办法
1万
查看次数

发送邮件时发生错误(SSL_connect返回= 1 errno = 0状态= SSLv2/v3读取服务器问候A:未知协议)

configuration.yml

development:
   email_delivery:
     delivery_method: :smtp
     smtp_settings:
      #tls: true
       #enable_starttls_auto: true
       openssl_verify_mode: 'none'
       address: "domain name" 
       port: 25
       authentication: :login
       domain: 'mail domail name'
       user_name: 'mail id'
       password: 'pwd'
Run Code Online (Sandbox Code Playgroud)

此代码用于发生以下错误

发送邮件时发生错误:

SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol


development:
email_delivery:
delivery_method: :smtp
smtp_settings:
tls: true
enable_starttls_auto: true
openssl_verify_mode: 'none'
address: "domain name" 
port: 587
authentication: :login
domain: 'mail domail name'
user_name: 'mail id'
password: 'pwd'
Run Code Online (Sandbox Code Playgroud)

此代码用于发生以下错误

发送邮件时发生错误:

No connection could be made because the target machine actively refused …

ruby-on-rails redmine

4
推荐指数
1
解决办法
6891
查看次数

我可以获得分配给项目的用户列表吗?

使用 python-redmine 模块,有没有办法列出通过 Redmine API 分配给项目的所有用户?

我发现我可以请求有关单个用户的信息,并且 API Key 用户可能仅分配给特定项目,并且只能查看项目中的其他用户。所以我可以执行以下操作,但效率非常低:

from redmine import Redmine
redmine = Redmine("https://myserver.net/", key="blahblah")

my_users = []
for x in range(1, 301):
    try:
        user = redmine.user.get(str(x))
        my_users.append(user.id)
    except:
        print "",
Run Code Online (Sandbox Code Playgroud)

上面的代码让我得到了我想要的东西,一个项目中的用户列表......但是太长了不实用。此外,用户 ID 可能高于我选择的任何范围。

更新:这是我的工作,谢谢@njzk2

my_users = []
project = redmine.project.get('myproject')
for membership in project.memberships:
    my_users.append(membership.user.id)
Run Code Online (Sandbox Code Playgroud)

python redmine python-redmine

4
推荐指数
1
解决办法
1754
查看次数

如何使用REST API登录Redmine

我需要使用REST API登录Redmine.是否可以使用REST API登录Redmine?我该怎么处理?

web-services redmine redmine-api

4
推荐指数
1
解决办法
1万
查看次数

在Redmine中查看项目的设置页面时出错

我们最近将Redmine从2.5.2升级到2.6,但是当我们访问项目的设置页面时,我们收到错误"Redmine 500 error".当我查看错误日志时,这就是我所看到的:

  Started GET "/projects/leaders-premier/settings" for xx.xx.xxx.xxx at 2014-12-09 16:21:58 -0500
  Processing by ProjectsController#settings as HTML
  Parameters: {"id"=>"leaders-premier"}
  Current user: ajankowski (id=3)
  Rendered projects/_form.html.erb (27.8ms)
  Rendered projects/_edit.html.erb (29.8ms)
  Rendered projects/settings/_modules.html.erb (4.7ms)
  Rendered projects/settings/_members.html.erb (77.6ms)
  Rendered common/_tabs.html.erb (117.8ms)
  Rendered projects/settings.html.erb within layouts/base (118.6ms)
    
  Completed 500 Internal Server Error in 268.9ms

    ActionView::Template::Error (The single-table inheritance mechanism failed to locate the subclass: 'GroupNonMember'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please …
Run Code Online (Sandbox Code Playgroud)

redmine

4
推荐指数
1
解决办法
658
查看次数

向 Redmine API 发送 POST 请求时如何修复“422 Unprocessable Entity”?

我正在尝试使用 redmine Rest api 创建一个 wiki 页面。身份验证已成功,但由于 422 错误,未创建 wiki 页面。

Redmine 文档说:“当尝试创建或更新属性参数无效或缺失的对象时,您将收到 422 Unprocessable Entity 响应。这意味着无法创建或更新该对象。”

但我似乎可以找出我哪里搞砸了。当我执行第二个请求“PUT REQUEST”时,问题出现了。

所以我们知道问题出在该部分的某个地方。

我的猜测是,它是文件路径或内容类型。

这就是我到目前为止所拥有的......

const wordDocument="C:\Users\adasani\Desktop\practice\RedmineApi/RedmineText.txt";

creatingWikiPage_Request(wordDocument);

function creatingWikiPage_Request(wordDocument) {

    axios({
        method: 'post',
        url: '<redmine_url>/uploads.json',
        headers: { 'Content-Type': 'application/octet-stream' },
        params: { 'key': '<api-key>' },
        data: wordDocument
    })
        .then(function (response) {
            console.log("succeeed--->  ");
            console.log(response.data.upload.token)
            axios({
                method: 'put',
                url: '<redmine_url>/projects/Testing/wiki/WikiTesting.json',
                headers: { 'Content-Type': 'application/octet-stream' },
                params: { 'key': '<api-key>' },
                data: {

                    "wiki_page": {
                        "text": "This is a wiki page with images, and …
Run Code Online (Sandbox Code Playgroud)

file-upload redmine redmine-api axios http-status-code-422

4
推荐指数
1
解决办法
9万
查看次数