Solid server (project by Sir Tim Berners-Lee and MIT) not loading correct configuration - node.js

I was trying to spin a Solid Server. I've followed the instruction from Solid project (https://solid.inrupt.com/docs) to set up an server. However, when the service is running, it fails to start and complaints about path is not defined:
● solid.service - solid - Social Linked Data
Loaded: loaded (/lib/systemd/system/solid.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Mon 2018-10-01 21:47:49 UTC; 4s ago
Docs: https://solid.inrupt.com/docs/
Process: 2519 ExecStart=/usr/bin/solid start -v (code=exited, status=0/SUCCESS)
Main PID: 2519 (code=exited, status=0/SUCCESS)
Oct 01 21:47:49 Mars solid[2519]: Mon, 01 Oct 2018 21:47:49 GMT solid:settings Config path: ./config
Oct 01 21:47:49 Mars solid[2519]: Mon, 01 Oct 2018 21:47:49 GMT solid:settings Suffix Acl: .acl
Oct 01 21:47:49 Mars solid[2519]: Mon, 01 Oct 2018 21:47:49 GMT solid:settings Suffix Meta: .meta
Oct 01 21:47:49 Mars solid[2519]: Mon, 01 Oct 2018 21:47:49 GMT solid:settings Filesystem Root: /var/www/my.server.com/
Oct 01 21:47:49 Mars solid[2519]: Mon, 01 Oct 2018 21:47:49 GMT solid:settings Allow WebID authentication: true
Oct 01 21:47:49 Mars solid[2519]: Mon, 01 Oct 2018 21:47:49 GMT solid:settings Live-updates: true
Oct 01 21:47:49 Mars solid[2519]: Mon, 01 Oct 2018 21:47:49 GMT solid:settings Multi-user: false
Oct 01 21:47:49 Mars solid[2519]: Mon, 01 Oct 2018 21:47:49 GMT solid:settings Suppress default data browser app: undefined
Oct 01 21:47:49 Mars solid[2519]: Mon, 01 Oct 2018 21:47:49 GMT solid:settings Default data browser app file path: default
Oct 01 21:47:49 Mars solid[2519]: ERROR Path must be a string. Received undefined
From this log, it seems like solid is still trying to read config from ~/.config path, although when I ran solid init command, I changed the location to /var/www/my.server.com/config/config.json. So the question is how do I resolve this issue? if the server is not loading current config or loading a cached config, how do I clear it?
I would really appreciate any help on this. Thanks.

I ran into the exact same issue (and more so afterwards...)
What fixed it for me, was to move the config.json into /var/www/my.solid.server and not in the config/ subdirectory. The service definition points to 'var/www/my.solid.server' as its working directory and the solid executable tries to find config.json in that folder.
The documentation is a on pretty minimal level. Hope they keep growing this great idea. Hope this helps a little.

Related

Connect to an OpenVPN server from an Azure Cloud Service client

I have a few machines on my office that can connect to a server that uses OpenVPN (UDP), given its .ovpn file. I'm also able to connect to that same server from my personal computer, which is in another network. I'm also able to connect to that server from a clean Azure VM running Windows Server 2012, that I just created to test this. But I haven't been able to connect to that same server (same .ovpn file) from a machine that is hosting an Azure Cloud Service.
The Azure Cloud Service was created with the default network configurations, InputEndpoints on ports 443(TCP) and 1194(UDP), and I added firewall exceptions that allowed any connections to UDP and TCP ports.
Yet, when I try to connect to the OpenVPN server from the Azure VM I get the message:
TLS Error: TLS key negotiation failed to occur within 60 seconds
(check your network connectivity)
Is there any configuration other than the firewall exceptions that I should add to the cloud service so that it will enable me to connect to an OpenVPN server that uses UDP?
Below is the full log:
PS C:\config\config> openvpn .\client.ovpn
Fri Jul 22 15:32:55 2016 Option 'nobind' in .\client.ovpn:46 is ignored by previous <connection> blocks
Fri Jul 22 15:32:55 2016 us=764333 Current Parameter Settings:
Fri Jul 22 15:32:55 2016 us=764333 config = '.\client.ovpn'
Fri Jul 22 15:32:55 2016 us=764333 mode = 0
Fri Jul 22 15:32:55 2016 us=764333 show_ciphers = DISABLED
Fri Jul 22 15:32:55 2016 us=764333 show_digests = DISABLED
Fri Jul 22 15:32:55 2016 us=764333 show_engines = DISABLED
Fri Jul 22 15:32:55 2016 us=764333 genkey = DISABLED
Fri Jul 22 15:32:55 2016 us=764333 key_pass_file = '[UNDEF]'
Fri Jul 22 15:32:55 2016 us=764333 show_tls_ciphers = DISABLED
Fri Jul 22 15:32:55 2016 us=764333 Connection profiles [default]:
Fri Jul 22 15:32:55 2016 us=764333 proto = udp
Fri Jul 22 15:32:55 2016 us=764333 local = '[UNDEF]'
Fri Jul 22 15:32:55 2016 us=764333 local_port = 1194
Fri Jul 22 15:32:55 2016 us=764333 remote = '[UNDEF]'
Fri Jul 22 15:32:55 2016 us=764333 remote_port = 1194
Fri Jul 22 15:32:55 2016 us=764333 remote_float = DISABLED
Fri Jul 22 15:32:55 2016 us=764333 bind_defined = DISABLED
Fri Jul 22 15:32:55 2016 us=795589 bind_local = DISABLED
Fri Jul 22 15:32:55 2016 us=795589 connect_retry_seconds = 5
Fri Jul 22 15:32:55 2016 us=795589 connect_timeout = 10
Fri Jul 22 15:32:55 2016 us=795589 NOTE: --mute triggered...
Fri Jul 22 15:32:55 2016 us=795589 618 variation(s) on previous 20 message(s) suppressed by --mute
Fri Jul 22 15:32:55 2016 us=795589 OpenVPN 2.3.10 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Jan
4 2016
Fri Jul 22 15:32:55 2016 us=795589 Windows version 6.2 (Windows 8 or greater)
Fri Jul 22 15:32:55 2016 us=795589 library versions: OpenSSL 1.0.1q 3 Dec 2015, LZO 2.09
Fri Jul 22 15:32:55 2016 us=983250 Control Channel Authentication: using 'engSimaTef.key' as a OpenVPN static key file
Fri Jul 22 15:32:56 2016 us=3179 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC a
uthentication
Fri Jul 22 15:32:56 2016 us=3179 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC a
uthentication
Fri Jul 22 15:32:56 2016 us=14347 LZO compression initialized
Fri Jul 22 15:32:56 2016 us=14347 Control Channel MTU parms [ L:1602 D:1140 EF:110 EB:0 ET:0 EL:3 ]
Fri Jul 22 15:32:56 2016 us=14347 Socket Buffers: R=[65536->65536] S=[65536->65536]
Fri Jul 22 15:32:56 2016 us=168985 Data Channel MTU parms [ L:1602 D:1450 EF:102 EB:143 ET:0 EL:3 AF:3/1 ]
Fri Jul 22 15:32:56 2016 us=168985 Local Options String: 'V4,dev-type tun,link-mtu 1602,tun-mtu 1500,proto UDPv4,comp-lz
o,keydir 1,cipher AES-256-CBC,auth SHA512,keysize 256,tls-auth,key-method 2,tls-client'
Fri Jul 22 15:32:56 2016 us=168985 Expected Remote Options String: 'V4,dev-type tun,link-mtu 1602,tun-mtu 1500,proto UDP
v4,comp-lzo,keydir 0,cipher AES-256-CBC,auth SHA512,keysize 256,tls-auth,key-method 2,tls-server'
Fri Jul 22 15:32:56 2016 us=168985 Local Options hash (VER=V4): 'a5d50645'
Fri Jul 22 15:32:56 2016 us=168985 Expected Remote Options hash (VER=V4): '14d315e7'
Fri Jul 22 15:32:56 2016 us=168985 UDPv4 link local: [undef]
Fri Jul 22 15:32:56 2016 us=184587 UDPv4 link remote: [AF_INET][[SOME_HIDDEN_IP]]:10055
Fri Jul 22 15:32:56 2016 us=184587 UDPv4 WRITE [86] to [AF_INET][[SOME_HIDDEN_IP]]:10055: P_CONTROL_HARD_RESET_CLIENT_V2 ki
d=0 pid=[ #1 ] [ ] pid=0 DATA len=0
Fri Jul 22 15:32:56 2016 us=184587 UDPv4 READ [0] from [undef]: DATA UNDEF len=-1
Fri Jul 22 15:32:58 2016 us=558842 UDPv4 WRITE [86] to [AF_INET][[SOME_HIDDEN_IP]]:10055: P_CONTROL_HARD_RESET_CLIENT_V2 ki
d=0 pid=[ #2 ] [ ] pid=0 DATA len=0
Fri Jul 22 15:33:02 2016 us=785774 UDPv4 WRITE [86] to [AF_INET][[SOME_HIDDEN_IP]]:10055: P_CONTROL_HARD_RESET_CLIENT_V2 ki
d=0 pid=[ #3 ] [ ] pid=0 DATA len=0
Fri Jul 22 15:33:11 2016 us=85405 UDPv4 WRITE [86] to [AF_INET][[SOME_HIDDEN_IP]]:10055: P_CONTROL_HARD_RESET_CLIENT_V2 kid
=0 pid=[ #4 ] [ ] pid=0 DATA len=0
Fri Jul 22 15:33:27 2016 us=873602 UDPv4 WRITE [86] to [AF_INET][[SOME_HIDDEN_IP]]:10055: P_CONTROL_HARD_RESET_CLIENT_V2 ki
d=0 pid=[ #5 ] [ ] pid=0 DATA len=0
Fri Jul 22 15:33:57 2016 us=129612 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network
connectivity)
Fri Jul 22 15:33:57 2016 us=129612 TLS Error: TLS handshake failed
Fri Jul 22 15:33:57 2016 us=129612 TCP/UDP: Closing socket
Fri Jul 22 15:33:57 2016 us=129612 SIGUSR1[soft,tls-error] received, process restarting
Fri Jul 22 15:33:57 2016 us=129612 Restart pause, 2 second(s)
Fri Jul 22 15:33:59 2016 us=148186 Re-using SSL/TLS context
Fri Jul 22 15:33:59 2016 us=148186 LZO compression initialized
...
The error is telling that OpenVPN tried to connect to the host
WRITE [86] to [AF_INET][[SOME_HIDDEN_IP]]:10055: P_CONTROL_HARD_RESET_CLIENT_V2 ki d=0 pid=[ #1 ] [ ] pid=0 DATA len=0
but has not recieved any answer:
UDPv4 READ [0] from [undef]: DATA UNDEF len=-1
After the trial of 5 times the client stops to try to connect:
TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
The process stops in the first activity waiting for the reply:
(source: staticworld.net)
In those cases it is likely to have a connectivity problem. In the past I had the same problem once the problem was not enabled the required ports. (Take a look at both outgoing and incoming firevall rules.) An another problem could be that the server is not running or is not reachable.
TLDR: check out (VPN) service availability and firewall rules. In extreme cases there could be routing problems at the ISP (happend to a friend of mine) in this case you should report the problem to them and they will fix it.

Meteor app crashes after being deployed but works on local host

I deployed my meteor app to a .meteor.com server and it states that it is crashing. However, the site works fine on my local machine. Here are the logs:
[Tue Mar 17 2015 20:58:58 GMT+0000 (UTC)] NOTICE Starting application on port
25107
[Tue Mar 17 2015 20:58:58 GMT+0000 (UTC)] INFO STATUS null -> starting
[Tue Mar 17 2015 20:58:58 GMT+0000 (UTC)] INFO STATUS killed -> sleeping
[Tue Mar 17 2015 20:58:58 GMT+0000 (UTC)] INFO STATUS starting -> killed
[Tue Mar 17 2015 20:58:58 GMT+0000 (UTC)] NOTICE Starting application on port
9393
[Tue Mar 17 2015 20:58:58 GMT+0000 (UTC)] INFO STATUS null -> starting
[Tue Mar 17 2015 20:58:59 GMT+0000 (UTC)] INFO STATUS starting -> crashed
[Tue Mar 17 2015 20:59:31 GMT+0000 (UTC)] INFO HIT / 174.100.99.102
[Tue Mar 17 2015 20:59:37 GMT+0000 (UTC)] INFO HIT / 174.100.99.102
[Tue Mar 17 2015 20:59:37 GMT+0000 (UTC)] INFO HIT /favicon.ico 174.100.99.102
[Tue Mar 17 2015 20:59:43 GMT+0000 (UTC)] INFO HIT /favicon.ico 174.100.99.102
[Tue Mar 17 2015 20:59:53 GMT+0000 (UTC)] INFO HIT /_GALAXY_ 174.100.99.102
[Tue Mar 17 2015 20:59:59 GMT+0000 (UTC)] INFO HIT /_GALAXY_ 174.100.99.102
Ok,
I forgot to comment out the email package code and remove the test key.
Once I did that it deployed fine.

Fedora20 could not boot with serial

I am trying to boot Fedora 20 with serial output,so I modify the boot command line with:
menuentry 'Fedora (3.18.0) 20 (Heisenbug)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-0-rescue-690525b7662a4bbca483ccdfdac3f6dc-advanced-d27ee4d5-522c-48e8-abc5-73b42bd81ae4' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 86088439-feab-4ac8-9cca-792414d9fff0
else
search --no-floppy --fs-uuid --set=root 86088439-feab-4ac8-9cca-792414d9fff0
fi
linuxefi /vmlinuz-3.18.0 root=UUID=d27ee4d5-522c-48e8-abc5-73b42bd81ae4 ro text no_console_suspend hpet=disable console=ttyS0,115200 console=tty0
initrdefi /initramfs-3.18.0.img
}
And the serial output seemed to stop at:
'a start job is running for Show Plymouth Boot Screen',
and did not go on.
and here are the journalctl message:
Jan 06 19:02:13 localhost.localdomain systemd[1]: Mounted /boot.
Jan 06 19:02:13 localhost.localdomain systemd[1]: Mounting /boot/efi...
Jan 06 19:02:13 localhost.localdomain systemd[1]: Started Activation of DM RAID sets.
Jan 06 19:02:13 localhost.localdomain systemd[1]: Starting Encrypted Volumes.
Jan 06 19:02:13 localhost.localdomain systemd[1]: Reached target Encrypted Volumes.
Jan 06 19:02:13 localhost.localdomain systemd[1]: Mounted /boot/efi.
Jan 06 19:02:13 localhost.localdomain systemd[1]: Starting Local File Systems.
Jan 06 19:02:13 localhost.localdomain systemd[1]: Reached target Local File Systems.
Jan 06 19:02:13 localhost.localdomain systemd[1]: Started Mark the need to relabel after reboot.
Jan 06 19:02:13 localhost.localdomain systemd[1]: Started Reconfigure the system on administrator request.
Jan 06 19:02:13 localhost.localdomain systemd[1]: Started Relabel all filesystems, if necessary.
Jan 06 19:02:13 localhost.localdomain systemd[1]: Starting Tell Plymouth To Write Out Runtime Data...
Jan 06 19:02:13 localhost.localdomain systemd[1]: Starting Trigger Flushing of Journal to Persistent Storage...
Jan 06 19:02:13 localhost.localdomain systemd[1]: Starting Recreate Volatile Files and Directories...
Jan 06 19:02:13 localhost.localdomain systemd[1]: Starting Security Auditing Service...
Jan 06 19:02:13 localhost.localdomain auditd[468]: Error - audit support not in kernel
Jan 06 19:02:13 localhost.localdomain auditd[468]: Cannot open netlink audit socket
Jan 06 19:02:13 localhost.localdomain auditd[468]: The audit daemon is exiting.
Jan 06 19:02:13 localhost.localdomain auditctl[469]: Error - audit support not in kernel
Jan 06 19:02:13 localhost.localdomain auditctl[469]: Error - audit support not in kernel
Jan 06 19:02:13 localhost.localdomain auditctl[469]: Cannot open netlink audit socket
Jan 06 19:02:13 localhost.localdomain systemd[1]: Started Recreate Volatile Files and Directories.
Jan 06 19:02:13 localhost.localdomain systemd[1]: auditd.service: main process exited, code=exited, status=1/FAILURE
Jan 06 19:02:13 localhost.localdomain systemd[1]: Failed to start Security Auditing Service.
Jan 06 19:02:13 localhost.localdomain systemd[1]: Unit auditd.service entered failed state.
Jan 06 19:02:13 localhost.localdomain systemd[1]: Starting Update UTMP about System Reboot/Shutdown...
Jan 06 19:02:13 localhost.localdomain systemd-journal[394]: Permanent journal is using 24.0M (max 601.3M, leaving 902.0M of free 2.1G, current limit 601.3M).
Jan 06 19:02:13 localhost.localdomain systemd-journal[394]: Time spent on flushing to /var is 172.987ms for 1168 entries.
Jan 06 19:02:13 localhost.localdomain systemd[1]: Started Trigger Flushing of Journal to Persistent Storage.
Jan 06 19:02:13 localhost.localdomain systemd[1]: Started Update UTMP about System Reboot/Shutdown.
Jan 06 19:02:17 localhost.localdomain kernel: random: nonblocking pool is initialized
finally I solved this problem by appending:
console=tty console=ttyS0,115200n8
rather than:
console=tty0 console=ttyS0,115200
in boot command line
I don't know why,but it works,thanks god.

SoapUI Stuck in Infinite Loop Reading XSDs

SoapUI is in an infinite loop trying to read a WSDL file that references a complex set of XSDs. In those XSDs, every file imports all the others it uses, creating cycles. SoapUI continues recursing until we stop it. Here's an example log file:
Wed Dec 03 17:22:29 EST 2014:DEBUG:Getting wsdl component from [http://dev.soa.REDACTED.us:8001/soa-infra/services/test/TestService/testbpel_client_ep?WSDL]
Wed Dec 03 17:22:29 EST 2014:DEBUG:Getting wsdl component from [http://dev.soa.REDACTED.us:8001/soa-infra/services/test/TestService/testbpel_client_ep?XSD=xsd/basic_personal_data_creation-0.1.iepdnew/XMLschemas/constraint/XMLschemas/exchange/ExchangeModel.xsd]
Wed Dec 03 17:22:29 EST 2014:DEBUG:Getting wsdl component from [http://dev.soa.REDACTED.us:8001/soa-infra/services/test/TestService/testbpel_client_ep?XSD=xsd/basic_personal_data_creation-0.1.iepdnew/./XMLschemas/constraint/XMLschemas/extension/ExtensionModel.xsd]
Wed Dec 03 17:22:29 EST 2014:DEBUG:Getting wsdl component from [http://dev.soa.REDACTED.us:8001/soa-infra/services/test/TestService/testbpel_client_ep?XSD=xsd/basic_personal_data_creation-0.1.iepdnew/././XMLschemas/constraint/XMLschemas/subset/niem/domains/miem/0.1/miem.xsd]
Wed Dec 03 17:22:29 EST 2014:DEBUG:Getting wsdl component from [http://dev.soa.REDACTED.us:8001/soa-infra/services/test/TestService/testbpel_client_ep?XSD=xsd/basic_personal_data_creation-0.1.iepdnew/./././XMLschemas/constraint/XMLschemas/extension/ExtensionModel.xsd]
Wed Dec 03 17:22:29 EST 2014:DEBUG:Getting wsdl component from [http://dev.soa.REDACTED.us:8001/soa-infra/services/test/TestService/testbpel_client_ep?XSD=xsd/basic_personal_data_creation-0.1.iepdnew/././././XMLschemas/constraint/XMLschemas/subset/niem/domains/miem/0.1/miem.xsd]
Wed Dec 03 17:22:29 EST 2014:DEBUG:Getting wsdl component from [http://dev.soa.REDACTED.us:8001/soa-infra/services/test/TestService/testbpel_client_ep?XSD=xsd/basic_personal_data_creation-0.1.iepdnew/./././././XMLschemas/constraint/XMLschemas/extension/ExtensionModel.xsd]
Wed Dec 03 17:22:29 EST 2014:DEBUG:Getting wsdl component from [http://dev.soa.REDACTED.us:8001/soa-infra/services/test/TestService/testbpel_client_ep?XSD=xsd/basic_personal_data_creation-0.1.iepdnew/././././././XMLschemas/constraint/XMLschemas/subset/niem/domains/miem/0.1/miem.xsd]
Wed Dec 03 17:22:29 EST 2014:DEBUG:Getting wsdl component from [http://dev.soa.REDACTED.us:8001/soa-infra/services/test/TestService/testbpel_client_ep?XSD=xsd/basic_personal_data_creation-0.1.iepdnew/./././././././XMLschemas/constraint/XMLschemas/extension/ExtensionModel.xsd]
Wed Dec 03 17:22:29 EST 2014:DEBUG:Getting wsdl component from [http://dev.soa.REDACTED.us:8001/soa-infra/services/test/TestService/testbpel_client_ep?XSD=xsd/basic_personal_data_creation-0.1.iepdnew/././././././././XMLschemas/constraint/XMLschemas/subset/niem/domains/miem/0.1/miem.xsd]
(Scroll to the right to see the ends of the lines.) As you can see, ExtensionModel.xsd imports miem.xsd, which again imports ExtensionModel.xsd, ad infinitum. All other tools we've tried recognize the loop and stop recursing. Is there a way to fix this in SoapUI without major surgery on the XSD files?

Live streaming on azure with FMLE

I am trying to stream to the new azure live channel.
I have followed the guide on http://azure.microsoft.com/blog/2014/09/18/azure-media-services-rtmp-support-and-live-encoders/
this is my FMLE setup: http://i.stack.imgur.com/U8rlk.png
but for some reason I am getting disconnected by the azure service. I am using Flash Media Live encoder 3.2 and this is what the log looks like:
Thu Oct 09 2014 16:33:30 : Video Encoding Started
Thu Oct 09 2014 16:33:39 : Primary - Network Status: NetConnection.Connect.Closed status
Thu Oct 09 2014 16:33:45 : Primary - Disconnected
Thu Oct 09 2014 16:33:48 : Primary - Re-establishing connection, attempt 1
Thu Oct 09 2014 16:33:48 : Primary - Reconnected
Thu Oct 09 2014 16:33:48 : Primary - Network Command: onBWDone
Thu Oct 09 2014 16:33:48 : Primary - Stream[mystream9] Status: Success
Thu Oct 09 2014 16:33:48 : Primary - Stream[mystream9] Status: NetStream.Publish.Start
Thu Oct 09 2014 16:33:56 : Primary - Network Status: NetConnection.Connect.Closed status
Thu Oct 09 2014 16:33:58 : Video Encoding Stopped
Thu Oct 09 2014 16:33:58 : Session Stopped
Thu Oct 09 2014 16:34:01 : Primary - Disconnected
Thu Oct 09 2014 16:34:01 : Audio source does not support the selected sample rate and/or channels. Re-sampling the audio to desired setting.
Thu Oct 09 2014 16:34:02 : Primary - Re-establishing connection, attempt 1
Thu Oct 09 2014 16:34:02 : Primary - Reconnected
Thu Oct 09 2014 16:34:05 : Primary - Network Status: NetConnection.Connect.Closed status
Thu Oct 09 2014 16:34:05 : Primary - Disconnected
Edit:
Oh well I decided not to go for azure live streaming. Reasons are many. They let you only output to mpeg-dash which frankly is not ready for the world as of now. There are few players who support that out of box. Because of the smooth streaming crap from microsoft, we the encoders, are forced into limiting our encoding options. Alot of encoding software today dont have all the option that is required to stream such as frame alignment, grouping of pictures etc. Its kinda sad that I can stream with h264 but not x264 which is opensource and better.

Resources