Still having super slow speeds with USB 3 flash.

2018-03-05 Thread Jan Lambertz
Hi,

no Problems here.
dmesg:

OpenBSD 6.2-current (GENERIC.MP) #11: Mon Feb 26 19:16:54 MST 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

real mem = 3987337216 (3802MB)
avail mem = 3859464192 (3680MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdae3a000 (48 entries)
bios0: vendor LENOVO version "G8ET95WW (2.55 )" date
09/30/2013

bios0: LENOVO
336798U

acpi0 at bios0: rev
2

acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC TCPA ASF! HPET APIC MCFG FPDT SSDT SSDT UEFI
UEFI MSDM UEFI DBG2
acpi0: wakeup devices P0P1(S4) EHC1(S3) EHC2(S3) XHC_(S3) HDEF(S4) RP04(S4)
PXSX(S4) RP06(S4) PXSX(S4) BLAN(S4) PEG0(S4) PEGP(S4) PEG1(S
4) PEG2(S4) PEG3(S4) LID_(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179
Hz

acpimadt0 at acpi0 addr 0xfee0: PC-AT
compat

cpu0 at mainbus0: apid 0 (boot
processor)

cpu0: Intel(R) Celeron(R) CPU 1007U @ 1.50GHz, 1496.86 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL
,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,XSAVE,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSG
SBASE,SMEP,ERMS,SENSOR,ARAT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2
cache

acpihpet0: recalibrated TSC frequency 1496600417 Hz
cpu0: smt 0, core 0, package
0

mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed
ranges

cpu0: apic clock running at
99MHz

cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2,
IBE

cpu1 at mainbus0: apid 2 (application
processor)

cpu1: Intel(R) Celeron(R) CPU 1007U @ 1.50GHz, 1496.61 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL
,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,XSAVE,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSG
SBASE,SMEP,ERMS,SENSOR,ARAT,MELTDOWN

cpu1: 256KB 64b/line 8-way L2
cache

cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24
pins

acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0
(PCI0)
[72/111]
acpiprt1 at acpi0: bus -1 (P0P1)
acpiprt2 at acpi0: bus 2 (RP01)
acpiprt3 at acpi0: bus 3 (RP02)
acpiprt4 at acpi0: bus 4 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus -1 (RP05)
acpiprt7 at acpi0: bus 9 (RP06)
acpiprt8 at acpi0: bus -1 (RP07)
acpiprt9 at acpi0: bus -1 (RP08)
acpiprt10 at acpi0: bus -1 (PEG0)
acpiprt11 at acpi0: bus -1 (PEG1)
acpiprt12 at acpi0: bus -1 (PEG2)
acpiprt13 at acpi0: bus -1 (PEG3)
acpiec0 at acpi0
acpicpu0 at acpi0: C2(500@59 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C2(500@59 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpitz0 at acpi0: critical temperature is 99 degC
"INT3F0D" at acpi0 not configured
"MSF0001" at acpi0 not configured
"LEN0026" at acpi0 not configured
"SMO1200" at acpi0 not configured
acpithinkpad0 at acpi0
acpiac0 at acpi0: AC unit offline
acpibat0 at acpi0: BAT1 model "45N1176" serial  1289 type LION oem "SANYO"
acpibtn0 at acpi0: LID_
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
acpivideo0 at acpi0: GFX0
acpivout at acpivideo0 not configured
cpu0: Enhanced SpeedStep 1496 MHz: speeds: 1500, 1400, 1300, 1200, 1100,
1000, 900, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 2500" rev 0x09
drm0 at inteldrm0
inteldrm0: msi
inteldrm0: 1366x768,
32bpp
[33/111]
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
xhci0 at pci0 dev 20 function 0 "Intel 7 Series xHCI" rev 0x04: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev
3.00/1.00 addr 1
"Intel 7 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 16
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 7 Series HD Audio" rev 0x04: msi
azalia0: codecs: Realtek ALC269, Intel/0x2806, using Realtek ALC269
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 7 Series PCIE" rev 0xc4: msi
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 7 Series PCIE" rev 0xc4: msi
pci2 at ppb1 bus 3
vendor "Broadcom", unknown product 0x4359 (class network subclass
miscellaneous, rev 0x00) at pci2 dev 0 function 0 not configured
ppb2 at pci0 dev 28 function 2 "Intel 7 Series PCIE" rev 0xc4: msi
pci3 at ppb2 bus 4
rtsx0 at pci3 dev 0 function 0 "Realtek RTS5209 Card Reader" rev 0x01: msi
sdmmc0 at rtsx0: 4-bit, dma
ppb3 at pci0 dev 28 function 5 "Intel 7 Series PCIE" rev 0xc4: msi
pci4 at ppb3 bus 9
re0 at pci4 dev 0 

Re: opensmtpd: limit mta for mx

2018-03-05 Thread Stuart Henderson
On 2018-03-05, Nick  wrote:
> Hi misc@, long time no see (and please CC me),
>
> In smtpd.conf, the "limit mta" line can be qualified like this:
>
> limit mta for domain gmail.com inet4
>
> which I did because I recently started getting bounces from google saying
>
> 550-5.7.1 [2001:19f0:5001:2f5:5400:ff:fe77:861d] Our system has detected that 
> this message does not meet IPv6 sending guidelines regarding PTR records and 
> authentication. Please review  
> https://support.google.com/mail/?p=IPv6AuthError for more information . 
> d63si3145626edc.222 - gsmtp
>
> I think they started prioritizing their  (IPv6) records over their A 
> (IPv4) DNS records, so now opensmtpd is preferring to use IPv6. I tried a bit 
> but I don't really know what they're mad about, and whatever, I don't want to 
> fight them, I just want my mail to get through.
>
> That limit line fixed it for gmail.com, but now I have a new problem: the 
> huge number of domains that are actually hosted on smtp.gmail.com. I am 
> wondering if there is some way to express "use IPv4 if the mail *server* is 
> gmail" instead of "if the mail *domain* is gmail". Something like:
>
> limit mta for mx smtp.gmail.com inet4
>
> Right now I'm stuck enumerating all Google Apps for Business accounts I know 
> of and adding a line for each.
>
>= Nick
>
>

For your situation, can't you just add an  record for
comms.kousu.ca pointing at 2001:19f0:5001:2f5:5400:ff:fe77:861d?
That will fix the things that google are complaining about on your
system.

Otherwise... It doesn't help you directly with smtpd, but Postfix
has a way to filter out DNS records, added exactly for this situation:

smtp_dns_reply_filter = pcre:/etc/postfix/smtp_dns_reply_filter

$ cat /etc/postfix/smtp_dns_reply_filter
# /domain ttl IN  address/ action, all case-insensitive.
# Note: the domain name ends in ".".
/^\S+\.google.com\.\s+\S+\s+\S+\s+\s+/ IGNORE

Perhaps it would make sense for smtpd to support something like
"limit mta for mx XXX inet4" (i.e. match on hostnames rather than
domain names, and limit address family in a similar way).
It would seem more useful to match on hostnames than email domains
for that.



Re: opensmtpd: limit mta for mx

2018-03-05 Thread Constantine A. Murenin
On 4 March 2018 at 23:11, Nick  wrote:
> In smtpd.conf, the "limit mta" line can be qualified like this:
>
> limit mta for domain gmail.com inet4
>
> which I did because I recently started getting bounces from google saying
>
> 550-5.7.1 [2001:19f0:5001:2f5:5400:ff:fe77:861d] Our system has detected that 
> this message does not meet IPv6 sending guidelines regarding PTR records and 
> authentication. Please review  
> https://support.google.com/mail/?p=IPv6AuthError for more information . 
> d63si3145626edc.222 - gsmtp

Whilst this is a valid question for OpenSMTPD, from the sysadmin side,
the solution is much simpler.

Your reverse name is fake, as it does not resolve forward:

% host 2001:19f0:5001:2f5:5400:ff:fe77:861d
d.1.6.8.7.7.e.f.f.f.0.0.0.0.4.5.5.f.2.0.1.0.0.5.0.f.9.1.1.0.0.2.ip6.arpa
domain name pointer comms.kousu.ca.
% host comms.kousu.ca.
comms.kousu.ca has address 108.61.165.176
%

I'm surprised you don't get other hosts rejecting your mail, too; I
suspect it may have to do simply with gmail being the monoculture of
mail nowadays.

My suggestion would be to fix the forward name, else, fix the reverse
name to point to something like IPv6.example.org, which you should
ensure exists and points back.  Sometime ago, making the reverse point
back to itself (e.g., a PTR with the value of the IPv6 address itself)
also made gmail happy to accept the mail as well, but I'm not too sure
if that's still the case.

Cheers,
Constantine.
http://cm.su/



Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

2018-03-05 Thread Stuart Henderson
On 2018-03-05, Jiri B  wrote:
> On Mon, Mar 05, 2018 at 01:14:05PM +0200, Atanas Vladimirov wrote:
>> Hi,
>> 
>> Bringing up an old thread to let you know that the problem is still present
>> in -current snapshot.
>> Shall I send a proper bug report to bugs@?
>> Thanks.
>
> No, why?
>
> Works as expected, you start OpenVPN too early, thus you need
> that workaround.

Well, not really, because that is exactly one of the methods the
pkg-readme suggests and it used to work.




Re: Loop problem in sending mail to root

2018-03-05 Thread trondd
On Mon, March 5, 2018 2:45 pm, Chris Bennett wrote:
> That did the trick.
>

For the future, page 2 'Trace subsystem':

https://www.bsdcan.org/2016/schedule/attachments/378_smtpd_cheatsheet.pdf

You can see which rule gets matched.



Re: Loop problem in sending mail to root

2018-03-05 Thread Chris Bennett
That did the trick.

Femail is still failing, though.
I will look into that, I was fiddling quite a bit and I may need to put
things back to the way they were.
I'll bring that back up later if it still fails.

I like smtpd a lot! Sendmail was a nightmare to set up!

Thanks,
Chris Bennett




Re: Loop problem in sending mail to root

2018-03-05 Thread trondd
On Mon, March 5, 2018 1:05 pm, Chris Bennett wrote:
> I cannot get mail to reach root from /etc/daily for example.
> Not sure what I have setup wrong.
> also both femail-chroot and sendmail-mini-chroot fail
> femail: socket: Connection refused
> /var/www/bin/sendmail_mini: connect: Connection refused
> Any help appreciated.
> I also get the from as  instead of <> too.
> Same problem trying to send mail from a local user to another.
>
> bennettconstruction.us is /etc/myname
>
> running 6.2 -stable using openup on i386
> was trying to set up with vmail earlier, still using mbox and mutt.
> Let me know what else is needed for help.
> Also, I would like a clear explanation of what is happening.
> Could only find info about looping between different machines, not on
> same machine. I'd like to understand this problem.
>
> Thanks,
> Chris Bennett
>
>
> maillog:
>
>
> Feb 25 11:17:20 bennettconstruction smtpd[87019]: d6185c5660de72c5 smtp
> event=message address=104.217.196.250 host=bennettconstruction.us
> msgid=b0728562 from=<> to= size=54221 ndest=1
> proto=ESMTP
> Feb 25 11:17:20 bennettconstruction smtpd[87019]: d6185c55538136f0 mta
> event=delivery evpid=561745fbfe51ba45 from=<>
> to= rcpt=<-> source="104.217.196.250"
> relay="104.217.196.250 (bennettconstruction.us)" delay=1s result="Ok"
> stat="250 2.0.0: b0728562 Message accepted for delivery"
> Feb 25 11:17:21 bennettconstruction smtpd[87019]: warn: loop detected
> Feb 25 11:17:21 bennettconstruction smtpd[87019]: d6185c5660de72c5 smtp
> event=failed-command address=104.217.196.250 host=bennettconstruction.us
> command="DATA" result="500 5.4.6 Routing loop detected: Loop detected"
> Feb 25 11:17:21 bennettconstruction smtpd[87019]: d6185c55538136f0 mta
> event=delivery evpid=b07285629425f9ef from=<>
> to= rcpt=<-> source="104.217.196.250"
> relay="104.217.196.250 (bennettconstruction.us)" delay=1s
> result="PermFail" stat="500 5.4.6 Routing loop detected: Loop detected"
> Feb 25 11:17:21 bennettconstruction smtpd[19843]: warn: queue: no return
> path!
> Feb 25 11:17:31 bennettconstruction smtpd[87019]: d6185c5660de72c5 smtp
> event=closed address=104.217.196.250 host=bennettconstruction.us
> reason=quit
> Feb 25 11:17:31 bennettconstruction smtpd[87019]: d6185c55538136f0 mta
> event=closed reason=quit messages=96
>
> smtpd.conf:
>
>
> # $OpenBSD: smtpd.conf,v 1.9 2016/05/03 18:43:45 jung Exp $
>
> # This is the smtpd server system-wide configuration file.
> # See smtpd.conf(5) for more information.
>
> # tables section
> table aliases file:/etc/mail/aliases
> table domains file:/etc/mail/domains
> table passwd file:/etc/mail/passwd
> table virtuals file:/etc/mail/virtuals
>
> # To accept external mail, replace with: listen on all
> #
> #listen on all
>
> #
> mx1 = "104.217.196.250"
> mx2 = "104.217.196.251"
> mx3 = "104.217.196.252"
> mx4 = "104.217.196.253"
> mx5 = "104.217.196.254"
> #all_mx = "{" $mx1 $mx2 "}"
> # $mx3 $mx4 $mx5 "}"
>
> pki mail.capuchado.com certificate "/etc/ssl/mail.capuchado.com.crt"
> pki mail.capuchado.com key "/etc/ssl/private/mail.capuchado.com.key"
> pki mail.bennettconstruction.us certificate
> "/etc/ssl/mail.bennettconstruction.us.crt"
> pki mail.bennettconstruction.us key
> "/etc/ssl/private/mail.bennettconstruction.us.key"
>
> listen on $mx2 port 25 tls pki mail.capuchado.com
> listen on $mx1 port 25 tls pki mail.bennettconstruction.us
>
> # special case for gmail to avoid ipv6 here
> limit mta for domain gmail.com inet4
>
> # allow local messages
> ##accept from local for local alias  deliver to lmtp
> "/var/dovecot/lmtp" rcpt-to
> # allow virtual domains
> ##accept from any for domain  virtual  deliver to lmtp
> "/var/dovecot/lmtp" rcpt-to
>
> #pki mail.example.com certificate "/etc/ssl/mail.example.com.crt"
> #pki mail.example.com key "/etc/ssl/private/mail.example.com.key"
> # $OpenBSD: smtpd.conf,v 1.8 2015/12/21 16:25:44 sunil Exp $
>
> # Uncomment the following to accept external mail for domain "example.org"
> #
> # accept from any for domain "example.org" alias  deliver to mbox
> ##accept for local alias  deliver to mbox
> accept from local for any relay
> accept from any for domain "bennettconstruction.us" alias 
> deliver to mbox
> accept from any for domain "ed-bennett.com" alias  deliver to
> mbox
> accept from any for domain "capuchado.com" alias  deliver to mbox
>

First matching rule wins, are you relaying to yourself?  Try moving that
to the bottom.



Re: Loop problem in sending mail to root

2018-03-05 Thread Chris Bennett
On Mon, Mar 05, 2018 at 06:12:39PM +, Todd C. Miller wrote:
> The answer is probably in your /etc/mail/aliases file.  Do you have
> an entry for root in there?  If so, it needs to point to a different
> user.  An entry like the following would cause the error:
> 
> root: root
> 
> For sendmail, an entry like this would cause the mail to be delivered
> locally for the user.  With smtpd it results in a mail loop.
> 
>  - todd

No, that didn't help. Still get femail problem and referring an alias
root: chris002 also didn't help.
I did find a vmail alias,which I commented out.
newaliases rcctl stop smtpd rcctl start smtpd also to be sure.

I am not running spamd yet, so no error there.

I'm going to run dovecot, but I need to figure this problem out first.

Chris Bennett




opensmtpd: limit mta for mx

2018-03-05 Thread Nick
Hi misc@, long time no see (and please CC me),

In smtpd.conf, the "limit mta" line can be qualified like this:

limit mta for domain gmail.com inet4

which I did because I recently started getting bounces from google saying

550-5.7.1 [2001:19f0:5001:2f5:5400:ff:fe77:861d] Our system has detected that 
this message does not meet IPv6 sending guidelines regarding PTR records and 
authentication. Please review  https://support.google.com/mail/?p=IPv6AuthError 
for more information . d63si3145626edc.222 - gsmtp

I think they started prioritizing their  (IPv6) records over their A (IPv4) 
DNS records, so now opensmtpd is preferring to use IPv6. I tried a bit but I 
don't really know what they're mad about, and whatever, I don't want to fight 
them, I just want my mail to get through.

That limit line fixed it for gmail.com, but now I have a new problem: the huge 
number of domains that are actually hosted on smtp.gmail.com. I am wondering if 
there is some way to express "use IPv4 if the mail *server* is gmail" instead 
of "if the mail *domain* is gmail". Something like:

limit mta for mx smtp.gmail.com inet4

Right now I'm stuck enumerating all Google Apps for Business accounts I know of 
and adding a line for each.

= Nick



Re: Still having super slow speeds with USB 3 flash.

2018-03-05 Thread Chris Bennett
On Mon, Mar 05, 2018 at 06:32:13PM +, Kevin Chadwick wrote:
> On Mon, 5 Mar 2018 10:14:56 -0800
> 
> 
> > I get constant stalls during installs.
> > Is this memory related?
> 
> Probably waiting on buffers would be my guess. I have witnessed those
> delays on flash sticks.
> 
> > Is there are knob I can twist during regular use to speed things up?
> > Will mounting as softdep help or not?
> 
> I doubt it. What speed are you getting and what kind of memory. Even
> class 10 SD isn't very fast at writing. Everything else being the same
> compared to HDD, then I would look for faster memory?
> 

reordering libraries is slow enough to finish a cup of coffee.

dmesg:


OpenBSD 6.2-current (GENERIC.MP) #408: Thu Feb  8 04:09:33 MST 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3774021632 (3599MB)
avail mem = 3652632576 (3483MB)
enter_shared_special_pages: entered idt page va 0x8001 pa 0x1d56000
enter_shared_special_pages: entered kutext page va 0x8183 pa 
0x183
enter_shared_special_pages: entered kutext page va 0x81831000 pa 
0x1831000
enter_shared_special_pages: entered kutext page va 0x81832000 pa 
0x1832000
enter_shared_special_pages: entered kudata page va 0x81ac9000 pa 
0x1ac9000
cpu_enter_pages: entered tss+gdt page at va 0x81a92000 pa 0x1a92000
cpu_enter_pages: entered t.stack page at va 0x81a93000 pa 0x1a93000
cpu_enter_pages: cif_tss.tss_rsp0 = 0x81a933e0
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0xea8c0 (45 entries)
bios0: vendor LENOVO version "5PCN18WW" date 09/28/2017
bios0: LENOVO 80XV
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI HPET APIC MCFG SBST MSDM BATB SSDT IVRS CRAT TPM2 
SSDT SSDT SSDT SSDT FPDT SSDT BGRT UEFI
acpi0: wakeup devices GPP0(S4) GPP1(S4) GPP2(S4) GPP3(S4) GPP4(S4) GFX0(S4) 
GFX1(S4) GFX2(S4) GFX3(S4) GFX4(S4) XHC0(S3) EHC1(S3) SBAZ(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
lapic_map: entered lapic page va 0x81ab3000 pa 0xfee0
cpu0 at mainbus0: apid 16 (boot processor)
cpu0: AMD A9-9420 RADEON R5, 5 COMPUTE CORES 2C+3G, 2994.76 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2
cpu0: 96KB 64b/line 3-way I-cache, 32KB 64b/line 8-way D-cache, 1MB 64b/line 
16-way L2 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
acpihpet0: recalibrated TSC frequency 2994393502 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0x800021ff8000 
pa 0x1
cpu_enter_pages: entered t.stack page at va 0x800021ff9000 pa 0x11000
cpu_enter_pages: cif_tss.tss_rsp0 = 0x800021ff93e0
: apid 17 (application processor)
cpu1: AMD A9-9420 RADEON R5, 5 COMPUTE CORES 2C+3G, 2994.39 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2
cpu1: 96KB 64b/line 3-way I-cache, 32KB 64b/line 8-way D-cache, 1MB 64b/line 
16-way L2 cache
cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 21, 24 pins
, remapped to apid 4
ioapic1 at mainbus0: apid 5 pa 0xfec01000, version 21, 32 pins
, remapped to apid 5
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (GPP0)
acpiprt2 at acpi0: bus -1 (GPP1)
acpiprt3 at acpi0: bus 1 (GPP2)
acpiprt4 at acpi0: bus 2 (GPP3)
acpiprt5 at acpi0: bus -1 (GPP4)
acpiprt6 at acpi0: bus -1 (GFX0)
acpiprt7 at acpi0: bus -1 (GFX1)
acpiprt8 at acpi0: bus -1 (GFX2)
acpiprt9 at acpi0: bus -1 (GFX3)
acpiprt10 at acpi0: bus -1 (GFX4)
acpiec0 at acpi0
acpicpu0 at acpi0: C2(0@400 io@0x814), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@400 io@0x814), C1(@1 halt!), PSS
acpipwrres0 at acpi0: P0U3, resource for XHC0
acpipwrres1 at acpi0: P3U3, resource for XHC0
acpipwrres2 at acpi0: P0U2, resource for EHC1
acpipwrres3 at acpi0: P3U2, resource for EHC1
acpipwrres4 at 

Re: Still having super slow speeds with USB 3 flash.

2018-03-05 Thread Kevin Chadwick
On Mon, 5 Mar 2018 10:14:56 -0800


> I get constant stalls during installs.
> Is this memory related?

Probably waiting on buffers would be my guess. I have witnessed those
delays on flash sticks.

> Is there are knob I can twist during regular use to speed things up?
> Will mounting as softdep help or not?

I doubt it. What speed are you getting and what kind of memory. Even
class 10 SD isn't very fast at writing. Everything else being the same
compared to HDD, then I would look for faster memory?



Copying a lot of files from different USB flash drives to one for backup

2018-03-05 Thread Chris Bennett
I would like to know if using the tar method for file moving given in
duplication of file systems will be helpful or just get in the way?
As I asked in USB 3 question, are there any knobs to twist that can
speed things up? Perhaps change user limits or mount softdep?

Thanks,
Chris Bennett




Still having super slow speeds with USB 3 flash.

2018-03-05 Thread Chris Bennett
I am still having very slow speeds trying to use USB 3 flash drives.
I have a new laptop and I've tried a recent -current but problem is
still there.
Booting takes forever, as does install.
Is this a known issue?
I will file a bug report.
What extra info is needed?
I have usbutil and usbutils installed, but I need to grab a newer
snapshot first (doing clean installs).

I get constant stalls during installs.
Is this memory related?
Is there are knob I can twist during regular use to speed things up?
Will mounting as softdep help or not?

I'm going to mention this in next email about copying files over, flash
to flash.

Chris Bennett




Re: Loop problem in sending mail to root

2018-03-05 Thread Todd C. Miller
The answer is probably in your /etc/mail/aliases file.  Do you have
an entry for root in there?  If so, it needs to point to a different
user.  An entry like the following would cause the error:

root: root

For sendmail, an entry like this would cause the mail to be delivered
locally for the user.  With smtpd it results in a mail loop.

 - todd



Loop problem in sending mail to root

2018-03-05 Thread Chris Bennett
I cannot get mail to reach root from /etc/daily for example.
Not sure what I have setup wrong.
also both femail-chroot and sendmail-mini-chroot fail
femail: socket: Connection refused
/var/www/bin/sendmail_mini: connect: Connection refused
Any help appreciated.
I also get the from as  instead of <> too.
Same problem trying to send mail from a local user to another.

bennettconstruction.us is /etc/myname

running 6.2 -stable using openup on i386
was trying to set up with vmail earlier, still using mbox and mutt.
Let me know what else is needed for help.
Also, I would like a clear explanation of what is happening.
Could only find info about looping between different machines, not on
same machine. I'd like to understand this problem.

Thanks,
Chris Bennett


maillog:


Feb 25 11:17:20 bennettconstruction smtpd[87019]: d6185c5660de72c5 smtp 
event=message address=104.217.196.250 host=bennettconstruction.us 
msgid=b0728562 from=<> to= size=54221 ndest=1 
proto=ESMTP
Feb 25 11:17:20 bennettconstruction smtpd[87019]: d6185c55538136f0 mta 
event=delivery evpid=561745fbfe51ba45 from=<> to= 
rcpt=<-> source="104.217.196.250" relay="104.217.196.250 
(bennettconstruction.us)" delay=1s result="Ok" stat="250 2.0.0: b0728562 
Message accepted for delivery"
Feb 25 11:17:21 bennettconstruction smtpd[87019]: warn: loop detected
Feb 25 11:17:21 bennettconstruction smtpd[87019]: d6185c5660de72c5 smtp 
event=failed-command address=104.217.196.250 host=bennettconstruction.us 
command="DATA" result="500 5.4.6 Routing loop detected: Loop detected"
Feb 25 11:17:21 bennettconstruction smtpd[87019]: d6185c55538136f0 mta 
event=delivery evpid=b07285629425f9ef from=<> to= 
rcpt=<-> source="104.217.196.250" relay="104.217.196.250 
(bennettconstruction.us)" delay=1s result="PermFail" stat="500 5.4.6 Routing 
loop detected: Loop detected"
Feb 25 11:17:21 bennettconstruction smtpd[19843]: warn: queue: no return path!
Feb 25 11:17:31 bennettconstruction smtpd[87019]: d6185c5660de72c5 smtp 
event=closed address=104.217.196.250 host=bennettconstruction.us reason=quit
Feb 25 11:17:31 bennettconstruction smtpd[87019]: d6185c55538136f0 mta 
event=closed reason=quit messages=96

smtpd.conf:


#   $OpenBSD: smtpd.conf,v 1.9 2016/05/03 18:43:45 jung Exp $

# This is the smtpd server system-wide configuration file.
# See smtpd.conf(5) for more information.

# tables section
table aliases file:/etc/mail/aliases
table domains file:/etc/mail/domains
table passwd file:/etc/mail/passwd
table virtuals file:/etc/mail/virtuals

# To accept external mail, replace with: listen on all
#
#listen on all

#
mx1 = "104.217.196.250"
mx2 = "104.217.196.251"
mx3 = "104.217.196.252"
mx4 = "104.217.196.253"
mx5 = "104.217.196.254"
#all_mx = "{" $mx1 $mx2 "}"
# $mx3 $mx4 $mx5 "}"

pki mail.capuchado.com certificate "/etc/ssl/mail.capuchado.com.crt"
pki mail.capuchado.com key "/etc/ssl/private/mail.capuchado.com.key"
pki mail.bennettconstruction.us certificate 
"/etc/ssl/mail.bennettconstruction.us.crt"
pki mail.bennettconstruction.us key 
"/etc/ssl/private/mail.bennettconstruction.us.key"

listen on $mx2 port 25 tls pki mail.capuchado.com
listen on $mx1 port 25 tls pki mail.bennettconstruction.us

# special case for gmail to avoid ipv6 here
limit mta for domain gmail.com inet4

# allow local messages
##accept from local for local alias  deliver to lmtp 
"/var/dovecot/lmtp" rcpt-to
# allow virtual domains
##accept from any for domain  virtual  deliver to lmtp 
"/var/dovecot/lmtp" rcpt-to

#pki mail.example.com certificate "/etc/ssl/mail.example.com.crt"
#pki mail.example.com key "/etc/ssl/private/mail.example.com.key"
#   $OpenBSD: smtpd.conf,v 1.8 2015/12/21 16:25:44 sunil Exp $

# Uncomment the following to accept external mail for domain "example.org"
#
# accept from any for domain "example.org" alias  deliver to mbox
##accept for local alias  deliver to mbox
accept from local for any relay
accept from any for domain "bennettconstruction.us" alias  deliver to 
mbox
accept from any for domain "ed-bennett.com" alias  deliver to mbox
accept from any for domain "capuchado.com" alias  deliver to mbox



linking libqb on openbsd fails

2018-03-05 Thread Jiri B
Hi,

I try to build libqb library and it fails with following output, any idea
what could be wrong there?

Originally reported at https://github.com/ClusterLabs/libqb/issues/299

(libqb is prerequisite for corosync/pacemaker stuff)

Jiri

=2E..
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../include -I../include/qb -I..=
/include -I../include -O2 -pipe -Wall -Wextra -Wunused -Wshadow -Wmissing-p=
rototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wwrit=
e-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wflo=
at-equal -Wformat=3D2 -Woverlength-strings -Winit-self -Wuninitialized -Wun=
known-pragmas -Wno-unused-parameter -Wno-format-nonliteral -Wno-sign-compar=
e -MT strchrnul.lo -MD -MP -MF .deps/strchrnul.Tpo -c strchrnul.c  -fPIC -D=
PIC -o .libs/strchrnul.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../include -I../include/qb -I..=
/include -I../include -O2 -pipe -Wall -Wextra -Wunused -Wshadow -Wmissing-p=
rototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wwrit=
e-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wflo=
at-equal -Wformat=3D2 -Woverlength-strings -Winit-self -Wuninitialized -Wun=
known-pragmas -Wno-unused-parameter -Wno-format-nonliteral -Wno-sign-compar=
e -MT strchrnul.lo -MD -MP -MF .deps/strchrnul.Tpo -c strchrnul.c -o strchr=
nul.o >/dev/null 2>&1
cc -E -xc -I../include -D_GNU_SOURCE -C -P qblog_script.ld.in \
  | sed -n "/$(sed -n '/^[^#]/{s/[*\/]/\\&/g;p;q;}' qblog_script.ld.in)/,$ =
p" \
  > qblog_script.ld
/usr/local/bin/libtool  --tag=3DCC   --mode=3Dlink cc -pthread -O2 -pipe   =
   -Wall -Wextra -Wunused -Wshadow -Wmissing-prototypes -Wmissing-declarati=
ons -Wstrict-prototypes -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-=
function-cast -Wmissing-format-attribute -Wfloat-equal -Wformat=3D2 -Woverl=
ength-strings -Winit-self -Wuninitialized -Wunknown-pragmas -Wno-unused-par=
ameter -Wno-format-nonliteral -Wno-sign-compare  -version-info 19:0:19  -o =
libqb.la -rpath /usr/local/lib libqb_la-util.lo libqb_la-hdb.lo libqb_la-ri=
ngbuffer.lo libqb_la-ringbuffer_helper.lo libqb_la-array.lo libqb_la-loop.l=
o libqb_la-loop_poll.lo libqb_la-loop_job.lo libqb_la-loop_timerlist.lo lib=
qb_la-ipcc.lo libqb_la-ipcs.lo libqb_la-ipc_shm.lo libqb_la-ipc_setup.lo li=
bqb_la-ipc_socket.lo libqb_la-log.lo libqb_la-log_thread.lo libqb_la-log_bl=
ackbox.lo libqb_la-log_file.lo libqb_la-log_syslog.lo libqb_la-log_dcs.lo l=
ibqb_la-log_format.lo libqb_la-map.lo libqb_la-skiplist.lo libqb_la-hashtab=
le.lo libqb_la-trie.lo libqb_la-unix.lo   libqb_la-loop_poll_kqueue.lo  str=
chrnul.loqblog_script.la=20

*** Warning: This system can not link to static lib archive qblog_script.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
libtool: link: cc -shared  -fPIC -DPIC -o .libs/libqb.so.19.0  .libs/libqb_=
la-util.o .libs/libqb_la-hdb.o .libs/libqb_la-ringbuffer.o .libs/libqb_la-r=
ingbuffer_helper.o .libs/libqb_la-array.o .libs/libqb_la-loop.o .libs/libqb=
_la-loop_poll.o .libs/libqb_la-loop_job.o .libs/libqb_la-loop_timerlist.o .=
libs/libqb_la-ipcc.o .libs/libqb_la-ipcs.o .libs/libqb_la-ipc_shm.o .libs/l=
ibqb_la-ipc_setup.o .libs/libqb_la-ipc_socket.o .libs/libqb_la-log.o .libs/=
libqb_la-log_thread.o .libs/libqb_la-log_blackbox.o .libs/libqb_la-log_file=
=2Eo .libs/libqb_la-log_syslog.o .libs/libqb_la-log_dcs.o .libs/libqb_la-lo=
g_format.o .libs/libqb_la-map.o .libs/libqb_la-skiplist.o .libs/libqb_la-ha=
shtable.o .libs/libqb_la-trie.o .libs/libqb_la-unix.o .libs/libqb_la-loop_p=
oll_kqueue.o .libs/strchrnul.o-pthread -O2 -pthread   -pthread -Wl,/usr=
/ports/pobj/libqb-1.0.3/libqb-1.0.3/lib/qblog_script.ld
/usr/bin/ld: section __verbose [002351f8 -> 00236a7f] overl=
aps section .bss [00225060 -> 00235f87]
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:740: libqb.la] Error 1
gmake[2]: Leaving directory '/usr/ports/pobj/libqb-1.0.3/libqb-1.0.3/lib'
gmake[1]: *** [Makefile:513: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/ports/pobj/libqb-1.0.3/libqb-1.0.3'
gmake: *** [Makefile:438: all] Error 2
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2742 '/usr/ports=
/pobj/libqb-1.0.3/.build_done')
*** Error 1 in /usr/ports/devel/libqb (/usr/ports/infrastructure/mk/bsd.por=
t.mk:2419 'all')

$ sysctl kern.version  =
   =
  =20
kern.version=3DOpenBSD 6.3-beta (GENERIC) #25: Fri Mar  2 22:51:43 MST 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC

$ /usr/ports/pobj/libqb-1.0.3/bin/cc -v=20
OpenBSD clang version 5.0.1 (tags/RELEASE_501/final) (based on 

Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

2018-03-05 Thread Jiri B
On Mon, Mar 05, 2018 at 01:14:05PM +0200, Atanas Vladimirov wrote:
> Hi,
> 
> Bringing up an old thread to let you know that the problem is still present
> in -current snapshot.
> Shall I send a proper bug report to bugs@?
> Thanks.

No, why?

Works as expected, you start OpenVPN too early, thus you need
that workaround.

> starting network
> em0: bound to 95.87.227.232 from 95.87.227.225 (64:87:88:58:b2:b8)
> ld.so loading: 'openvpn'
> [...]
> loading: liblz4.so.2.0 required by /usr/local/sbin/openvpn
> ld.so: openvpn: can't load library 'liblz4.so.2.0'
> Killed
> reordering libraries: done.

See...:

# egrep -n '(sh /etc/netstart$|/sbin/ldconfig)' /etc/rc
439:sh /etc/netstart
564:if [[ -x /sbin/ldconfig ]]; then

Thus, /var/run/ld.so.hints does not exist in time when you
start OpenVPN.

Jiri



Re: mariaDB - limits problem?

2018-03-05 Thread Bambero
Thanks, a lot. I think this is the point.

But is there a way to chceck currently locked files?
Open files I can check with:

fstat | awk ' { print ( $1 ) }' | sort | uniq -c | sort -n
or:
sysctl kern.nfiles


On Mon, Mar 5, 2018 at 1:02 PM, Otto Moerbeek  wrote:

> On Mon, Mar 05, 2018 at 12:43:05PM +0100, Bambero wrote:
>
> > Thanks for the answer.
> > This prblem is not related with open-files limit. This error is completly
> > different.
> > I have a special class in login.conf so open files limit we should
> exclude
> > in this case:
> >
> > mysqld:\
> > <-->:openfiles-cur=1024:\
> > <-->:openfiles-max=2048:\
> > <-->:tc=daemon:
> >
> > I found in source that there is file locks limit:
> >
> > int maxlocksperuid = 1024;
> > https://github.com/openbsd/src/blob/2452e2a8d7e9b5090ff527bcb559d0
> > 2899e5c6af/sys/kern/vfs_lockf.c
> >
> > Maybe this is a reason?
>
> Try
>
> sysctl kern.maxlocksperuid=2048
>
> -Otto
>
> >
> >
> > On Mon, Mar 5, 2018 at 12:10 PM, Stuart Henderson 
> > wrote:
> >
> > > On 2018-03-05, Bambero  wrote:
> > > > Hi,
> > > >
> > > > After move to OpenBSD 6.2 I have problem with MySQL. I looks like
> file
> > > > locks limit problem.
> > > > On fresh MySQL install, when try to restore dump, MySQL hangs
> restore at
> > > > 1500th table (each time). There are no other connections only my
> restore
> > > > commands which looks like this:
> > > >
> > > > for i in `ls`; do tab=`echo $i | rev | cut -c 5- | rev`; echo $tab;
> echo
> > > > 'CREATE DATABASE `'$tab'`' | mysql ; cat $i | mysql "$tab"; sleep 3;
> done
> > > >
> > > > Each database is restored separatelly.
> > > >
> > > > /var/mysql-error.log throws:
> > > >
> > > > 180304 17:32:00 [ERROR] InnoDB: Unable to lock ./tui_pap/class.ibd,
> > > error:
> > > > 77
> > > > 2018-03-04 17:32:00 63e1a24fa38  InnoDB: Operating system error
> number 77
> > > > in a file operation.
> > > > InnoDB: Error number 77 means 'No locks available'.
> > > > InnoDB: Some operating system error numbers are described at
> > > > InnoDB:
> > > > http://dev.mysql.com/doc/refman/5.6/en/operating-
> system-error-codes.html
> > > > 180304 17:32:00 [ERROR] InnoDB: Cannot create file
> './tui_pap/class.ibd'
> > > >
> > > > I found in man page https://man.openbsd.org/errno.2
> > > > 77 ENOLCK *No locks available*. A system-imposed limit on the number
> of
> > > > simultaneous file locks was reached.
> > > > So the quastion is what is the limit of file locks, and how to
> change it
> > > up?
> > > >
> > > > How can i check how many locks are currently made?
> > > >
> > > > Thanks for any help.
> > > >
> > > > Bambero
> > > >
> > >
> > > Not sure if locks are accounted separately, are you just running out of
> > > file descriptors? Did you follow the instructions in the pkg-readme?
> > >
> > >
> > >
>


Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

2018-03-05 Thread Atanas Vladimirov

On 2018-03-05 13:35, Stuart Henderson wrote:

On 2018-03-05, Atanas Vladimirov  wrote:

Hi,

Bringing up an old thread to let you know that the problem is still
present in -current snapshot.


Did you try jca's suggestion?

!env LD_LIBRARY_PATH=/usr/lib:/usr/local/lib /usr/local/sbin/openvpn
--daemon --config /etc/dn42-w0h.ovpn


Yes, with jca's suggestion it's working as it should.



Re: mariaDB - limits problem?

2018-03-05 Thread Otto Moerbeek
On Mon, Mar 05, 2018 at 12:43:05PM +0100, Bambero wrote:

> Thanks for the answer.
> This prblem is not related with open-files limit. This error is completly
> different.
> I have a special class in login.conf so open files limit we should exclude
> in this case:
> 
> mysqld:\
> <-->:openfiles-cur=1024:\
> <-->:openfiles-max=2048:\
> <-->:tc=daemon:
> 
> I found in source that there is file locks limit:
> 
> int maxlocksperuid = 1024;
> https://github.com/openbsd/src/blob/2452e2a8d7e9b5090ff527bcb559d0
> 2899e5c6af/sys/kern/vfs_lockf.c
> 
> Maybe this is a reason?

Try 

sysctl kern.maxlocksperuid=2048 

-Otto

> 
> 
> On Mon, Mar 5, 2018 at 12:10 PM, Stuart Henderson 
> wrote:
> 
> > On 2018-03-05, Bambero  wrote:
> > > Hi,
> > >
> > > After move to OpenBSD 6.2 I have problem with MySQL. I looks like file
> > > locks limit problem.
> > > On fresh MySQL install, when try to restore dump, MySQL hangs restore at
> > > 1500th table (each time). There are no other connections only my restore
> > > commands which looks like this:
> > >
> > > for i in `ls`; do tab=`echo $i | rev | cut -c 5- | rev`; echo $tab; echo
> > > 'CREATE DATABASE `'$tab'`' | mysql ; cat $i | mysql "$tab"; sleep 3; done
> > >
> > > Each database is restored separatelly.
> > >
> > > /var/mysql-error.log throws:
> > >
> > > 180304 17:32:00 [ERROR] InnoDB: Unable to lock ./tui_pap/class.ibd,
> > error:
> > > 77
> > > 2018-03-04 17:32:00 63e1a24fa38  InnoDB: Operating system error number 77
> > > in a file operation.
> > > InnoDB: Error number 77 means 'No locks available'.
> > > InnoDB: Some operating system error numbers are described at
> > > InnoDB:
> > > http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html
> > > 180304 17:32:00 [ERROR] InnoDB: Cannot create file './tui_pap/class.ibd'
> > >
> > > I found in man page https://man.openbsd.org/errno.2
> > > 77 ENOLCK *No locks available*. A system-imposed limit on the number of
> > > simultaneous file locks was reached.
> > > So the quastion is what is the limit of file locks, and how to change it
> > up?
> > >
> > > How can i check how many locks are currently made?
> > >
> > > Thanks for any help.
> > >
> > > Bambero
> > >
> >
> > Not sure if locks are accounted separately, are you just running out of
> > file descriptors? Did you follow the instructions in the pkg-readme?
> >
> >
> >



Re: mariaDB - limits problem?

2018-03-05 Thread Bambero
Thanks for the answer.
This prblem is not related with open-files limit. This error is completly
different.
I have a special class in login.conf so open files limit we should exclude
in this case:

mysqld:\
<-->:openfiles-cur=1024:\
<-->:openfiles-max=2048:\
<-->:tc=daemon:

I found in source that there is file locks limit:

int maxlocksperuid = 1024;
https://github.com/openbsd/src/blob/2452e2a8d7e9b5090ff527bcb559d0
2899e5c6af/sys/kern/vfs_lockf.c

Maybe this is a reason?


On Mon, Mar 5, 2018 at 12:10 PM, Stuart Henderson 
wrote:

> On 2018-03-05, Bambero  wrote:
> > Hi,
> >
> > After move to OpenBSD 6.2 I have problem with MySQL. I looks like file
> > locks limit problem.
> > On fresh MySQL install, when try to restore dump, MySQL hangs restore at
> > 1500th table (each time). There are no other connections only my restore
> > commands which looks like this:
> >
> > for i in `ls`; do tab=`echo $i | rev | cut -c 5- | rev`; echo $tab; echo
> > 'CREATE DATABASE `'$tab'`' | mysql ; cat $i | mysql "$tab"; sleep 3; done
> >
> > Each database is restored separatelly.
> >
> > /var/mysql-error.log throws:
> >
> > 180304 17:32:00 [ERROR] InnoDB: Unable to lock ./tui_pap/class.ibd,
> error:
> > 77
> > 2018-03-04 17:32:00 63e1a24fa38  InnoDB: Operating system error number 77
> > in a file operation.
> > InnoDB: Error number 77 means 'No locks available'.
> > InnoDB: Some operating system error numbers are described at
> > InnoDB:
> > http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html
> > 180304 17:32:00 [ERROR] InnoDB: Cannot create file './tui_pap/class.ibd'
> >
> > I found in man page https://man.openbsd.org/errno.2
> > 77 ENOLCK *No locks available*. A system-imposed limit on the number of
> > simultaneous file locks was reached.
> > So the quastion is what is the limit of file locks, and how to change it
> up?
> >
> > How can i check how many locks are currently made?
> >
> > Thanks for any help.
> >
> > Bambero
> >
>
> Not sure if locks are accounted separately, are you just running out of
> file descriptors? Did you follow the instructions in the pkg-readme?
>
>
>


Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

2018-03-05 Thread Stuart Henderson
On 2018-03-05, Atanas Vladimirov  wrote:
> Hi,
>
> Bringing up an old thread to let you know that the problem is still 
> present in -current snapshot.

Did you try jca's suggestion?

!env LD_LIBRARY_PATH=/usr/lib:/usr/local/lib /usr/local/sbin/openvpn --daemon 
--config /etc/dn42-w0h.ovpn  






Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

2018-03-05 Thread Atanas Vladimirov

Hi,

Bringing up an old thread to let you know that the problem is still 
present in -current snapshot.

Shall I send a proper bug report to bugs@?
Thanks.

starting network
em0: bound to 95.87.227.232 from 95.87.227.225 (64:87:88:58:b2:b8)
ld.so loading: 'openvpn'
exe load offset:  0x1288d030
 flags /usr/local/sbin/openvpn = 0x0
head /usr/local/sbin/openvpn
obj /usr/local/sbin/openvpn has /usr/local/sbin/openvpn as head
examining: '/usr/local/sbin/openvpn'
loading: libc.so.92.3 required by /usr/local/sbin/openvpn
 flags /usr/lib/libc.so.92.3 = 0x0
obj /usr/lib/libc.so.92.3 has /usr/local/sbin/openvpn as head
loading: libcrypto.so.42.7 required by /usr/local/sbin/openvpn
 flags /usr/lib/libcrypto.so.42.7 = 0x0
obj /usr/lib/libcrypto.so.42.7 has /usr/local/sbin/openvpn as head
loading: libssl.so.44.8 required by /usr/local/sbin/openvpn
 flags /usr/lib/libssl.so.44.8 = 0x0
obj /usr/lib/libssl.so.44.8 has /usr/local/sbin/openvpn as head
loading: liblz4.so.2.0 required by /usr/local/sbin/openvpn
ld.so: openvpn: can't load library 'liblz4.so.2.0'
Killed
reordering libraries: done.

# dmesg

OpenBSD 6.3-beta (GENERIC.MP) #26: Fri Mar  2 22:56:04 MST 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8544153600 (8148MB)
avail mem = 8278175744 (7894MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeb5a0 (56 entries)
bios0: vendor American Megatrends Inc. version "2.2" date 02/20/2015
bios0: Supermicro X9SCL/X9SCM
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC FPDT MCFG HPET SSDT SPMI SSDT SSDT EINJ 
ERST HEST BERT
acpi0: wakeup devices UAR1(S4) UAR2(S4) P0P1(S4) USB1(S4) USB2(S4) 
USB3(S4) USB4(S4) USB5(S4) USB6(S4) USB7(S4) PXSX(S4) RP01(S4) PXSX(S4) 
RP02(S4) PXSX(S4) RP03(S4) [...]

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Celeron(R) CPU G1620T @ 2.40GHz, 2400.33 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT,MELTDOWN

cpu0: 256KB 64b/line 8-way L2 cache
acpitimer0: recalibrated TSC frequency 2400013797 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 100MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Celeron(R) CPU G1620T @ 2.40GHz, 2400.03 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT,MELTDOWN

cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpihpet0: recalibrated TSC frequency 2400017759 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P0P1)
acpiprt2 at acpi0: bus 1 (RP01)
acpiprt3 at acpi0: bus -1 (RP02)
acpiprt4 at acpi0: bus -1 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus 2 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus -1 (RP07)
acpiprt9 at acpi0: bus -1 (RP08)
acpiprt10 at acpi0: bus -1 (PEG0)
acpiprt11 at acpi0: bus -1 (PEG1)
acpiprt12 at acpi0: bus -1 (PEG2)
acpiprt13 at acpi0: bus -1 (PEG3)
acpiec0 at acpi0: not present
acpicpu0 at acpi0: C3(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: FN00, resource for FAN0
acpipwrres1 at acpi0: FN01, resource for FAN1
acpipwrres2 at acpi0: FN02, resource for FAN2
acpipwrres3 at acpi0: FN03, resource for FAN3
acpipwrres4 at acpi0: FN04, resource for FAN4
acpitz0 at acpi0: critical temperature is 92 degC
acpitz1 at acpi0: critical temperature is 92 degC
"INT3F0D" at acpi0 not configured
"IPI0001" at acpi0 not configured
acpibtn0 at acpi0: PWRB
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD01
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 2400 MHz: speeds: 2400, 2300, 2200, 2100, 2000, 
1900, 1800, 1700, 1600 MHz

pci0 at mainbus0 bus 0
pchb0 at pci0 

Re: mariaDB - limits problem?

2018-03-05 Thread Stuart Henderson
On 2018-03-05, Bambero  wrote:
> Hi,
>
> After move to OpenBSD 6.2 I have problem with MySQL. I looks like file
> locks limit problem.
> On fresh MySQL install, when try to restore dump, MySQL hangs restore at
> 1500th table (each time). There are no other connections only my restore
> commands which looks like this:
>
> for i in `ls`; do tab=`echo $i | rev | cut -c 5- | rev`; echo $tab; echo
> 'CREATE DATABASE `'$tab'`' | mysql ; cat $i | mysql "$tab"; sleep 3; done
>
> Each database is restored separatelly.
>
> /var/mysql-error.log throws:
>
> 180304 17:32:00 [ERROR] InnoDB: Unable to lock ./tui_pap/class.ibd, error:
> 77
> 2018-03-04 17:32:00 63e1a24fa38  InnoDB: Operating system error number 77
> in a file operation.
> InnoDB: Error number 77 means 'No locks available'.
> InnoDB: Some operating system error numbers are described at
> InnoDB:
> http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html
> 180304 17:32:00 [ERROR] InnoDB: Cannot create file './tui_pap/class.ibd'
>
> I found in man page https://man.openbsd.org/errno.2
> 77 ENOLCK *No locks available*. A system-imposed limit on the number of
> simultaneous file locks was reached.
> So the quastion is what is the limit of file locks, and how to change it up?
>
> How can i check how many locks are currently made?
>
> Thanks for any help.
>
> Bambero
>

Not sure if locks are accounted separately, are you just running out of
file descriptors? Did you follow the instructions in the pkg-readme?




Re: sshd(8), sshd_config(5), and the LogLevel directive

2018-03-05 Thread Lars Noodén
On 2018-03-05, Stuart Henderson wrote:
> On 2018-03-05, Lars Noodén wrote:
>> I'm not able to get sshd(8) to use alternative loglevels, such as Debug3.
>>
>> When sshd(8) starts, it goes through the normal reporting regardless
>> of which LogLevel is set in sshd_config(5).  Here is  an excerpt from
>> /var/log/authlog showing the daemon starting and a first connection
>> from outside:
>
> The default for /var/log/authlog is auth.info. To get these through
> syslogd, you'll need something with .debug instead.

Ah ha.  I hadn't looked there.  Thanks for the patience.

$ grep -i authlog /etc/syslog.conf
auth.info   /var/log/authlog

> (btw, some of the higher-level debug for SSH is fairly sensitive, you might
> prefer to log it to memory buffers rather than disk

That explains the syslogd(8) auth.info default.

>  - set the -s flag to
> syslogd and then you can do things like "*.* :64:debug" and watch with
> "syslogc -f debug").

Neat.

It is clear now and I know what to do.  Thanks.

/Lars



mariaDB - limits problem?

2018-03-05 Thread Bambero
Hi,

After move to OpenBSD 6.2 I have problem with MySQL. I looks like file
locks limit problem.
On fresh MySQL install, when try to restore dump, MySQL hangs restore at
1500th table (each time). There are no other connections only my restore
commands which looks like this:

for i in `ls`; do tab=`echo $i | rev | cut -c 5- | rev`; echo $tab; echo
'CREATE DATABASE `'$tab'`' | mysql ; cat $i | mysql "$tab"; sleep 3; done

Each database is restored separatelly.

/var/mysql-error.log throws:

180304 17:32:00 [ERROR] InnoDB: Unable to lock ./tui_pap/class.ibd, error:
77
2018-03-04 17:32:00 63e1a24fa38  InnoDB: Operating system error number 77
in a file operation.
InnoDB: Error number 77 means 'No locks available'.
InnoDB: Some operating system error numbers are described at
InnoDB:
http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html
180304 17:32:00 [ERROR] InnoDB: Cannot create file './tui_pap/class.ibd'

I found in man page https://man.openbsd.org/errno.2
77 ENOLCK *No locks available*. A system-imposed limit on the number of
simultaneous file locks was reached.
So the quastion is what is the limit of file locks, and how to change it up?

How can i check how many locks are currently made?

Thanks for any help.

Bambero


Re: ffs mount options or tuning to prevent corrupted fs on power-outage

2018-03-05 Thread Marcus MERIGHI
miracu...@gmail.com (Thomas Huber), 2018.03.03 (Sat) 20:48 (CET):
> Hi,
> 
> can someone give me a recomendations for ffs mount options or further
> tuning to prevent file-system corruption on power-outage?
> 
> I run a PC-Engines APU2c3 with -stable in a rural place where power-outage
> takes place approx. once a month. Most of the time every things starts fine
> when power is back, but sometimes (now the third time in one year) I end up
> with an corrupted /var and I´ve to go to that place and do manual fsck_ffs
> which could always repair the fs.
> I already tried with the softdep option but it didn´t prevent fs-corruption.
> 
> $ mount
> /dev/sd0f on /var type ffs (local, nodev, nosuid)
> 
> 
> /var lives on a mSATA-SSD

*If* /var is mounted readwrite because of logging, consider logging to a
memory buffer. See syslog.conf(5). You can empty the memory buffer with
syslogc(8) and get the logs off the machine e.g. via ssh(1).

Marcus



Re: sshd(8), sshd_config(5), and the LogLevel directive

2018-03-05 Thread Stuart Henderson
On 2018-03-05, Lars Noodén  wrote:
> I'm not able to get sshd(8) to use alternative loglevels, such as Debug3.
>
> When sshd(8) starts, it goes through the normal reporting regardless
> of which LogLevel is set in sshd_config(5).  Here is  an excerpt from
> /var/log/authlog showing the daemon starting and a first connection
> from outside:

The default for /var/log/authlog is auth.info. To get these through syslogd,
you'll need something with .debug instead.

(btw, some of the higher-level debug for SSH is fairly sensitive, you might
prefer to log it to memory buffers rather than disk - set the -s flag to
syslogd and then you can do things like "*.* :64:debug" and watch with
"syslogc -f debug").