DevHeads.net

Postings by lejeczek

owncloud - external storage - smb

hi fellas

does anybody use by a chance external smb storage in current
owncloud version?
If yes does it work for you?

I have, otherwise fully OK samba, but my owncload cannot get
to it.
On my setup(pretty default) users log into owncloud with an
ldap backend, the very same samba uses, yet in samba logs I see:

....
2017/10/05 15:41:00.479585,  5]
.../source3/auth/server_info_sam.c:122(make_server_info_sam)
  make_server_info_sam: made server info for user
cloudadmin -> cloudadmin
[2017/10/05 15:41:00.479709,  3]
.../source3/auth/auth.c:249(auth_check_ntlm_password)
  check_ntlm_passw

fetch to and forward on one server - how?

hi fellas

Before I start tampering with stuff I thought - better ask
experts.

Having one postfix box which for local users forward to a
remote/external box(probably postfix too) - can I have that
same my postfix box fetch from that external server?
Would I have to use fetchmail(or similar) or postfix could
do it itself?

What I'm hoping is that some expert could say if there is a
potential to cause a disaster like some loop where fetchmail
or postfix will be retrieving from remote and also, by
misconfiguration, by misuse will be forwarding that
retrieved emails again to external serv

exclude a host(s) and allow it without authentication

hi everyone

I'm fiddling with settings but thought, someone already must
know - how to achieve above, if possible at all?

many thanks,
L.

have udev to ignore/hide a scsi disk - but how?

hi everyone

I've been playing and trying to tell udev to ignore and not
create symlinks in /dev but I fail.
Hoping this is the one: ENV{ID_SERIAL}== I've tried:
ENV{SYSTEMD_READY}:="0"
OPTIONS+="last_rule"
even
ENV{UDISKS_IGNORE}="1"

but udev tests would still show: ACTION=add and symlinks
created.

Would share an advice?
many thanks,
L.

that ever puzzling special chars escaping + rdiff-backup

hi everyone

a good basher around here?

I try in a script:

_rdiffBack="rdiff-backup -v5 --tempdir /tmp/ --no-eas
--exclude-other-filesystems --exclude-symbolic-links"
_rdffiExclude="--exclude '**/~*' --exclude '**.tmp'
--exclude-regexp '(.glusterfs|.trashcan|temp)'"
_execCom=${!2}
_sourceDir=${1}
_backupTo=${3}

__backMeUp() {
for _sourceDir in ${_sourceDirs[@]}; do
echo \$ ${_execCom} ${_rdffiExclude} ${_sourceDir}/
${_backupTo} \> ${_logFile} | ${_copyToLog}
${_execCom} ${_rdffiExclude} ${_sourceDir}/
${_backupTo} > ${_logFile} 2>&1
done
}

case ${1} in
rdiffThis)

raid 10 not in consistent state?

hi everyone
I've just configured a simple raid10 on a Dell system, but
one thing is puzzling to me.
I'm seeing this below and I wonder why?

weird (non-functional) downgrade

dear devel

is this true that every rpm downgrade goes kind of a ...

samba rpm deps - with yum downgrade = kind of a mayhem

hi guys, gals

do you see this:

~]$ yum downgrade samba
Resolving Dependencies
--> Running transaction check
---> Package samba.x86_64 0:4.4.4-9.el7 will be a downgrade
--> Processing Dependency: samba-libs = 4.4.4-9.el7 for
package: samba-4.4.4-9.el7.x86_64
--> Processing Dependency: samba-common-tools = 4.4.4-9.el7
for package: samba-4.4.4-9.el7.x86_64
--> Processing Dependency: samba-common-libs = 4.4.4-9.el7
for package: samba-4.4.4-9.el7.x86_64
--> Processing Dependency: samba-common = 4.4.4-9.el7 for
package: samba-4.4.4-9.el7.x86_64
--> Processing Dependency: samba-client-libs = 4.

does your kdump work?

hi all

mine does not, and I've tampered with it in many ways,
cannot get it to work.

best,
L.

devtoolset-4 ageing?

hi everyone

just a quickie to devel maybe. I'm looking at some bits:

devtoolset-4-elfutils-libelf-0.163-2.el7.x86_64 VS
elfutils-0.166-2.el7.x86_64

isn't devtool ageing? Could this be the case with more packages?
regards,
L.

ipa rpm conflicts

does anybody see this:

unning transaction
Warning: RPMDB altered outside of yum.
** Found 8 pre-existing rpmdb problem(s), 'yum check' output
follows:
ipa-admintools-4.4.0-14.el7.centos.noarch has installed
conflicts freeipa-admintools:
ipa-admintools-4.4.0-14.el7.centos.noarch
ipa-client-4.4.0-14.el7.centos.x86_64 has installed
conflicts freeipa-client: ipa-client-4.4.0-14.el7.centos.x86_64
ipa-client-common-4.4.0-14.el7.centos.noarch has installed
conflicts freeipa-client-common:
ipa-client-common-4.4.0-14.el7.centos.noarch
ipa-common-4.4.0-14.el7.centos.noarch has installed
conflict

something going on with CR ?

I get:

Failed to download prestodelta for repository cr: [Errno
256] No more mirrors to try.
java-1.8.0-openjdk-1.8.0.111-2 FAILED
<a href="http://mirror.centos.org/centos/7/cr/x86_64/Packages/java-1.8.0-openjdk-1.8.0.111-2.b15.el7_3.x86_64.rpm:" title="http://mirror.centos.org/centos/7/cr/x86_64/Packages/java-1.8.0-openjdk-1.8.0.111-2.b15.el7_3.x86_64.rpm:">http://mirror.centos.org/centos/7/cr/x86_64/Packages/java-1.8.0-openjdk-...</a>
[Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
java-1.8.0-openjdk-devel-1.8.0 FAILED
<a href="http://mirror.centos.org/centos/7/cr/x86_64/Packages/java-1.8.0-openjdk-devel-1.8.0.111-2.b15.el7_3.x86_64.rpm:" title="http://mirror.centos.org/centos/7/cr/x86_64/Packages/java-1.8.0-openjdk-devel-1.8.0.111-2.b15.el7_3.x86_64.rpm:">http://mirror.centos.org/centos/7/cr/x86_64/Packages/java-1.8.0-openjdk-...</a>
[Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
java-1.8.0-openjdk-headless-1.

glusterfs bits..

hi everyone

before I subscribe to yet another @list I was hoping a
centosian here has some experience and know the answer -
I've started googling but have to failed - glusterfs does
not translate local FS (xfs) quotas and presents them to its
clients, does it?
It is only glusterfs own quota functions that we have to
manage quoatas?

many thanks.
L.

samba CTDB inability to create smb.conf cache

hi everyone

any experience with ctdb?
I'm setting up a simple cluster, only ldap backend instead
of tdb2.
One (of the two) server fails this way:

50.samba: ERROR: smb.conf cache create failed

$ ctdb status
Number of nodes:2
pnn:0 10.5.6.32 OK
pnn:1 10.5.6.49 UNHEALTHY (THIS NODE)
Generation:323266562
Size:2
hash:0 lmaster:0
hash:1 lmaster:1
Recovery mode:NORMAL (0)
Recovery master:0

If I copy the file manually while ctdb is running I see:

50.samba: WARNING: smb.conf cache update failed - using old
cache file
Node became HEALTHY.

dnf and failing epel

hi everyone,

I use dnf but one epel fails in a peculiar way:

$ dnf repolist
Failed to open:
/var/cache/dnf/x86_64/7/x86_64/7/epel/repodata/8415cbb16f52517f34e3edac12a97c9893117f7b9de6cb22fc086048febd1c60-updateinfo.xml.bz2.

that file is there, so I tampered with perms & fcontext but
to no avail. dnf clean does remove it but on the first
contact to epel repo it fails again.
Do you see it with your centoses?

ps.

firewalld and just a routing between local lans

hi
how much different iptables are in 7 from 6 I'm just
learning, I expected that since IFs belong to the same zone
traffic between them would pass, be forwarded without any
extra settings/configuration but, I'm wrong it turns out.
Am I missing something and there actually is a simple way,
designed to make that routing between lans/interfaces just
work - a one liner, one option/setting in that
comprehensive(?) firewalld configuration?
How does firewall make your centos a router of directly
connected LANs?

many thanks
L.

local routing puzzle

hi everyone

I'm having a bit of a puzzle on one centos system, I have
four interfaces:
nm-team1 10.5.6.100
em1 192.168.2.17
em2 192.168.2.18
p3p3 172.25.12.222

I do:
ping 10.5.6.17 -I em1
PING 10.5.6.17 (10.5.6.17) from 192.168.2.17 em1: 56(84)
bytes of data.
64 bytes from 10.5.6.17: icmp_seq=1 ttl=64 time=0.367 ms

the same for -I em2, for -I em1 and naturally for -I
nm-team1 - all good.
but:
$ ping 10.5.6.17 -I p3p3
PING 10.5.6.17 (10.5.6.17) from 172.25.12.202 p3p3: 56(84)
bytes of data.

and nothing, ping waits and no reply, Ctrl+C

with such a simple setup rules based routing should

find any row with NULL

hi there,

I've been searching the vastness of the net but cannot find
- how - to get all the rows with a NULL.

And like any novice I wonder if this can be done without
reiterating all the columns names(not manually at least)?

Some expert would say it is easy, how easy is it? with an
example?

many thanks

L.

I wonder if I get this email...

hi everybody.

I'm a subscriber to a few mailing lists, for a good number
of years now, but recently something very annoying happened
and I'm hoping postfix list here there is someone could
suggest some troubleshooting that may resolve this problem.

I use Yahoo free of charge mail service, about two weeks ago
I stopped getting my own messages I send to any list.

I see they go through for people reply and I get the replies.

I checked all the filters, both server and local side,
nothing, but I did not change anything there around when it
happened anyway.

To eliminate third parties I tr

virtually identical support but..

hi everybody

there is a but :) I fail to understand,
I have two virtually identical setups, both relay to one
specific domain, yet! - one gets: 550-Verification failed
550-Invalid domain part in email address.

gee... what am I missing?
Both servers are on the same net, and the rest of relevant
(that I could think of) parts should be the same.

for ideas & suggestions,
many thanks,
L.

failed to decrypt log block

hi everybody..

would you know how to recover from such a problem:

InnoDB: ok header, but checksum field contains 792537472,
should be 1776874443
2016-04-04 12:41:15 140333716928640 [ERROR] InnoDB: Redo log
crypto: failed to decrypt log block.

update, insert ... gee.. a puzzle

.. that you experts I hope can crack like a digestive
biscuit...

how does one update, or merge or whatever is right technical
term for it - a my.table from my.another table (both are
schematically identical, no foreign keys, one primary key) but..
does it a way so when there is a duplicate only NULLs in
my.table get updated/replaced with proper values from
my.another table?

many thanks, specially for actual syntax hints.
L.

does mysql alert about all the duplicates?

hi everybody

just another beginner's question.
if I insert into table and there are duplicate primary keys
- does mysql alert about all the duplicates or just the
first one and then exits/abandon the rest of the insert
without any alerts for potential further duplicates?
And is this a user/config controlled behavior?

many thanks.
L.

rewrite simple php under a sub url

hi everybody
ough... this might sound silly what I'm hoping to achieve,
well..
I have a php app that I don't know the code of but the app
seems to only work under top url, eg: <a href="http://www.theapp.net" title="www.theapp.net">www.theapp.net</a> but it
has to be served from <a href="http://www.theapp.net/phpapp" title="www.theapp.net/phpapp">www.theapp.net/phpapp</a>
I fiddling with rewrites but not being an expert I thought
I'd ask if it's even possible?

many thanks
L.

dump then truncate - in between anything?

hi everybody

I imagine this is theoretical rather than practical
question, albeit I don't have much practice, so I hope
experts could comment
logical view of the procedure is: mysqldump && truncate -
what are the chances that something gets in between and I
loose it?

many thanks
L.

PHPMailer different behavior..

on postfix?

I'm not a php developer but I look after a postfix server
and I wonder if you might know what might be the cause for a
(simple) php app to sort of hang on email address bit when
it is incorrect - and it is even not the app itself that
validates the address - web page sort of refreshes (when
user clicks next) but won't go through, unless the address
is a correct(real) one.
I'm obviously not asking to debug the app, I'm asking what
are the chances this happens because of postfix?

can I just encrypt tables? what about the app?

hi everybody

a novice type of question - having a php + mysql, can one
just encrypt (internally in mysql) tables and php will be fine?
If not, would it be easy to re-code php to work with this
new, internal encryption?

thanks.

dump, drop database then merge/aggregate

fellow users, hopefully you experts too, could help...

...me to understand how, and what should be the best
practice to dump database, then drop it and merge the dumps..
What I'd like to do is something probably many have done and
I wonder how it's done best.
A box will be dumping a database (maybe?

safest way to mount iscsi loopback..

.. what is?
fellow centosians.

how to you mount your loopback targets?
I'm trying lvm backstore, I was hoping I would do it with
uuid, but it's exposed more than once and how would kernel
decide which device to use I don't know.

thanks