pt-stalk fails to start if $HOME environment variable is not set

Bug #1266869 reported by Valery Panov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
Low
Frank Cizmich

Bug Description

pt-stalk fails to start if $HOME environment variable is not set:

[root@test01 ~]# unset HOME
[root@test01 root]# pt-stalk --daemonize --dest /mnt/data/pt-stalk --threshold 70
/usr/bin/pt-stalk: line 257: HOME: unbound variable

This makes sense e.g. when run from the init script.
The issue can be easily workarounded by exporting HOME.

BTW it would also be good to have init script for the pt-stalk.
I've attached my version which is designed to work on CentOS, feel free to use it if you need it.

Tags: pt-stalk

Related branches

Revision history for this message
Valery Panov (valery-panov) wrote :
Revision history for this message
Jericho Rivera (jericho-rivera) wrote :

Confirmed on a new centos 6.4 instance.

[root@localhost vagrant]# unset HOME
[root@localhost vagrant]# pt-stalk --daemonize --dest /mnt/data/pt-stalk --threshold 70
/usr/bin/pt-stalk: line 257: HOME: unbound variable
[root@localhost vagrant]# rpm -qa|grep percona-toolkit
percona-toolkit-2.2.6-1.noarch

@Valery - thanks for sharing your pt-stalk init script

Changed in percona-toolkit:
status: New → Confirmed
tags: added: pt-stalk
Changed in percona-toolkit:
status: Confirmed → In Progress
importance: Undecided → Low
assignee: nobody → Frank Cizmich (frank-cizmich)
milestone: none → 2.2.13
Changed in percona-toolkit:
status: In Progress → Fix Committed
Changed in percona-toolkit:
status: Fix Committed → Fix Released
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-805

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.