variable substitution not happening correctly - automount
I've been using the script from centos wiki (method 5) for months now. A few weeks ago it stopped working, looking at the logs it seems that the variable substitution is not taking place.
Here's a what the script tells you to do:
[/etc/auto.master] -- append
/mnt/smb /etc/auto.smb.top --timeout=600 --ghost
[/etc/auto.smb.top] -- new file
* -fstype=autofs,-Dhost=& file:/etc/auto.smb.sub
[/etc/auto.smb.sub] -- new file
* -fstype=cifs,rw,credentials=/root/mycreds.txt,uid=500,gid=100 ://${host}/&
[/root/mycreds.txt] -- new file
usenrame=username
password=<secret password>
Then when ls'ing somewhere that should automount, this is what the output is in journalctl:
Oct 16 10:47:47 test.example.com automount[31764]: handle_packet: type = 3
Oct 16 10:47:47 test.example.com automount[31764]: handle_packet_missing_indirect: token 436, name 172.16.1.105, request pid 31794
Oct 16 10:47:47 test.example.com automount[31764]: attempting to mount entry /mnt/smb/172.16.1.105
Oct 16 10:47:47 test.example.com automount[31764]: lookup_mount: lookup(file): looking up 172.16.1.105
Oct 16 10:47:47 test.example.com automount[31764]: lookup_mount: lookup(file): 172.16.1.105 -> -fstype=autofs,-Dhost=& file:/etc/auto.smb.sub
Oct 16 10:47:47 test.example.com automount[31764]: parse_mount: parse(sun): expanded entry: -fstype=autofs,-Dhost=172.16.1.105 file:/etc/auto.smb.sub
Oct 16 10:47:47 test.example.com automount[31764]: parse_mount: parse(sun): gathered options: fstype=autofs,-Dhost=172.16.1.105
Oct 16 10:47:47 test.example.com automount[31764]: parse_mount: parse(sun): dequote("file:/etc/auto.smb.sub") -> file:/etc/auto.smb.sub
Oct 16 10:47:47 test.example.com automount[31764]: parse_mount: parse(sun): core of entry: options=fstype=autofs,-Dhost=172.16.1.105, loc=file:/etc/auto.smb.sub
Oct 16 10:47:47 test.example.com automount[31764]: sun_mount: parse(sun): mounting root /mnt/smb, mountpoint 172.16.1.105, what file:/etc/auto.smb.sub, fstype autofs, options -Dhost=172.16.1.105
Oct 16 10:47:47 test.example.com automount[31764]: do_mount: file:/etc/auto.smb.sub /mnt/smb/172.16.1.105 type autofs options -Dhost=172.16.1.105 using module autofs
Oct 16 10:47:47 test.example.com automount[31764]: mount_mount: mount(autofs): mountpoint=/mnt/smb/172.16.1.105 what=file:/etc/auto.smb.sub options=-Dhost=172.16.1.105
Oct 16 10:47:47 test.example.com automount[31764]: automount_path_to_fifo: fifo name /run/autofs.fifo-mnt-smb-172.16.1.105
Oct 16 10:47:47 test.example.com automount[31764]: lookup_nss_read_map: reading map file /etc/auto.smb.sub
Oct 16 10:47:47 test.example.com automount[31764]: do_init: parse(sun): init gathered global options: (null)
Oct 16 10:47:47 test.example.com automount[31764]: mounted indirect on /mnt/smb/172.16.1.105 with timeout 600, freq 150 seconds
Oct 16 10:47:47 test.example.com automount[31764]: st_ready: st_ready(): state = 0 path /mnt/smb/172.16.1.105
Oct 16 10:47:47 test.example.com automount[31764]: ghosting enabled
Oct 16 10:47:47 test.example.com automount[31764]: dev_ioctl_send_ready: token = 436
Oct 16 10:47:47 test.example.com automount[31764]: mounted /mnt/smb/172.16.1.105
Oct 16 10:47:47 test.example.com automount[31764]: handle_packet: type = 3
Oct 16 10:47:47 test.example.com automount[31764]: handle_packet_missing_indirect: token 437, name Super Secret Dir, request pid 31794
Oct 16 10:47:47 test.example.com automount[31764]: attempting to mount entry /mnt/smb/172.16.1.105/Super Secret Dir
Oct 16 10:47:47 test.example.com automount[31764]: lookup_mount: lookup(file): looking up Super Secret Dir
Oct 16 10:47:47 test.example.com automount[31764]: lookup_mount: lookup(file): Super Secret Dir -> -fstype=cifs,rw,credentials=/root/mycreds.txt,uid=500,gid=100 ://${host}/&
Oct 16 10:47:47 test.example.com automount[31764]: parse_mount: parse(sun): expanded entry: -fstype=cifs,rw,credentials=/root/mycreds.txt,uid=500,gid=100 ://test/Quickbooks\ Company\ Files
Oct 16 10:47:47 test.example.com automount[31764]: parse_mount: parse(sun): gathered options: fstype=cifs,rw,credentials=/root/mycreds.txt,uid=500,gid=100
Oct 16 10:47:47 test.example.com automount[31764]: parse_mount: parse(sun): dequote("://test/Quickbooks\ Company\ Files") -> ://test/Super Secret Dir
Oct 16 10:47:47 test.example.com automount[31764]: parse_mount: parse(sun): core of entry: options=fstype=cifs,rw,credentials=/root/mycreds.txt,uid=500,gid=100, loc=://test/Super Secret Dir
Oct 16 10:47:47 test.example.com automount[31764]: sun_mount: parse(sun): mounting root /mnt/smb/172.16.1.105, mountpoint Super Secret Dir, what //test/Super Secret Dir, fstype cifs, options rw,credentials=/root/mycreds.txt,uid=500,gid=100
Oct 16 10:47:47 test.example.com automount[31764]: do_mount: //test/Super Secret Dir /mnt/smb/172.16.1.105/Super Secret Dir type cifs options rw,credentials=/root/mycreds.txt,uid=500,gid=100 using module generic
Oct 16 10:47:47 test.example.com automount[31764]: mount_mount: mount(generic): calling mkdir_path /mnt/smb/172.16.1.105/Super Secret Dir
Oct 16 10:47:47 test.example.com automount[31764]: mount_mount: mount(generic): calling mount -t cifs -s -o rw,credentials=/root/mycreds.txt,uid=500,gid=100 //test/Super Secret Dir /mnt/smb/172.16.1.105/Super Secret Dir
Oct 16 10:47:47 test.example.com automount[31764]: spawn_mount: mtab link detected, passing -n to mount
Oct 16 10:47:47 test.example.com automount[31764]: >> Unable to find suitable address.
Oct 16 10:47:47 test.example.com automount[31764]: mount(generic): failed to mount //test/Super Secret Dir (type cifs) on /mnt/smb/172.16.1.105/Super Secret Dir
Oct 16 10:47:47 test.example.com automount[31764]: dev_ioctl_send_fail: token = 437
Oct 16 10:47:47 test.example.com automount[31764]: failed to mount /mnt/smb/172.16.1.105/Super Secret Dir
Oct 16 10:47:47 test.example.com automount[31764]: handle_packet: type = 3
Oct 16 10:47:47 test.example.com automount[31764]: handle_packet_missing_indirect: token 438, name Super Secret Dir, request pid 31794
Oct 16 10:47:47 test.example.com automount[31764]: dev_ioctl_send_fail: token = 438
log from /var/log/message:
Oct 16 11:02:18 test automount[31764]: handle_packet: type = 3
Oct 16 11:02:18 test automount[31764]: handle_packet_missing_indirect: token 446, name Quickbooks Company Files, request pid 2035
Oct 16 11:02:18 test automount[31764]: attempting to mount entry /mnt/smb/172.16.1.105/Quickbooks Company Files
Oct 16 11:02:18 test automount[31764]: lookup_mount: lookup(file): looking up Quickbooks Company Files
Oct 16 11:02:18 test automount[31764]: lookup_mount: lookup(file): Quickbooks Company Files -> -fstype=cifs,rw,credentials=/root/mycreds.txt,uid=500,gid=100 ://${host}/&
Oct 16 11:02:18 test automount[31764]: parse_mount: parse(sun): expanded entry: -fstype=cifs,rw,credentials=/root/mycreds.txt,uid=500,gid=100 ://test/Quickbooks\ Company\ Files
Oct 16 11:02:18 test automount[31764]: parse_mount: parse(sun): gathered options: fstype=cifs,rw,credentials=/root/mycreds.txt,uid=500,gid=100
Oct 16 11:02:18 test automount[31764]: parse_mount: parse(sun): dequote("://test/Quickbooks\ Company\ Files") -> ://test/Quickbooks Company Files
Oct 16 11:02:18 test automount[31764]: parse_mount: parse(sun): core of entry: options=fstype=cifs,rw,credentials=/root/mycreds.txt,uid=500,gid=100, loc=://test/Quickbooks Company Files
Oct 16 11:02:18 test automount[31764]: sun_mount: parse(sun): mounting root /mnt/smb/172.16.1.105, mountpoint Quickbooks Company Files, what //test/Quickbooks Company Files, fstype cifs, options rw,credentials=/root/mycreds.txt,uid=500,gid=100
Oct 16 11:02:18 test automount[31764]: do_mount: //test/Quickbooks Company Files /mnt/smb/172.16.1.105/Quickbooks Company Files type cifs options rw,credentials=/root/mycreds.txt,uid=500,gid=100 using module generic
Oct 16 11:02:18 test automount[31764]: mount_mount: mount(generic): calling mkdir_path /mnt/smb/172.16.1.105/Quickbooks Company Files
Oct 16 11:02:18 test automount[31764]: mount_mount: mount(generic): calling mount -t cifs -s -o rw,credentials=/root/mycreds.txt,uid=500,gid=100 //test/Quickbooks Company Files /mnt/smb/172.16.1.105/Quickbooks Company Files
Oct 16 11:02:18 test automount[31764]: spawn_mount: mtab link detected, passing -n to mount
Oct 16 11:02:18 test automount[31764]: >> Unable to find suitable address.
Oct 16 11:02:18 test automount[31764]: mount(generic): failed to mount //test/Quickbooks Company Files (type cifs) on /mnt/smb/172.16.1.105/Quickbooks Company Files
Oct 16 11:02:18 test automount[31764]: dev_ioctl_send_fail: token = 446
Oct 16 11:02:18 test automount[31764]: failed to mount /mnt/smb/172.16.1.105/Quickbooks Company Files
Oct 16 11:02:18 test automount[31764]: handle_packet: type = 3
Oct 16 11:02:18 test automount[31764]: handle_packet_missing_indirect: token 447, name Quickbooks Company Files, request pid 2035
Oct 16 11:02:18 test automount[31764]: dev_ioctl_send_fail: token = 447
The first thing that looks 'weird' is it's only using the sub domain of the host. But that's not really important in this situation.
So if I change the variable name to something like TARGET the substitution is blank giving :///Quickbooks\ Company\ Files
Is that a typo on usenrame? Did you specify vers=1.0 or perhaps vers=3.0 to the mount command? I posted a slightly different issue but perhaps you may find your answer there.
Related
Kafka broker shut down even though the log dirs are present
When I saw this error message: ERROR Shutdown broker because all log dirs in /tmp/kafka-logs have failed (kafka.log.LogManager) The first thought is "well the /tmp directory probably got cleared out by the O/S (linux) - so I should update the kafka config to point to something permanent. However the directory is present and has not been wiped: ll /tmp/kafka-logs/ total 20 drwxrwxr-x 2 ec2-user ec2-user 38 Apr 7 16:56 __consumer_offsets-0 drwxrwxr-x 2 ec2-user ec2-user 38 Apr 7 16:56 __consumer_offsets-7 drwxrwxr-x 2 ec2-user ec2-user 38 Apr 7 16:56 __consumer_offsets-42 .. drwxrwxr-x 2 ec2-user ec2-user 38 Apr 7 16:56 __consumer_offsets-32 drwxrwxr-x 2 ec2-user ec2-user 141 Apr 12 02:49 flights_raw-0 drwxrwxr-x 2 ec2-user ec2-user 178 Apr 12 08:25 air2008-0 drwxrwxr-x 2 ec2-user ec2-user 141 Apr 12 13:38 testtopic-0 -rw-rw-r-- 1 ec2-user ec2-user 1244 Apr 17 22:29 recovery-point-offset-checkpoint -rw-rw-r-- 1 ec2-user ec2-user 4 Apr 17 22:29 log-start-offset-checkpoint -rw-rw-r-- 1 ec2-user ec2-user 1248 Apr 17 22:30 replication-offset-checkpoint So then what does this actually mean, why is it happening and what should be done to correct/avoid the error?
In related question best answer suggests to delete log dir both for Kafka /tmp/kafka-logs and Zookeper /tmp/zookeeper. Probably it's because of Kafka issue which was resolved in August 2018. Hope this will help.
Streamsets Service does not start any more
I just upgraded my MapR Cluster and I am trying to start Streamsets. However I get the following Error: Exception in thread "main" java.lang.ExceptionInInitializerError: Expected exactly 1 stage lib jar but found 0 with name streamsets-datacollector-mapr_6_0-mep4-lib Jun 12 09:48:56 BGDTEST5 streamsets[24543]: at com.streamsets.pipeline.SDCClassLoader.bringStageAndProtoLibsToFront(SDCClassLoader.java:186) Jun 12 09:48:56 BGDTEST5 streamsets[24543]: at com.streamsets.pipeline.SDCClassLoader.getOrderedURLsForClassLoader(SDCClassLoader.java:404) Jun 12 09:48:56 BGDTEST5 streamsets[24543]: at com.streamsets.pipeline.SDCClassLoader.(SDCClassLoader.java:119) Jun 12 09:48:56 BGDTEST5 streamsets[24543]: at com.streamsets.pipeline.SDCClassLoader.getStageClassLoader(SDCClassLoader.java:389) Jun 12 09:48:56 BGDTEST5 streamsets[24543]: at com.streamsets.pipeline.SDCClassLoader.getStageClassLoader(SDCClassLoader.java:383) Jun 12 09:48:56 BGDTEST5 streamsets[24543]: at com.streamsets.pipeline.BootstrapMain.main(BootstrapMain.java:291) Jun 12 09:48:56 BGDTEST5 systemd[1]: sdc.service: main process exited, code=exited, status=1/FAILURE Jun 12 09:48:56 BGDTEST5 systemd[1]: Unit sdc.service entered failed state. Jun 12 09:48:56 BGDTEST5 systemd[1]: sdc.service failed. I can see the stage-lib in question in the streamsets-libs directory. This used to work seamlessly before. What am I doing wrong?
XAMPP Apache won't start after i added phpPgAdmin alias
I want to install phpPgAdmin with XAMPP on Windows. After i did all the steps, my Apache module on XAMPP won't start. I got this error log [Mon Nov 14 16:36:16.661538 2016] [ssl:warn] [pid 10612:tid 504] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Mon Nov 14 16:36:16.824335 2016] [core:warn] [pid 10612:tid 504] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Mon Nov 14 16:36:16.924133 2016] [ssl:warn] [pid 10612:tid 504] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Mon Nov 14 16:36:17.724645 2016] [mpm_winnt:notice] [pid 10612:tid 504] AH00455: Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/7.0.9 configured -- resuming normal operations [Mon Nov 14 16:36:17.724645 2016] [mpm_winnt:notice] [pid 10612:tid 504] AH00456: Apache Lounge VC14 Server built: Jul 1 2016 11:09:37 [Mon Nov 14 16:36:17.724645 2016] [core:notice] [pid 10612:tid 504] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' [Mon Nov 14 16:36:17.724645 2016] [mpm_winnt:notice] [pid 10612:tid 504] AH00418: Parent: Created child process 7288 [Mon Nov 14 16:36:18.611254 2016] [ssl:warn] [pid 7288:tid 584] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Mon Nov 14 16:36:18.796715 2016] [ssl:warn] [pid 7288:tid 584] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Mon Nov 14 16:36:18.850157 2016] [mpm_winnt:notice] [pid 7288:tid 584] AH00354: Child: Starting 150 worker threads. [Mon Nov 14 16:36:22.814454 2016] [mpm_winnt:crit] [pid 7288:tid 584] AH02538: Child: Parent process exited abruptly. Child process is ending I tried to remove the phpPgAdmin alias from httpd-xamp.conf, and it worked again, but my phpPgAdmin won't work (obviously). I've uncommented the php_pgsql.dll and php_pdo_pgsql.dll extension at php.ini extension=php_pdo_sqlite.dll extension=php_pgsql.dll This is my configuration on config.inc.php from phpPgAdmin folder $conf['servers'][0]['host'] = 'localhost'; $conf['servers'][0]['pg_dump_path'] = 'C:\xampp\pgsql\9.3\bin\pg_dump.exe'; $conf['servers'][0]['pg_dumpall_path'] = 'C:\xampp\pgsql\9.3\bin\pg_dumpall.exe'; $conf['extra_login_security'] = false; This is my alias configuration on httpd-xampp.conf Alias /phppgadmin “C:/xampp/phpPgAdmin/” <Directory “C:/xampp/phpPgAdmin”> AllowOverride AuthConfig Order allow,deny Allow from all </Directory> I'm new with XAMPP and PHP, so i don't know what's the problem. Anyone can help?
I don't know whether my answer is not too late, but you just need to change curly braces “” in your paths to regular ones "", like this "C:/xampp/phppgadmin/"
WAL-E: Cannot restart postgresql after backup-fetch
This is on Ubuntu 14.04 LTS EDIT: WAL-E installed using pip, with secret keys managed by envdir, according to the instructions https://gist.github.com/elithrar/8682235 and https://github.com/wal-e/wal-e#dependencies. I am trying to restore a database using WAL-E, and everything appears to go well initially, as I have Postgres installed and running, and can easily create or restore a database and access it locally and remotely via pgadmin. Where it goes bad is when I try to perform a restore from an S3 backup using wal-e fetch-backup. It appears to go well up until the point of starting the postgres. There are a number of errors that come up, appearing to be either missing packages or permissions issues, like the following: * Starting PostgreSQL 9.3 database server * The PostgreSQL server failed to start. Please check the log output: 2015-07-11 00:41:11 EDT LOG: database system was interrupted; last known up at 2015-06-30 05:00:02 EDT 2015-07-11 00:41:11 EDT LOG: starting archive recovery Traceback (most recent call last): File "/usr/local/bin/wal-e", line 5, in <module> from pkg_resources import load_entry_point File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3084, in <module> #_call_aside File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3070, in _call_aside f(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3097, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 651, in _build_master ws.require(__requires__) File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 952, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 847, in resolve new_requirements = dist.requires(req.extras)[::-1] File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2602, in requires dm = self._dep_map File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2803, in _dep_map self.__dep_map = self._compute_dependencies() File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2825, in _compute_dependencies for req in self._parsed_pkg_info.get_all('Requires-Dist') or []: File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2794, in _parsed_pkg_info metadata = self.get_metadata(self.PKG_INFO) File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1617, in get_metadata return self._get(self._fn(self.egg_info, name)) File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1728, in _get with open(path, 'rb') as stream: IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/six-1.9.0.dist-info/METADATA' 2015-07-11 00:41:11 EDT LOG: invalid checkpoint record 2015-07-11 00:41:11 EDT FATAL: could not locate required checkpoint record 2015-07-11 00:41:11 EDT HINT: If you are not restoring from a backup, try removing the file "/var/lib/postgresql/9.3/main/backup_label". 2015-07-11 00:41:11 EDT LOG: startup process (PID 1693) exited with exit code 1 2015-07-11 00:41:11 EDT LOG: aborting startup due to startup process failure I had several of these and was able to resolve them by changing the group and modifying the permissions on the noted files to match others in the directory, but I suspect the problem has more to do with how and/or where these packages were installed. After resolving the above issue, postgres still fails to start up, returning the following: * Starting PostgreSQL 9.3 database server * The PostgreSQL server failed to start. Please check the log output: 2015-07-11 00:30:04 EDT LOG: database system was interrupted; last known up at 2015-06-30 05:00:02 EDT 2015-07-11 00:30:04 EDT LOG: starting archive recovery Traceback (most recent call last): File "/usr/local/bin/wal-e", line 5, in <module> from pkg_resources import load_entry_point File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3084, in <module> #_call_aside File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3070, in _call_aside f(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3097, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 651, in _build_master ws.require(__requires__) File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 952, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 839, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'wal-e==0.8.1' distribution was not found and is required by the application 2015-07-11 00:30:04 EDT LOG: invalid checkpoint record 2015-07-11 00:30:04 EDT FATAL: could not locate required checkpoint record 2015-07-11 00:30:04 EDT HINT: If you are not restoring from a backup, try removing the file "/var/lib/postgresql/9.3/main/backup_label". 2015-07-11 00:30:04 EDT LOG: startup process (PID 1495) exited with exit code 1 2015-07-11 00:30:04 EDT LOG: aborting startup due to startup process failure It is complaining about the 'wal-e==0.8.1' distribution was not found..., but it is clearly installed and executable: ls -l /usr/local/lib/python2.7/dist-packages total 608 drwxr-sr-x 2 root staff 4096 Jul 10 20:14 argparse-1.3.0.dist-info -rw-r--r-- 1 root staff 88400 Jul 10 20:14 argparse.py -rw-r--r-- 1 root staff 65659 Jul 10 20:14 argparse.pyc drwxr-sr-x 6 root staff 4096 Jul 9 22:36 azure drwxr-sr-x 2 root staff 4096 Jul 9 22:36 azure-0.11.1.egg-info drwxr-sr-x 5 root staff 4096 Jul 9 22:36 babel drwxr-sr-x 2 root staff 4096 Jul 9 22:36 Babel-1.3.egg-info drwxr-sr-x 57 root staff 4096 Jul 9 22:36 boto drwxr-sr-x 2 root staff 4096 Jul 9 22:36 boto-2.38.0.dist-info drwxr-sr-x 3 root staff 4096 Jul 9 22:36 concurrent drwxr-sr-x 3 root staff 4096 Jul 9 22:36 dateutil drwxr-sr-x 3 root staff 4096 Jul 9 22:36 debtcollector drwxr-sr-x 2 root staff 4096 Jul 9 22:36 debtcollector-0.5.0.dist-info -rw-r--r-- 1 root staff 207 Jul 10 20:10 easy-install.pth -rw-r--r-- 1 root staff 126 Jul 10 20:33 easy_install.py -rw-r--r-- 1 root staff 315 Jul 10 20:33 easy_install.pyc drwxr-sr-x 2 root staff 4096 Jul 9 22:36 futures-3.0.3.dist-info drwxr-sr-x 2 root staff 4096 Jul 9 22:36 gevent drwxr-sr-x 2 root staff 4096 Jul 9 22:36 gevent-1.0.2.egg-info drwxr-sr-x 2 root staff 4096 Jul 9 22:36 greenlet-0.4.7.egg-info -rwxr-xr-x 1 root staff 82869 Jul 9 22:36 greenlet.so drwxr-sr-x 2 root staff 4096 Jul 9 22:36 iso8601 drwxr-sr-x 2 root staff 4096 Jul 9 22:36 iso8601-0.1.10.egg-info drwxr-sr-x 15 root staff 4096 Jul 9 22:36 keystoneclient drwxr-sr-x 2 root staff 4096 Jul 10 20:33 _markerlib drwxr-sr-x 2 root staff 4096 Jul 9 22:36 msgpack drwxr-sr-x 2 root staff 4096 Jul 9 22:36 msgpack_python-0.4.6.egg-info drwxr-sr-x 5 root staff 4096 Jul 9 22:36 netaddr drwxr-sr-x 2 root staff 4096 Jul 9 22:36 netaddr-0.7.15.dist-info drwxr-sr-x 2 root staff 4096 Jul 9 22:36 netifaces-0.10.4.egg-info -rwxr-xr-x 1 root staff 58386 Jul 9 22:36 netifaces.so drwxr-sr-x 4 root staff 4096 Jul 9 22:36 oslo drwxr-sr-x 3 root staff 4096 Jul 9 22:36 oslo_config drwxr-sr-x 2 root staff 4096 Jul 9 22:36 oslo.config-1.14.0.dist-info -rw-r--r-- 1 root root 299 Jul 9 22:35 oslo.config-1.14.0-py2.7-nspkg.pth drwxr-sr-x 3 root staff 4096 Jul 9 22:36 oslo_i18n drwxr-sr-x 2 root staff 4096 Jul 9 22:36 oslo.i18n-2.1.0.dist-info drwxr-sr-x 3 root staff 4096 Jul 9 22:36 oslo_serialization drwxr-sr-x 2 root staff 4096 Jul 9 22:36 oslo.serialization-1.7.0.dist-info drwxr-sr-x 3 root staff 4096 Jul 9 22:36 oslo_utils drwxr-sr-x 2 root staff 4096 Jul 9 22:36 oslo.utils-1.8.0.dist-info -rw-r--r-- 1 root root 299 Jul 9 22:35 oslo.utils-1.8.0-py2.7-nspkg.pth drwxr-sr-x 5 root staff 4096 Jul 10 20:14 pbr drwxr-sr-x 2 root staff 4096 Jul 10 20:14 pbr-1.3.0.dist-info drwxr-sr-x 4 root staff 4096 Jul 10 20:10 pip-7.1.0-py2.7.egg drwxr-sr-x 3 root staff 4096 Jul 10 20:33 pkg_resources drwxr-sr-x 2 root staff 4096 Jul 9 22:36 python_dateutil-2.4.2.dist-info drwxr-sr-x 2 root staff 4096 Jul 9 22:36 python_keystoneclient-1.6.0.dist-info drwxr-sr-x 2 root staff 4096 Jul 9 22:36 python_swiftclient-2.4.0.dist-info drwxr-sr-x 3 root staff 4096 Jul 9 22:36 pytz drwxr-sr-x 2 root staff 4096 Jul 9 22:36 pytz-2015.4.dist-info drwxr-sr-- 3 root staff 4096 Jul 9 23:25 requests drwxr-sr-- 2 root staff 4096 Jul 9 23:25 requests-2.7.0.dist-info drwxr-sr-x 3 root staff 4096 Jul 10 20:33 setuptools drwxr-sr-x 2 root staff 4096 Jul 10 20:33 setuptools-18.0.1.dist-info drwxr-sr-x 3 root staff 4096 Jul 9 22:36 simplejson drwxr-sr-x 2 root staff 4096 Jul 9 22:36 simplejson-3.7.3.egg-info drwxr-sr-- 2 root staff 4096 Jul 9 23:26 six-1.9.0.dist-info -rw-r--r-- 1 root root 29664 Jul 9 23:26 six.py -rw-r--r-- 1 root root 29006 Jul 9 23:26 six.pyc drwxr-sr-x 4 root staff 4096 Jul 9 22:36 stevedore drwxr-sr-x 2 root staff 4096 Jul 9 22:36 stevedore-1.6.0.dist-info drwxr-sr-x 2 root staff 4096 Jul 9 22:36 swiftclient drwxr-sr-x 7 root staff 4096 Jul 9 22:35 wal_e drwxr-sr-x 2 root staff 4096 Jul 9 22:35 wal_e-0.8.1.egg-info drwxr-sr-x 2 root staff 4096 Jul 9 22:36 wrapt drwxr-sr-x 2 root staff 4096 Jul 9 22:36 wrapt-1.10.5.egg-info I have done quite a bit of searching, but haven't found anything that helps. Any suggestions or points in the right direction are appreciated. Additionally, it would be of great interest to solve this to ensure that my primary installation will behave in the event that a restoration is necessary. Backing up is pointless if I can't restore it.
I am not entirely sure what resolved the The 'wal-e==0.8.1' distribution was not found errro, but on rebooting I never saw that again. Aside from that, fixing this was rather straightforward. The executable bit on a number of python distributions was not set. Chowning these fixed the error: chmod o+x /usr/local/lib/python2.7/dist-packages/requests-2.7.0.dist-info/ chmod o+x /usr/local/lib/python2.7/dist-packages/requests ...
Reason backup_label is not created properly Run the below command in your Master su postgres psql -c "select pg_start_backup('initial_backup');" rsync -cva --inplace --exclude=pg_xlog /var/lib/postgresql/9.1/main/ slave_IP_address:/var/lib/postgresql/9.1/main/ psql -c "select pg_stop_backup();" cd /var/lib/postgresql/9.1/main create file name recovery.conf add the below lines standby_mode = 'on' primary_conninfo = 'host=master_IP_address port=5432 user=rep password=yourpassword' trigger_file = '/tmp/postgresql.trigger.5432' service postgresql restart
Postfix - Mail not delivering except from root
When I try to send an email as root using the following command, the email delivers successfully: echo "Test" | sendmail -r user#mydomain.com myemail#gmail.com But when I send an email, using the same command, as a different user, it does not deliver the email even though it's successful in the logs. Log as root: Jun 16 11:28:53 mydomain postfix/pickup[2163]: 34AF541D1C: uid=0 from=<user#mydomain.com> Jun 16 11:28:53 mydomain postfix/cleanup[3168]: 34AF541D1C: message-id=<20140616112853.34AF541D1C#mydomain.com> Jun 16 11:28:53 mydomain postfix/qmgr[2164]: 34AF541D1C: from=<user#mydomain.com>, size=247, nrcpt=1 (queue active) Jun 16 11:29:06 mydomain postfix/smtp[3170]: 34AF541D1C: to=<myemail#gmail.com>, relay=spmail-sms-gw.cloudmark.com[66.151.128.162]:25, delay=13, delays=0.03/0.01/7.2/6.2, dsn=2.0.0, status=sent (250 2.0.0 EzUt1o001190bAS01zV09C mail accepted for delivery) Jun 16 11:29:06 mydomain postfix/qmgr[2164]: 34AF541D1C: removed Log as another user: Jun 16 11:29:53 mydomain postfix/pickup[2163]: 34AF541D1C: uid=1000 from=<user#mydomain.com> Jun 16 11:29:53 mydomain postfix/cleanup[3168]: 34AF541D1C: message-id=<20140616112953.34AF541D1C#mydomain.com> Jun 16 11:29:53 mydomain postfix/qmgr[2164]: 34AF541D1C: from=<user#mydomain.com>, size=247, nrcpt=1 (queue active) Jun 16 11:30:06 mydomain postfix/smtp[3170]: 34AF541D1C: to=<myemail#gmail.com>, relay=spmail-sms-gw.cloudmark.com[66.151.128.162]:25, delay=13, delays=0.03/0.01/7.2/6.2, dsn=2.0.0, status=sent (250 2.0.0 EzUt1o0014340bAS01zV09C mail accepted for delivery) Jun 16 11:30:06 mydomain postfix/qmgr[2164]: 34AF541D1C: removed