2020-09-21-x
2020-09-21 todo-list
record-list
gitlab runner 又开始抽风, 问题还是那个问题,下面是可能的解决方案,留到晚上回去解决
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 Vyacheslav Napadovsky :satellite_orbital: @slavanap · 1 year ago I faced the same error. After short investigation, I've found that folder /path/to/folder.tmp created instead folder referenced in cd /path/to/folder I did sudo chown gitlab-runner:gitlab-runner -R /etc/gitlab-runner after installation. Runner was launched as systemd service under gitlab-runner user with this command: /usr/lib/gitlab-runner/gitlab-runner --debug "run" "--working-directory" "/home/gitlab-runner" "--config" "/etc/gitlab-runner/config.toml" "--service" "gitlab-runner" "--syslog" Fixed my issue with changing command line to /usr/lib/gitlab-runner/gitlab-runner --debug "run" "--working-directory" "/home/gitlab-runner" "--config" "/etc/gitlab-runner/config.toml" Here's how my modified /etc/systemd/system/gitlab-runner.service file looks like now. [Unit] Description=GitLab Runner After=syslog.target network.target ConditionFileIsExecutable=/usr/lib/gitlab-runner/gitlab-runner [Service] StartLimitInterval=5 StartLimitBurst=10 ExecStart=/usr/lib/gitlab-runner/gitlab-runner --debug "run" "--working-directory" "/home/gitlab-runner" "--config" "/etc/gitlab-runner/config.toml" User=gitlab-runner Group=gitlab-runner WorkingDirectory=/home/gitlab-runner StandardInput=tty-force StandardOutput=inherit StandardError=inherit Restart=always RestartSec=120 [Install] WantedBy=multi-user.target gitlab-runner doesn't work as user-limited systemd service without tty-force. Edited by Vyacheslav Napadovsky 1 year ago
我执行run 命令
1 gitlab-runner run --config /etc/gitlab-runner/config.toml --working-directory /root/gitlab-runner --user root > /root/gitlab-runner/runner.log 2>&1 &
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 @Test @Transactional @Rollback(false) public void testCascadeAdd () { Customer customer = new Customer (); customer.setCustName("百度1" ); LinkMan linkMan = new LinkMan (); linkMan.setLkmName("小李1" ); linkMan.setCustomer(customer); customer.getLinkMans().add(linkMan); customerDao.save(customer); }
reference-site-list GitLab Runner
Linux Shell
JPA 外键
本文标题:2020-09-21-x
本文作者:Xplorist
创建时间:2020-09-21 13:30:13
本文链接:https://xplorist.tech/2020/09/21/53bc2892170e/
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
$tools-item-width = 2.2rem
$tools-item-font-size = 1.1rem
$tools-item-border-radius = 0.1rem
.side-tools-container {
position relative
.tools-item {
width $tools-item-width
height $tools-item-width
margin-bottom 0.2rem
color var(--default-text-color)
font-size $tools-item-font-size
background var(--background-color)
border-right none
border-radius $tools-item-border-radius
box-shadow 0.1rem 0.1rem 0.2rem var(--shadow-color)
cursor pointer
i {
color var(--default-text-color)
}
&:hover {
color var(--background-color)
background var(--primary-color)
box-shadow 0.2rem 0.2rem 0.4rem var(--shadow-color)
i {
color var(--background-color)
}
}
+keep-tablet() {
width $tools-item-width * 0.9
height $tools-item-width * 0.9
margin-bottom 0.2rem
font-size $tools-item-font-size * 0.9
}
&.rss {
a {
width 100%
height 100%
border-radius $tools-item-border-radius
&:hover {
color var(--background-color)
background var(--primary-color)
box-shadow 0.2rem 0.2rem 0.4rem var(--shadow-color)
}
}
}
}
.side-tools-list {
transform translateX(100%)
opacity 0
transition-t("transform, opacity", "0, 0", "0.2, 0.2", "linear, linear")
.tool-expand-width {
+keep-tablet() {
display none
}
}
&.show {
transform translateX(0)
opacity 1
}
}
.exposed-tools-list {
if (hexo-config('style.scroll.percent.enable') == true) {
.tool-scroll-to-top {
display none
&.show {
display flex
}
&:hover {
.percent {
display none
}
.arrow-up {
display flex
}
}
.arrow-up {
display none
}
.percent {
display flex
font-size 1rem
}
}
}
}
}